@Immutable public enum TimingTriggerEvent extends java.lang.Enum<TimingTriggerEvent> implements TriggerEvent
Enum Constant and Description |
---|
REPEAT
Event fired when an animation finishes one cycle and starts another.
|
REVERSE
Event fired with an animation is reversed mid-cycle.
|
START
Event fired when an animation starts.
|
STOP
Event fired when an animation stops.
|
Modifier and Type | Method and Description |
---|---|
TimingTriggerEvent |
getOppositeEvent()
This method returns the 'opposite' event from itself.
|
static TimingTriggerEvent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimingTriggerEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimingTriggerEvent START
public static final TimingTriggerEvent STOP
public static final TimingTriggerEvent REPEAT
public static final TimingTriggerEvent REVERSE
public static TimingTriggerEvent[] values()
for (TimingTriggerEvent c : TimingTriggerEvent.values()) System.out.println(c);
public static TimingTriggerEvent 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 TimingTriggerEvent 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