public class AnimationStopped extends Event
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 and Description |
---|
AnimationStopped()
Builds a transition that loops on the current state triggered when
any animation has just stopped.
|
AnimationStopped(Animation anim)
Builds a transition that loops on the current state triggered when an
animation has just stopped.
|
AnimationStopped(Animation anim,
java.lang.String outState)
Builds a transition triggered when an animation has just stopped.
|
AnimationStopped(ATag tagAnim)
Builds a transition that loops on the current state triggered when a
tagged animation has just stopped.
|
AnimationStopped(ATag tagAnim,
java.lang.String outState)
Builds a transition triggered when a tagged animation has just
stopped.
|
AnimationStopped(java.lang.String outState)
Builds a transition triggered when any animation has just stopped.
|
Modifier and Type | Method and Description |
---|---|
Animation |
getAnimation() |
VirtualAnimationEvent |
getAnimationEvent() |
boolean |
matches(java.util.EventObject eventObject)
Tests if an event can trigger that transition.
|
java.lang.String |
toString() |
getClassEvent
action, getEvent, getInputState, getOutputState, guard, manageEventID, oldToString, pickingRequired, setTriggeringEvent
public AnimationStopped()
public AnimationStopped(Animation anim)
anim
- The animation that fires this transition.public AnimationStopped(ATag tagAnim)
tagAnim
- The tag of the animation that fires this transition.public AnimationStopped(java.lang.String outState)
outState
- The name of the output state.public AnimationStopped(Animation anim, java.lang.String outState)
anim
- The animation that fires this transition.outState
- The name of the output state.public AnimationStopped(ATag tagAnim, java.lang.String outState)
tagAnim
- The tag of the animation that fires this transition.outState
- The name of the output state.public Animation getAnimation()
public VirtualAnimationEvent getAnimationEvent()