APIdia Launch Partner
Top Description Fields Constructors Methods
sun.awt

public abstract Class CustomCursor

extends Cursor
Class Inheritance
Known Direct Subclasses
sun.awt.X11CustomCursor
Annotations
@SuppressWarnings:serial
Imports
java.awt.*, java.awt.image.*

A class to encapsulate a custom image-based cursor.
Author
ThomasBall

Field Summary

Modifier and TypeField and Description
protected Image
Inherited from java.awt.Cursor:
CROSSHAIR_CURSORCUSTOM_CURSORDEFAULT_CURSORE_RESIZE_CURSORHAND_CURSORMOVE_CURSORN_RESIZE_CURSORnameNE_RESIZE_CURSORNW_RESIZE_CURSORpredefinedS_RESIZE_CURSORSE_RESIZE_CURSORSW_RESIZE_CURSORTEXT_CURSORW_RESIZE_CURSORWAIT_CURSOR

Constructor Summary

AccessConstructor and Description
public
CustomCursor(Image cursor, Point hotSpot, String name)

Method Summary

Modifier and TypeMethod and Description
protected abstract void
createNativeCursor(Image im, int[] pixels, int width, int height, int xHotSpot, int yHotSpot)

Inherited from java.awt.Cursor:
getDefaultCursorgetNamegetPredefinedCursorgetSystemCustomCursorgetTypetoString

Field Detail

imageback to summary
protected Image image

Constructor Detail

CustomCursorback to summary
public CustomCursor(Image cursor, Point hotSpot, String name) throws IndexOutOfBoundsException

Method Detail

createNativeCursorback to summary
protected abstract void createNativeCursor(Image im, int[] pixels, int width, int height, int xHotSpot, int yHotSpot)