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

pack-priv Class OMAPCursor

extends NativeCursor
Class Inheritance
Imports
com.sun.glass.ui.Size, java.io.IOException, java.nio.Buffer, .ByteBuffer

Cursor using a framebuffer overlay on OMAP3.

Todo

Can we mmap the image and location files?

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private Buffer
private int
private int
private int
private int
private int
private static final int
private byte[]
private Buffer
private int
private int
private int
private int
private static final int
private int
Inherited from com.sun.glass.ui.monocle.NativeCursor:
isVisible

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

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

Implements abstract com.sun.glass.ui.monocle.NativeCursor.getBestSize.

Returns the preferred size of a native cursor.

pack-priv void
setHotSpot(int hotspotX, int hotspotY)

Implements abstract com.sun.glass.ui.monocle.NativeCursor.setHotSpot.

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

pack-priv void
setImage(byte[] cursorImage)

Implements abstract com.sun.glass.ui.monocle.NativeCursor.setImage.

Sets the cursor image

pack-priv void
setLocation(int x, int y)

Implements abstract com.sun.glass.ui.monocle.NativeCursor.setLocation.

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

pack-priv void
setVisibility(boolean visibility)

Implements abstract com.sun.glass.ui.monocle.NativeCursor.setVisibility.

Sets whether or not the cursor is visible.

pack-priv void
shutdown()

Implements abstract com.sun.glass.ui.monocle.NativeCursor.shutdown.

Performs any necessary shutdown of the cursor infrastructure.

private void
updateImage(boolean always)

Inherited from com.sun.glass.ui.monocle.NativeCursor:
getVisiblity

Field Detail

CURSOR_HEIGHTback to summary
private static final int CURSOR_HEIGHT
CURSOR_WIDTHback to summary
private static final int CURSOR_WIDTH
cursorBufferback to summary
private Buffer cursorBuffer
cursorDepthback to summary
private int cursorDepth
cursorXback to summary
private int cursorX
cursorYback to summary
private int cursorY
hotspotXback to summary
private int hotspotX
hotspotYback to summary
private int hotspotY
INT_KEYback to summary
private static final int INT_KEY
offsetCursorback to summary
private byte[] offsetCursor
offsetCursorBufferback to summary
private Buffer offsetCursorBuffer
offsetXback to summary
private int offsetX
offsetYback to summary
private int offsetY
screenHeightback to summary
private int screenHeight
screenWidthback to summary
private int screenWidth
SHORT_KEYback to summary
private static final int SHORT_KEY
transparentPixelback to summary
private int transparentPixel

Constructor Detail

OMAPCursorback to summary
pack-priv OMAPCursor()

Method Detail

getBestSizeback to summary
pack-priv Size getBestSize()

Implements abstract com.sun.glass.ui.monocle.NativeCursor.getBestSize.

Doc from com.sun.glass.ui.monocle.NativeCursor.getBestSize.

Returns the preferred size of a native cursor.

Annotations
@Override
setHotSpotback to summary
pack-priv void setHotSpot(int hotspotX, int hotspotY)

Implements abstract com.sun.glass.ui.monocle.NativeCursor.setHotSpot.

Doc from com.sun.glass.ui.monocle.NativeCursor.setHotSpot.

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

Annotations
@Override
setImageback to summary
pack-priv void setImage(byte[] cursorImage)

Implements abstract com.sun.glass.ui.monocle.NativeCursor.setImage.

Doc from com.sun.glass.ui.monocle.NativeCursor.setImage.

Sets the cursor image

Annotations
@Override
setLocationback to summary
pack-priv void setLocation(int x, int y)

Implements abstract com.sun.glass.ui.monocle.NativeCursor.setLocation.

Doc from com.sun.glass.ui.monocle.NativeCursor.setLocation.

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

Annotations
@Override
setVisibilityback to summary
pack-priv void setVisibility(boolean visibility)

Implements abstract com.sun.glass.ui.monocle.NativeCursor.setVisibility.

Doc from com.sun.glass.ui.monocle.NativeCursor.setVisibility.

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.

Annotations
@Override
shutdownback to summary
pack-priv void shutdown()

Implements abstract com.sun.glass.ui.monocle.NativeCursor.shutdown.

Doc from com.sun.glass.ui.monocle.NativeCursor.shutdown.

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

Annotations
@Override
updateImageback to summary
private void updateImage(boolean always)