|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.media.animation.AnimationWaiter
public abstract class AnimationWaiter
An abstract class that simplifies a common animation usage case in
which a number of animations are created and the creator would like to
be able to perform specific actions when each animation has completed
(see animationDidFinish(com.threerings.media.animation.Animation) and/or when all animations are
finished (see allAnimationsFinished().)
| Field Summary | |
|---|---|
protected int |
_animCount
The number of animations. |
| Constructor Summary | |
|---|---|
AnimationWaiter()
|
|
| Method Summary | |
|---|---|
void |
addAnimation(Animation anim)
Adds an animation to the animation waiter for observation. |
void |
addAnimations(Animation[] anims)
Adds the supplied animations to the animation waiter for observation. |
protected void |
allAnimationsFinished()
Called when all animations being observed by the waiter have completed their business. |
void |
animationCompleted(Animation anim,
long when)
Called when the observed animation has completed. |
protected void |
animationDidFinish(Animation anim)
Called when an animation being observed by the waiter has completed its business. |
void |
animationStarted(Animation anim,
long when)
Called the first time this animation is ticked. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _animCount
| Constructor Detail |
|---|
public AnimationWaiter()
| Method Detail |
|---|
public void addAnimation(Animation anim)
public void addAnimations(Animation[] anims)
public void animationStarted(Animation anim,
long when)
AnimationObserver
animationStarted in interface AnimationObserver
public void animationCompleted(Animation anim,
long when)
AnimationObserver
animationCompleted in interface AnimationObserverprotected void animationDidFinish(Animation anim)
protected void allAnimationsFinished()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||