HUD_LAYER| Constructor and Description |
|---|
SparkAnimation(Rectangle bounds,
int x,
int y,
int xjog,
int yjog,
float minxvel,
float minyvel,
float maxxvel,
float maxyvel,
float xacc,
float yacc,
Mirage[] images,
long delay,
boolean fade)
Constructs a spark animation with the supplied parameters.
|
| 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 SparkAnimation(Rectangle bounds, int x, int y, int xjog, int yjog, float minxvel, float minyvel, float maxxvel, float maxyvel, float xacc, float yacc, Mirage[] images, long delay, boolean fade)
bounds - the bounding rectangle for the animation.x - the starting x-position for the sparks.y - the starting y-position for the sparks.xjog - the maximum X distance by which to "jog" the initial spark
positions, or 0 if no jogging is desired.yjog - the maximum Y distance by which to "jog" the initial spark
positions, or 0 if no jogging is desired.minxvel - the minimum starting x-velocity of the sparks.minyvel - the minimum starting y-velocity of the sparks.maxxvel - the maximum x-velocity of the sparks.maxyvel - the maximum y-velocity of the sparks.xacc - the x axis acceleration, or 0 if none is desired.yacc - the y axis acceleration, or 0 if none is desired.images - the spark images to be animated.delay - the duration of the animation in milliseconds.fade - do the fade thingpublic 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.