HUD_LAYER| Constructor and Description |
|---|
MultiFrameAnimation(MultiFrameImage frames,
double fps,
boolean loop)
Creates a multi-frame animation with the specified source image
frames and the specified target frame rate (in frames per second).
|
MultiFrameAnimation(MultiFrameImage frames,
FrameSequencer seeker)
Creates a multi-frame animation with the specified source image
frames and the specified target frame rate (in frames per second).
|
| Modifier and Type | Method and Description |
|---|---|
void |
fastForward(long timeDelta)
Called when the appropriate media manager has been paused for some length of time and is
then unpaused.
|
Rectangle |
getBounds()
Returns a rectangle containing all the pixels rendered by this media.
|
void |
paint(Graphics2D gfx)
Called by the appropriate manager to request that the media render itself with the given
graphics context.
|
void |
reset()
If this animation has run to completion, it can be reset to prepare it for another go.
|
void |
tick(long tickStamp)
Called periodically by this media's manager to give it a chance to do its thing.
|
addAnimationObserver, isFinished, removeAnimationObserver, setLocationcontains, contains, contains, contains, getBounds2D, getPathIterator, getPathIterator, getRenderOrder, init, intersects, intersects, invalidate, queueNotification, renderCompareTo, setRenderOrder, toString, viewLocationDidChangepublic MultiFrameAnimation(MultiFrameImage frames, double fps, boolean loop)
frames - the source frames of the animation.fps - the target number of frames per second.loop - whether the animation should loop indefinitely or
finish after one shot.public MultiFrameAnimation(MultiFrameImage frames, FrameSequencer seeker)
public Rectangle getBounds()
AbstractMediagetBounds in interface ShapegetBounds in class AbstractMediapublic void reset()
Animationpublic 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 AbstractMediaCopyright © 2015. All rights reserved.