|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsun.porting.graphicssystem.CursorImage
public abstract class CursorImage
CursorImage is an object which encapsulates the bitmap and hotspot data describing a cursor. It is used simply to hold all of the required information in one place. It also enables the native implementation to build a cursor from this image data and cache it.
| Field Summary | |
|---|---|
protected int |
hotX
The x coordinate of the cursor hot spot, i.e. |
protected int |
hotY
The y coordinate of the cursor hot spot, i.e. |
protected java.awt.Image |
image
An image which contains the shape of the cursor. |
| Constructor Summary | |
|---|---|
CursorImage(java.awt.Image imageData,
int x,
int y)
Create a new CursorImage object from the given image data and hotspot. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.awt.Image image
protected int hotX
protected int hotY
| Constructor Detail |
|---|
public CursorImage(java.awt.Image imageData,
int x,
int y)
imageData - An image, probably with transparency, which describes
the shape and coloration of the cursor.x - The x coordinate of the cursor hotspot.y - The y coordinate of the cursor hotspot.GraphicsSystem.getMaximumCursorColors(),
GraphicsSystem.getMaximumCursorSize(),
GraphicsSystem.getBestCursorSize(int, int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||