|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lri.swingstates.sm.Transition
fr.lri.swingstates.sm.transitions.Event
fr.lri.swingstates.canvas.CStateMachine.AnimationStopped
public class CStateMachine.AnimationStopped
A transition triggered by an animation that has just "naturally" stopped
or has just been explicitely stopped. For example, one can want to start
an animation animAfter just after an animation
animBefore has stopped.
Transition tshape = new AnimationStopped(animBefore) {
public void action() {
// starts
animAfter
animation.
animAfter.start();
}
}
| Constructor Summary | |
|---|---|
CStateMachine.AnimationStopped()
Builds a transition that loops on the current state triggered when any animation has just stopped. |
|
CStateMachine.AnimationStopped(Animation anim)
Builds a transition that loops on the current state triggered when an animation has just stopped. |
|
CStateMachine.AnimationStopped(Animation anim,
java.lang.String outState)
Builds a transition triggered when an animation has just stopped. |
|
CStateMachine.AnimationStopped(ATag tagAnim)
Builds a transition that loops on the current state triggered when a tagged animation has just stopped. |
|
CStateMachine.AnimationStopped(ATag tagAnim,
java.lang.String outState)
Builds a transition triggered when a tagged animation has just stopped. |
|
CStateMachine.AnimationStopped(java.lang.String outState)
Builds a transition triggered when any animation has just stopped. |
|
| Method Summary | |
|---|---|
Animation |
getAnimation()
|
VirtualAnimationEvent |
getAnimationEvent()
|
boolean |
matches(java.util.EventObject eventObject)
Tests if an event can trigger that transition. |
java.lang.String |
toString()
|
| Methods inherited from class fr.lri.swingstates.sm.Transition |
|---|
action, getEvent, getInputState, getOutputState, guard, oldToString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CStateMachine.AnimationStopped()
public CStateMachine.AnimationStopped(Animation anim)
anim - The animation that fires this transition.public CStateMachine.AnimationStopped(ATag tagAnim)
tagAnim - The tag of the animation that fires this transition.public CStateMachine.AnimationStopped(java.lang.String outState)
outState - The name of the output state.
public CStateMachine.AnimationStopped(Animation anim,
java.lang.String outState)
anim - The animation that fires this transition.outState - The name of the output state.
public CStateMachine.AnimationStopped(ATag tagAnim,
java.lang.String outState)
tagAnim - The tag of the animation that fires this transition.outState - The name of the output state.| Method Detail |
|---|
public Animation getAnimation()
public VirtualAnimationEvent getAnimationEvent()
public java.lang.String toString()
toString in class Eventpublic boolean matches(java.util.EventObject eventObject)
matches in class EventeventObject - The event to test
eventObject
can trigger this transition.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||