Enum Constant and Description |
---|
AUTO
The UA determines the cursor to display based on the current context.
|
COL_RESIZE |
CROSSHAIR
A simple crosshair (e.g., short line segments resembling a "+" sign).
|
DEFAULT
The platform-dependent default cursor.
|
E_RESIZE
e-resize, ne-resize, nw-resize, n-resize, se-resize, sw-resize, s-resize, w-resize:
Indicate that some edge is to be moved.
|
HELP
Help is available for the object under the cursor.
|
MOVE
Indicates something is to be moved.
|
N_RESIZE
e-resize, ne-resize, nw-resize, n-resize, se-resize, sw-resize, s-resize,
w-resize: Indicate that some edge is to be moved.
|
NE_RESIZE
e-resize, ne-resize, nw-resize, n-resize, se-resize, sw-resize, s-resize,
w-resize: Indicate that some edge is to be moved.
|
NW_RESIZE
e-resize, ne-resize, nw-resize, n-resize, se-resize, sw-resize, s-resize,
w-resize: Indicate that some edge is to be moved.
|
POINTER
The cursor is a pointer that indicates a link.
|
ROW_RESIZE |
S_RESIZE
e-resize, ne-resize, nw-resize, n-resize, se-resize, sw-resize, s-resize,
w-resize: Indicate that some edge is to be moved.
|
SE_RESIZE
e-resize, ne-resize, nw-resize, n-resize, se-resize, sw-resize, s-resize,
w-resize: Indicate that some edge is to be moved.
|
SW_RESIZE
e-resize, ne-resize, nw-resize, n-resize, se-resize, sw-resize, s-resize,
w-resize: Indicate that some edge is to be moved.
|
TEXT
Indicates text that may be selected.
|
W_RESIZE
e-resize, ne-resize, nw-resize, n-resize, se-resize, sw-resize, s-resize,
w-resize: Indicate that some edge is to be moved.
|
WAIT
Indicates that the program is busy and the user should wait.
|
Modifier and Type | Method and Description |
---|---|
static Cursor |
fromString(java.lang.String value)
Converts the given string into a Cursor representation
|
java.lang.String |
getCursor()
Returns the String representation for the cursor property
|
static Cursor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Cursor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Cursor DEFAULT
public static final Cursor AUTO
public static final Cursor CROSSHAIR
public static final Cursor POINTER
public static final Cursor MOVE
public static final Cursor E_RESIZE
public static final Cursor NE_RESIZE
public static final Cursor NW_RESIZE
public static final Cursor N_RESIZE
public static final Cursor SE_RESIZE
public static final Cursor SW_RESIZE
public static final Cursor S_RESIZE
public static final Cursor W_RESIZE
public static final Cursor TEXT
public static final Cursor WAIT
public static final Cursor HELP
public static final Cursor COL_RESIZE
public static final Cursor ROW_RESIZE
public static Cursor[] values()
for (Cursor c : Cursor.values()) System.out.println(c);
public static Cursor valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getCursor()
public static Cursor fromString(java.lang.String value)
value
- The value to turn into a Cursor representation