Package org.apache.pivot.wtk
Enum Cursor
- java.lang.Object
-
- java.lang.Enum<Cursor>
-
- org.apache.pivot.wtk.Cursor
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CROSSHAIR
DEFAULT
HAND
MOVE
RESIZE_EAST
RESIZE_NORTH
RESIZE_NORTH_EAST
RESIZE_NORTH_WEST
RESIZE_SOUTH
RESIZE_SOUTH_EAST
RESIZE_SOUTH_WEST
RESIZE_WEST
TEXT
WAIT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Cursor
getAWTCursor()
static Cursor
getCursor(int cursorID)
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.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final Cursor DEFAULT
-
HAND
public static final Cursor HAND
-
TEXT
public static final Cursor TEXT
-
WAIT
public static final Cursor WAIT
-
CROSSHAIR
public static final Cursor CROSSHAIR
-
MOVE
public static final Cursor MOVE
-
RESIZE_NORTH
public static final Cursor RESIZE_NORTH
-
RESIZE_SOUTH
public static final Cursor RESIZE_SOUTH
-
RESIZE_EAST
public static final Cursor RESIZE_EAST
-
RESIZE_WEST
public static final Cursor RESIZE_WEST
-
RESIZE_NORTH_EAST
public static final Cursor RESIZE_NORTH_EAST
-
RESIZE_NORTH_WEST
public static final Cursor RESIZE_NORTH_WEST
-
RESIZE_SOUTH_EAST
public static final Cursor RESIZE_SOUTH_EAST
-
RESIZE_SOUTH_WEST
public static final Cursor RESIZE_SOUTH_WEST
-
-
Method Detail
-
values
public static Cursor[] 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 (Cursor c : Cursor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Cursor valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getAWTCursor
public java.awt.Cursor getAWTCursor()
- Returns:
- A
Cursor
object corresponding to thisCursor
.
-
getCursor
public static Cursor getCursor(int cursorID)
- Parameters:
cursorID
- One of theCursor
ID values to lookup.- Returns:
- One of our
Cursor
values given theCursor
ID value.
-
-