public enum MouseClick extends Enum<MouseClick> implements Predicate<Event>
Modifier and Type | Field and Description |
---|---|
static int |
RIGHT_CLICK_EVENT
Should we use MouseDown or MouseUp for right-clicks? This (down) is the answer.
|
Modifier and Type | Method and Description |
---|---|
int |
code() |
boolean |
test(Event e) |
static MouseClick |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MouseClick[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MouseClick LEFT
public static final MouseClick MIDDLE
public static final MouseClick RIGHT
public static final int RIGHT_CLICK_EVENT
public static MouseClick[] values()
for (MouseClick c : MouseClick.values()) System.out.println(c);
public static MouseClick valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int code()