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