public class ExplodeAnimation extends Animation
| Modifier and Type | Class and Description |
|---|---|
static class |
ExplodeAnimation.ExplodeInfo
A class that describes an explosion's attributes.
|
HUD_LAYER| Constructor and Description |
|---|
ExplodeAnimation(Color color,
ExplodeAnimation.ExplodeInfo info,
int x,
int y,
int width,
int height)
Constructs an explode animation with the chunks represented as filled rectangles of the
specified color.
|
ExplodeAnimation(Mirage image,
ExplodeAnimation.ExplodeInfo info,
int x,
int y,
int width,
int height)
Constructs an explode animation with the chunks represented as portions of the actual
image.
|
| 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.
|
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.
|
addAnimationObserver, isFinished, removeAnimationObserver, reset, setLocationcontains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, getRenderOrder, init, intersects, intersects, invalidate, queueNotification, renderCompareTo, setRenderOrder, toString, viewLocationDidChangepublic ExplodeAnimation(Color color, ExplodeAnimation.ExplodeInfo info, int x, int y, int width, int height)
color - the color to render the chunks in.info - the explode info object.x - the x-position of the object.y - the y-position of the object.width - the width of the object.height - the height of the object.public ExplodeAnimation(Mirage image, ExplodeAnimation.ExplodeInfo info, int x, int y, int width, int height)
image - the image to animate.info - the explode info object.x - the x-position of the object.y - the y-position of the object.width - the width of the object.height - the height of the object.public void fastForward(long timeDelta)
AbstractMediafastForward in class AbstractMediapublic void tick(long timestamp)
AbstractMediatick in class AbstractMediatimestamp - 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 AbstractMediaCopyright © 2015. All rights reserved.