public class AnimationSuspended extends Event
A transition triggered by an animation that has just been suspended. For
example, one can want to resume an animation animSlept
when an animation animAwake
is suspended.
Transition tshape = new AnimationSuspended(animAwake) {
public void action() {
// resumes
animSlept
animation.
animSlept.resume();
}
}
Constructor and Description |
---|
AnimationSuspended()
Builds a transition that loops on the current state triggered when
any animation has just been suspended.
|
AnimationSuspended(Animation anim)
Builds a transition that loops on the current state triggered when an
animation has just been suspended.
|
AnimationSuspended(Animation anim,
java.lang.String outState)
Builds a transition triggered when an animation has just been
supended.
|
AnimationSuspended(ATag tagAnim)
Builds a transition that loops on the current state triggered when a
tagged animation has just been suspended.
|
AnimationSuspended(ATag tagAnim,
java.lang.String outState)
Builds a transition triggered when a tagged animation has just been
supended.
|
AnimationSuspended(java.lang.String outState)
Builds a transition triggered when any animation has just been
supended.
|
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 AnimationSuspended()
public AnimationSuspended(Animation anim)
anim
- The animation that fires this transition.public AnimationSuspended(ATag tagAnim)
tagAnim
- The tag of the animation that fires this transition.public AnimationSuspended(java.lang.String outState)
outState
- The name of the output state.public AnimationSuspended(Animation anim, java.lang.String outState)
anim
- The animation that fires this transition.outState
- The name of the output state.public AnimationSuspended(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()