com.threerings.media.animation
Class BlankAnimation
java.lang.Object
com.threerings.media.AbstractMedia
com.threerings.media.animation.Animation
com.threerings.media.animation.BlankAnimation
- All Implemented Interfaces:
- Shape
public class BlankAnimation
- extends Animation
Displays nothing, but does so for a specified amount of time. Useful when you want to get an
animation completed event in some period of time but don't actually need to display anything.
|
Method Summary |
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 timestamp)
Called periodically by this media's manager to give it a chance to do its thing. |
| Methods inherited from class com.threerings.media.AbstractMedia |
addObserver, contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, getRenderOrder, init, init, intersects, intersects, invalidate, invalidateAfterChange, naturalCompareTo, queueNotification, removeObserver, renderCompareTo, setRenderOrder, shutdown, toString, toString, viewLocationDidChange |
_duration
protected long _duration
_start
protected long _start
BlankAnimation
public BlankAnimation(long duration)
tick
public void tick(long timestamp)
- Description copied from class:
AbstractMedia
- Called periodically by this media's manager to give it a chance to do its thing.
- Specified by:
tick in class AbstractMedia
- Parameters:
timestamp - 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.
fastForward
public void fastForward(long timeDelta)
- Description copied from class:
AbstractMedia
- Called when the appropriate media manager has been paused for some length of time and is
then unpaused. Media should adjust any time stamps that are maintained internally forward by
the delta so that time maintains the illusion of flowing smoothly forward.
- Overrides:
fastForward in class AbstractMedia
paint
public void paint(Graphics2D gfx)
- Description copied from class:
AbstractMedia
- Called by the appropriate manager to request that the media render itself with the given
graphics context. The media may wish to inspect the clipping region that has been set on the
graphics context to render itself more efficiently. This method will only be called after it
has been established that this media's bounds intersect the clipping region.
- Specified by:
paint in class AbstractMedia