|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.animation.timing.triggers.TriggerEvent
public class TriggerEvent
Superclass for all TriggerEvents used in the Trigger classes. The methods
here are mostly protected; it is expected that callers will not use this
class directly, but will instead use subclasses with pre-defined event
types. The purpose of this superclass is to provide the ability for
Trigger
to treat event types generically, rather than to have
all even logic in the subclasses of Trigger.
Constructor Summary | |
---|---|
protected |
TriggerEvent(java.lang.String name)
Protected constructor; this helps ensure type-safe use of pre-define TriggerEvent objects. |
Method Summary | |
---|---|
TriggerEvent |
getOppositeEvent()
This method returns the 'opposite' event from itself. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TriggerEvent(java.lang.String name)
Method Detail |
---|
public TriggerEvent getOppositeEvent()
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |