Packages
 In this topic

*Constructors

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.awt   Previous This
Package
Next

 


Class CursorX

public class CursorX extends Cursor
{
  // Constructors
  public CursorX(Image img, int x, int y);

  // Methods
  public int getType();
}

This class implements an extended cursor object.

Note For the Microsoft SDK for Java version 3.0 pre-release 2, images must be 32-by-32 pixels to be used successfully with CursorX objects.

Cursor
  |
  +--CursorX

Constructors

CursorX

public CursorX(Image img, int x, int y);

Creates an extended cursor object with a default type from a specified image.

ParameterDescription
img The Image to create the cursor from.
x The x coordinate of the point that acts as the cursor's hot spot.
y The y coordinate of the point that acts as the cursor's hot spot.

Methods

getType

public int getType();

Retrieves the current CursorX object's type.

Return Value:

Returns the cursor type. Currently, all CursorX objects are created with a java.awt.Cursor.DEFAULT_CURSOR type, and will return 0.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.