Todo
Can we mmap the image and location files?
| Modifier and Type | Field 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 |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Size | getBestSize()
Implements abstract com. Returns the preferred size of a native cursor. |
| pack-priv void | setHotSpot(int
the X offset of the hot spot hotspotX, int the Y offset of the hot spot. hotspotY)Implements abstract com. 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[]
the cursor image, in BYTE_BGRA_PRE format cursorImage)Implements abstract com. Sets the cursor image |
| pack-priv void | setLocation(int
the new X location on the screen x, int the new Y location on the screen y)Implements abstract com. Sets the location of the hot spot of the cursor on the screen |
| pack-priv void | setVisibility(boolean
the new setting for the cursor's visibility. visibility)Implements abstract com. Sets whether or not the cursor is visible. |
| pack-priv void | shutdown()
Implements abstract com. Performs any necessary shutdown of the cursor infrastructure. |
| private void |
| CURSOR_HEIGHT | back to summary |
|---|---|
| private static final int CURSOR_HEIGHT | |
| CURSOR_WIDTH | back to summary |
|---|---|
| private static final int CURSOR_WIDTH | |
| cursorBuffer | back to summary |
|---|---|
| private Buffer cursorBuffer | |
| cursorDepth | back to summary |
|---|---|
| private int cursorDepth | |
| cursorX | back to summary |
|---|---|
| private int cursorX | |
| cursorY | back to summary |
|---|---|
| private int cursorY | |
| hotspotX | back to summary |
|---|---|
| private int hotspotX | |
| hotspotY | back to summary |
|---|---|
| private int hotspotY | |
| INT_KEY | back to summary |
|---|---|
| private static final int INT_KEY | |
| offsetCursor | back to summary |
|---|---|
| private byte[] offsetCursor | |
| offsetCursorBuffer | back to summary |
|---|---|
| private Buffer offsetCursorBuffer | |
| offsetX | back to summary |
|---|---|
| private int offsetX | |
| offsetY | back to summary |
|---|---|
| private int offsetY | |
| screenHeight | back to summary |
|---|---|
| private int screenHeight | |
| screenWidth | back to summary |
|---|---|
| private int screenWidth | |
| SHORT_KEY | back to summary |
|---|---|
| private static final int SHORT_KEY | |
| transparentPixel | back to summary |
|---|---|
| private int transparentPixel | |
| OMAPCursor | back to summary |
|---|---|
| pack-priv OMAPCursor() | |
| getBestSize | back to summary |
|---|---|
| pack-priv Size getBestSize() Implements abstract com. Doc from com. Returns the preferred size of a native cursor.
| |
| setHotSpot | back to summary |
|---|---|
| pack-priv void setHotSpot(int hotspotX, int hotspotY) Implements abstract com. Doc from com. Sets the offset of the cursor's hot spot within the cursor image The hot spot offsets default to 0, 0.
| |
| setImage | back to summary |
|---|---|
| pack-priv void setImage(byte[] cursorImage) Implements abstract com. Doc from com. Sets the cursor image
| |
| setLocation | back to summary |
|---|---|
| pack-priv void setLocation(int x, int y) Implements abstract com. Doc from com. Sets the location of the hot spot of the cursor on the screen
| |
| setVisibility | back to summary |
|---|---|
| pack-priv void setVisibility(boolean visibility) Implements abstract com. Doc from com. 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.
| |
| shutdown | back to summary |
|---|---|
| pack-priv void shutdown() Implements abstract com. Doc from com. Performs any necessary shutdown of the cursor infrastructure. Called only once.
| |
| updateImage | back to summary |
|---|---|
| private void updateImage(boolean always) | |