public class AnimationSequencer extends Animation
HUD_LAYER| Constructor and Description |
|---|
AnimationSequencer(AnimationManager animmgr)
Constructs an animation sequencer with the expectation that animations will be added via
subsequent calls to
addAnimation(com.threerings.media.animation.Animation, long, java.lang.Runnable). |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnimation(Animation anim)
Convenience wrapper to add an animation to run at the same time as the previous one.
|
void |
addAnimation(Animation anim,
long delta,
Runnable completionAction)
Adds the supplied animation to the sequence with the given parameters.
|
void |
appendAnimation(Animation anim)
Convenience wrapper to add an animation to run after the previous one.
|
void |
clear()
Clears out the animations being managed by this sequencer.
|
void |
fastForward(long timeDelta)
Called when the appropriate media manager has been paused for some length of time and is
then unpaused.
|
void |
paint(Graphics2D gfx)
Called by the appropriate manager to request that the media render itself with the given
graphics context.
|
void |
tick(long tickStamp)
Called periodically by this media's manager to give it a chance to do its thing.
|
void |
viewLocationDidChange(int dx,
int dy)
Called by the
AbstractMediaManager when we are in a VirtualMediaPanel that
just scrolled. |
addAnimationObserver, isFinished, removeAnimationObserver, reset, setLocationcontains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, getRenderOrder, init, intersects, intersects, invalidate, queueNotification, renderCompareTo, setRenderOrder, toStringpublic AnimationSequencer(AnimationManager animmgr)
addAnimation(com.threerings.media.animation.Animation, long, java.lang.Runnable).animmgr - the animation manager to which to add our animations when they are ready to
start.public void addAnimation(Animation anim, long delta, Runnable completionAction)
anim - the animation to be sequenced, or null if the completion action should be run
immediately when this "animation" is ready to fired.delta - the number of milliseconds following the start of the previous
animation in the queue that this animation should be started; 0 if it should be started
simultaneously with its predecessor in the queue; -1 if it should be started when its
predecessor has completed.completionAction - a runnable to be executed when this animation completes.public void addAnimation(Animation anim)
public void appendAnimation(Animation anim)
public void clear()
public void tick(long tickStamp)
AbstractMediatick in class AbstractMediatickStamp - a time stamp associated with this tick. Note: this is not obtained
from a call to System.currentTimeMillis() and cannot be compared to timestamps
obtained there from.public void paint(Graphics2D gfx)
AbstractMediapaint in class AbstractMediapublic void fastForward(long timeDelta)
AbstractMediafastForward in class AbstractMediapublic void viewLocationDidChange(int dx,
int dy)
AbstractMediaAbstractMediaManager when we are in a VirtualMediaPanel that
just scrolled.viewLocationDidChange in class AbstractMediaCopyright © 2015. All rights reserved.