Package org.scijava.input
Enum MouseCursor
- java.lang.Object
-
- java.lang.Enum<MouseCursor>
-
- org.scijava.input.MouseCursor
-
- All Implemented Interfaces:
Serializable,Comparable<MouseCursor>
public enum MouseCursor extends Enum<MouseCursor>
A UI-independent enumeration of mouse cursors.- Author:
- Grant Harris, Curtis Rueden
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CROSSHAIRA crosshair cursor.CUSTOMCustom cursor.DEFAULTDefault pointer.E_RESIZECursor for resizing an edge eastward.HANDA hand-shaped cursor.MOVEFour-way arrow cursor.N_RESIZECursor for resizing an edge northward.NE_RESIZECursor for resizing an edge northeast.NW_RESIZECursor for resizing an edge northwest.OFFNo cursor (invisible).S_RESIZECursor for resizing an edge southward.SE_RESIZECursor for resizing an edge southeast.SW_RESIZECursor for resizing an edge southwest.TEXTVertical bar cursor, for text selection.W_RESIZECursor for resizing an edge westward.WAITHourglass cursor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MouseCursorvalueOf(String name)Returns the enum constant of this type with the specified name.static MouseCursor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final MouseCursor DEFAULT
Default pointer.
-
OFF
public static final MouseCursor OFF
No cursor (invisible).
-
CUSTOM
public static final MouseCursor CUSTOM
Custom cursor.
-
CROSSHAIR
public static final MouseCursor CROSSHAIR
A crosshair cursor.
-
HAND
public static final MouseCursor HAND
A hand-shaped cursor.
-
MOVE
public static final MouseCursor MOVE
Four-way arrow cursor.
-
TEXT
public static final MouseCursor TEXT
Vertical bar cursor, for text selection.
-
WAIT
public static final MouseCursor WAIT
Hourglass cursor.
-
N_RESIZE
public static final MouseCursor N_RESIZE
Cursor for resizing an edge northward.
-
S_RESIZE
public static final MouseCursor S_RESIZE
Cursor for resizing an edge southward.
-
W_RESIZE
public static final MouseCursor W_RESIZE
Cursor for resizing an edge westward.
-
E_RESIZE
public static final MouseCursor E_RESIZE
Cursor for resizing an edge eastward.
-
NW_RESIZE
public static final MouseCursor NW_RESIZE
Cursor for resizing an edge northwest.
-
NE_RESIZE
public static final MouseCursor NE_RESIZE
Cursor for resizing an edge northeast.
-
SW_RESIZE
public static final MouseCursor SW_RESIZE
Cursor for resizing an edge southwest.
-
SE_RESIZE
public static final MouseCursor SE_RESIZE
Cursor for resizing an edge southeast.
-
-
Method Detail
-
values
public static MouseCursor[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MouseCursor c : MouseCursor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MouseCursor valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-