abstract class NativeCursor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isVisible
Is the cursor currently visible?
|
| Constructor and Description |
|---|
NativeCursor() |
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract Size |
getBestSize()
Returns the preferred size of a native cursor.
|
(package private) boolean |
getVisiblity()
Queries whether or not the cursor is visible
|
(package private) abstract void |
setHotSpot(int hotspotX,
int hotspotY)
Sets the offset of the cursor's hot spot within the cursor image The hot
spot offsets default to 0, 0.
|
(package private) abstract void |
setImage(byte[] cursorImage)
Sets the cursor image
|
(package private) abstract void |
setLocation(int x,
int y)
Sets the location of the hot spot of the cursor on the screen
|
(package private) abstract void |
setVisibility(boolean visibility)
Sets whether or not the cursor is visible.
|
(package private) abstract void |
shutdown()
Performs any necessary shutdown of the cursor infrastructure.
|
abstract Size getBestSize()
abstract void setVisibility(boolean visibility)
visibility - the new setting for the cursor's visibility.boolean getVisiblity()
abstract void setImage(byte[] cursorImage)
cursorImage - the cursor image, in BYTE_BGRA_PRE formatabstract void setLocation(int x,
int y)
x - the new X location on the screeny - the new Y location on the screenabstract void setHotSpot(int hotspotX,
int hotspotY)
hotspotX - the X offset of the hot spothotspotY - the Y offset of the hot spot.abstract void shutdown()