|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.eclipse.swt.graphics.Cursor
Instances of this class manage operating system resources that specify the appearance of the on-screen pointer. To create a cursor you specify the device and either a simple cursor style describing one of the standard operating system provided cursors or the image and mask data for the desired appearance.
Application code must explicitly invoke the Cursor.dispose()
method to release the operating system resources managed by each instance
when those instances are no longer required.
Note: Only one of the above styles may be specified.
| Field Summary | |
protected boolean |
isIcon
true, if the cursor was created as Icon |
| Constructor Summary | |
Cursor(Device device,
ImageData source,
int hotspotX,
int hotspotY)
Constructs a new cursor given a device, image data describing the desired cursor appearance, and the x and y coordinates of the hotspot (that is, the point within the area covered by the cursor which is considered to be where the on-screen pointer is "pointing"). |
|
| Method Summary | |
void |
dispose()
Disposes of the operating system resources associated with the cursor. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, toString |
| Field Detail |
protected boolean isIcon
| Constructor Detail |
public Cursor(Device device,
ImageData source,
int hotspotX,
int hotspotY)
You must dispose the cursor when it is no longer required.
device - the device on which to allocate the cursorhotspotX - the x coordinate of the cursor's hotspothotspotY - the y coordinate of the cursor's hotspot
IllegalArgumentException - SWTError - | Method Detail |
public void dispose()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||