Class Cursor
java.lang.Object
javafx.scene.Cursor
- Direct Known Subclasses:
- ImageCursor
A class to encapsulate the bitmap representation of the mouse cursor.
- Since:
- JavaFX 2.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final CursorA cursor with a hand that is closed, often used when "grabbing", for example, when panning.static final CursorThe crosshair cursor type.static final CursorThe default cursor type (gets set if no cursor is defined).static final CursorThe disappear cursor type.static final CursorThe east-resize cursor type.static final CursorThe horizontal cursor type.static final CursorThe hand cursor type, resembling a pointing hand, often used to indicate that something can be clicked, such as a hyperlink.static final CursorThe move cursor type.static final CursorThe north-resize cursor type.static final CursorThe north-east-resize cursor type.static final CursorThe none cursor type.static final CursorThe north-west-resize cursor type.static final CursorA cursor with a hand which is openstatic final CursorThe south-resize cursor type.static final CursorThe south-east-resize cursor type.static final CursorThe south-west-resize cursor type.static final CursorThe text cursor type.static final CursorThe vertical cursor type.static final CursorThe west-resize cursor type.static final CursorThe wait cursor type.
- 
Method Summary
- 
Field Details- 
DEFAULTThe default cursor type (gets set if no cursor is defined).
- 
CROSSHAIRThe crosshair cursor type.
- 
TEXTThe text cursor type.
- 
WAITThe wait cursor type.
- 
SW_RESIZEThe south-west-resize cursor type.
- 
SE_RESIZEThe south-east-resize cursor type.
- 
NW_RESIZEThe north-west-resize cursor type.
- 
NE_RESIZEThe north-east-resize cursor type.
- 
N_RESIZEThe north-resize cursor type.
- 
S_RESIZEThe south-resize cursor type.
- 
W_RESIZEThe west-resize cursor type.
- 
E_RESIZEThe east-resize cursor type.
- 
OPEN_HANDA cursor with a hand which is open
- 
CLOSED_HANDA cursor with a hand that is closed, often used when "grabbing", for example, when panning.
- 
HANDThe hand cursor type, resembling a pointing hand, often used to indicate that something can be clicked, such as a hyperlink.
- 
MOVEThe move cursor type.
- 
DISAPPEARThe 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_RESIZEThe horizontal cursor type.
- 
V_RESIZEThe vertical cursor type.
- 
NONEThe none cursor type. On platforms that don't support custom cursors, this will be the same asDEFAULT.
 
- 
- 
Method Details- 
toString
- 
cursorReturns 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
 
 
-