class SoftwareCursor extends NativeCursor
| Modifier and Type | Field and Description |
|---|---|
private java.nio.ByteBuffer |
cursorBuffer |
private int |
hotspotX |
private int |
hotspotY |
private int |
renderX |
private int |
renderY |
isVisible| Constructor and Description |
|---|
SoftwareCursor() |
| Modifier and Type | Method and Description |
|---|---|
(package private) Size |
getBestSize()
Returns the preferred size of a native cursor.
|
(package private) java.nio.Buffer |
getCursorBuffer() |
(package private) int |
getRenderX() |
(package private) int |
getRenderY() |
(package private) 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) void |
setImage(byte[] cursorImage)
Sets the cursor image
|
(package private) void |
setLocation(int x,
int y)
Sets the location of the hot spot of the cursor on the screen
|
(package private) void |
setVisibility(boolean visibility)
Sets whether or not the cursor is visible.
|
(package private) void |
shutdown()
Performs any necessary shutdown of the cursor infrastructure.
|
getVisiblityprivate java.nio.ByteBuffer cursorBuffer
private int renderX
private int renderY
private int hotspotX
private int hotspotY
Size getBestSize()
NativeCursorgetBestSize in class NativeCursorvoid setVisibility(boolean visibility)
NativeCursorsetVisibility in class NativeCursorvisibility - the new setting for the cursor's visibility.void setImage(byte[] cursorImage)
NativeCursorsetImage in class NativeCursorcursorImage - the cursor image, in BYTE_BGRA_PRE formatvoid setLocation(int x,
int y)
NativeCursorsetLocation in class NativeCursorx - the new X location on the screeny - the new Y location on the screenvoid setHotSpot(int hotspotX,
int hotspotY)
NativeCursorsetHotSpot in class NativeCursorhotspotX - the X offset of the hot spothotspotY - the Y offset of the hot spot.void shutdown()
NativeCursorshutdown in class NativeCursorint getRenderX()
int getRenderY()
java.nio.Buffer getCursorBuffer()