@Immutable public enum MouseTriggerEvent extends java.lang.Enum<MouseTriggerEvent> implements TriggerEvent
Enum Constant and Description |
---|
CLICK
Event fired when mouse is clicked.
|
ENTER
Event fired when mouse enters.
|
EXIT
Event fired when mouse exits.
|
PRESS
Event fired when mouse button is pressed.
|
RELEASE
Event fired when mouse button is released.
|
Modifier and Type | Method and Description |
---|---|
MouseTriggerEvent |
getOppositeEvent()
This method returns the 'opposite' event from itself.
|
static MouseTriggerEvent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MouseTriggerEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MouseTriggerEvent ENTER
public static final MouseTriggerEvent EXIT
public static final MouseTriggerEvent PRESS
public static final MouseTriggerEvent RELEASE
public static final MouseTriggerEvent CLICK
public static MouseTriggerEvent[] values()
for (MouseTriggerEvent c : MouseTriggerEvent.values()) System.out.println(c);
public static MouseTriggerEvent 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 MouseTriggerEvent getOppositeEvent()
TriggerEvent
Trigger
in running an auto-reversing animation, to determine
whether an opposite event has occurred (and whether to stop/reverse the
animation). Note that some events may have no opposite. Default behavior
returns same event; subclasses with multiple/opposite events must override
to do the right thing here.getOppositeEvent
in interface TriggerEvent