- java.lang.Object
- 
- javafx.scene.Cursor
 
- 
- Direct Known Subclasses:
- ImageCursor
 
 public abstract class Cursor extends Object A class to encapsulate the bitmap representation of the mouse cursor.- Since:
- JavaFX 2.0
 
- 
- 
Field SummaryFields Modifier and Type Field Description static CursorCLOSED_HANDA cursor with a hand that is closed, often used when "grabbing", for example, when panning.static CursorCROSSHAIRThe crosshair cursor type.static CursorDEFAULTThe default cursor type (gets set if no cursor is defined).static CursorDISAPPEARThe disappear cursor type.static CursorE_RESIZEThe east-resize cursor type.static CursorH_RESIZEThe horizontal cursor type.static CursorHANDThe hand cursor type, resembling a pointing hand, often used to indicate that something can be clicked, such as a hyperlink.static CursorMOVEThe move cursor type.static CursorN_RESIZEThe north-resize cursor type.static CursorNE_RESIZEThe north-east-resize cursor type.static CursorNONEThe none cursor type.static CursorNW_RESIZEThe north-west-resize cursor type.static CursorOPEN_HANDA cursor with a hand which is openstatic CursorS_RESIZEThe south-resize cursor type.static CursorSE_RESIZEThe south-east-resize cursor type.static CursorSW_RESIZEThe south-west-resize cursor type.static CursorTEXTThe text cursor type.static CursorV_RESIZEThe vertical cursor type.static CursorW_RESIZEThe west-resize cursor type.static CursorWAITThe wait cursor type.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Cursorcursor(String identifier)Returns a cursor for the specified identifier.StringtoString()Returns a string representation for the cursor.
 
- 
- 
- 
Field Detail- 
DEFAULTpublic static final Cursor DEFAULT The default cursor type (gets set if no cursor is defined).
 - 
CROSSHAIRpublic static final Cursor CROSSHAIR The crosshair cursor type.
 - 
TEXTpublic static final Cursor TEXT The text cursor type.
 - 
WAITpublic static final Cursor WAIT The wait cursor type.
 - 
SW_RESIZEpublic static final Cursor SW_RESIZE The south-west-resize cursor type.
 - 
SE_RESIZEpublic static final Cursor SE_RESIZE The south-east-resize cursor type.
 - 
NW_RESIZEpublic static final Cursor NW_RESIZE The north-west-resize cursor type.
 - 
NE_RESIZEpublic static final Cursor NE_RESIZE The north-east-resize cursor type.
 - 
N_RESIZEpublic static final Cursor N_RESIZE The north-resize cursor type.
 - 
S_RESIZEpublic static final Cursor S_RESIZE The south-resize cursor type.
 - 
W_RESIZEpublic static final Cursor W_RESIZE The west-resize cursor type.
 - 
E_RESIZEpublic static final Cursor E_RESIZE The east-resize cursor type.
 - 
OPEN_HANDpublic static final Cursor OPEN_HAND A cursor with a hand which is open
 - 
CLOSED_HANDpublic static final Cursor CLOSED_HAND A cursor with a hand that is closed, often used when "grabbing", for example, when panning.
 - 
HANDpublic static final Cursor HAND The hand cursor type, resembling a pointing hand, often used to indicate that something can be clicked, such as a hyperlink.
 - 
MOVEpublic static final Cursor MOVE The move cursor type.
 - 
DISAPPEARpublic static final Cursor DISAPPEAR The disappear cursor type. This is often used when dragging something, such that when the user releases the mouse, the item will disappear. On Mac, this is used when dragging items off a toolbar or in other such situations.
 - 
H_RESIZEpublic static final Cursor H_RESIZE The horizontal cursor type.
 - 
V_RESIZEpublic static final Cursor V_RESIZE The vertical cursor type.
 - 
NONEpublic static final Cursor NONE The none cursor type. On platforms that don't support custom cursors, this will be the same asDEFAULT.
 
- 
 - 
Method Detail- 
toStringpublic String toString() Returns a string representation for the cursor.
 - 
cursorpublic static Cursor cursor(String identifier) Returns a cursor for the specified identifier. The identifier can be either a name of some standard cursor or a valid URL string. If the identifier names a standard cursor the corresponding cursor is returned. In the case of a URL string, the method returns a newImageCursorcreated for that URL.- Parameters:
- identifier- the cursor identifier
- Returns:
- the cursor for the identifier
- Throws:
- IllegalArgumentException- if the cursor identifier is not a valid URL string nor any standard cursor name
 
 
- 
 
-