Top Description Fields Constructors Methods
com.sun.glass.ui.monocle

pack-priv abstract Class NativeCursor

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.glass.ui.monocle.NullCursor, com.sun.glass.ui.monocle.OMAPCursor, com.sun.glass.ui.monocle.SoftwareCursor, com.sun.glass.ui.monocle.X11Cursor, com.sun.glass.ui.monocle.DispmanCursor, com.sun.glass.ui.monocle.EGLCursor, com.sun.glass.ui.monocle.MX6Cursor
Imports
com.sun.glass.ui.Size

Abstraction of a native cursor

Field Summary

Modifier and TypeField and Description
protected boolean
isVisible

Is the cursor currently visible?

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract Size
getBestSize()

Returns the preferred size of a native cursor.

pack-priv boolean

Returns:

trueif the cursor is visible, false otherwise.
getVisiblity
()

Queries whether or not the cursor is visible

pack-priv abstract void
setHotSpot(int
the X offset of the hot spot
hotspotX
,
int
the Y offset of the hot spot.
hotspotY
)

Sets the offset of the cursor's hot spot within the cursor image The hot spot offsets default to 0, 0.

pack-priv abstract void
setImage(byte[]
the cursor image, in BYTE_BGRA_PRE format
cursorImage
)

Sets the cursor image

pack-priv abstract void
setLocation(int
the new X location on the screen
x
,
int
the new Y location on the screen
y
)

Sets the location of the hot spot of the cursor on the screen

pack-priv abstract void
setVisibility(boolean
the new setting for the cursor's visibility.
visibility
)

Sets whether or not the cursor is visible.

pack-priv abstract void
shutdown()

Performs any necessary shutdown of the cursor infrastructure.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isVisibleback to summary
protected boolean isVisible

Is the cursor currently visible?

Constructor Detail

NativeCursorback to summary
pack-priv NativeCursor()

Method Detail

getBestSizeback to summary
pack-priv abstract Size getBestSize()

Returns the preferred size of a native cursor.

getVisiblityback to summary
pack-priv boolean getVisiblity()

Queries whether or not the cursor is visible

Returns:boolean

trueif the cursor is visible, false otherwise.

setHotSpotback to summary
pack-priv 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.

Parameters
hotspotX:int

the X offset of the hot spot

hotspotY:int

the Y offset of the hot spot.

setImageback to summary
pack-priv abstract void setImage(byte[] cursorImage)

Sets the cursor image

Parameters
cursorImage:byte[]

the cursor image, in BYTE_BGRA_PRE format

setLocationback to summary
pack-priv abstract void setLocation(int x, int y)

Sets the location of the hot spot of the cursor on the screen

Parameters
x:int

the new X location on the screen

y:int

the new Y location on the screen

setVisibilityback to summary
pack-priv abstract void setVisibility(boolean visibility)

Sets whether or not the cursor is visible. The implementation should set the isVisible field. On success the isVisible field is set to the visibility parameter.

Parameters
visibility:boolean

the new setting for the cursor's visibility.

shutdownback to summary
pack-priv abstract void shutdown()

Performs any necessary shutdown of the cursor infrastructure. Called only once.