HUD_LAYER| Constructor and Description |
|---|
BobbleAnimation(Mirage image,
int sx,
int sy,
int rx,
int ry,
int duration)
Constructs a bobble animation.
|
| 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 tickStamp)
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 BobbleAnimation(Mirage image, int sx, int sy, int rx, int ry, int duration)
image - the image to animate.sx - the starting x-position.sy - the starting y-position.rx - the horizontal bobble range.ry - the vertical bobble range.duration - the time to animate in milliseconds.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 fastForward(long timeDelta)
AbstractMediafastForward in class AbstractMediapublic void paint(Graphics2D gfx)
AbstractMediapaint in class AbstractMediaCopyright © 2015. All rights reserved.