Package jexer.event
Enum TMouseEvent.Type
- java.lang.Object
-
- java.lang.Enum<TMouseEvent.Type>
-
- jexer.event.TMouseEvent.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TMouseEvent.Type>
- Enclosing class:
- TMouseEvent
public static enum TMouseEvent.Type extends java.lang.Enum<TMouseEvent.Type>
The type of event generated.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MOUSE_DOUBLE_CLICK
Mouse double-click.MOUSE_DOWN
Mouse button down.MOUSE_MOTION
Mouse motion.MOUSE_UP
Mouse button up.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TMouseEvent.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TMouseEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOUSE_MOTION
public static final TMouseEvent.Type MOUSE_MOTION
Mouse motion. X and Y will have screen coordinates.
-
MOUSE_DOWN
public static final TMouseEvent.Type MOUSE_DOWN
Mouse button down. X and Y will have screen coordinates.
-
MOUSE_UP
public static final TMouseEvent.Type MOUSE_UP
Mouse button up. X and Y will have screen coordinates.
-
MOUSE_DOUBLE_CLICK
public static final TMouseEvent.Type MOUSE_DOUBLE_CLICK
Mouse double-click. X and Y will have screen coordinates.
-
-
Method Detail
-
values
public static TMouseEvent.Type[] 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 (TMouseEvent.Type c : TMouseEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TMouseEvent.Type 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
-
-