All Packages Class Hierarchy This Package Previous Next Index
Class sun.porting.graphicssystem.CursorImage
java.lang.Object
|
+----sun.porting.graphicssystem.CursorImage
- public abstract class CursorImage
- extends Object
CursorImage is an object which encapsulates the bitmap and hotspot
data describing a cursor. It is used simply to hold all of the
required information in one place. It also enables the native
implementation to build a cursor from this image data and cache it.
-
hotX
- The x coordinate of the cursor hot spot, i.e.
-
hotY
- The y coordinate of the cursor hot spot, i.e.
-
image
- An image which contains the shape of the cursor.
-
CursorImage(Image, int, int)
- Create a new CursorImage object from the given image data and hotspot.
image
protected Image image
- An image which contains the shape of the cursor. Image transparency
is used to determine which pixels of the cursor are painted and which
are not. Colors in the image should be retained whenever possible (e.g.
if the underlying graphics system supports colored cursors). At a
minimum, three pixel values (black, white, transparent) should be
significant.
hotX
protected int hotX
- The x coordinate of the cursor hot spot, i.e. the coordinate within
the image that corresponds to the cursor's location on screen.
hotY
protected int hotY
- The y coordinate of the cursor hot spot, i.e. the coordinate within
the image that corresponds to the cursor's location on screen.
CursorImage
public CursorImage(Image imageData,
int x,
int y)
- Create a new CursorImage object from the given image data and hotspot.
It is the responsibility of the caller to make sure that the image data
contains no more colors than are supported by the graphics system, and
that the size of the cursor image is supported.
- Parameters:
- imageData - An image, probably with transparency, which describes
the shape and coloration of the cursor.
- x - The x coordinate of the cursor hotspot.
- y - The y coordinate of the cursor hotspot.
- See Also:
- getMaximumCursorColors, getMaximumCursorSize, getBestCursorSize
All Packages Class Hierarchy This Package Previous Next Index