HUD_LAYER| Constructor and Description |
|---|
FloatingTextAnimation(Label label,
int x,
int y)
Constructs an animation for the given text centered at the given coordinates.
|
FloatingTextAnimation(Label label,
int sx,
int sy,
int destx,
int desty,
long floatPeriod)
Constructs an animation for the given text starting at the given coordinates and floating
toward the specified coordinates.
|
FloatingTextAnimation(Label label,
int x,
int y,
long floatPeriod)
Constructs an animation for the given text centered at the given coordinates.
|
| 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 |
flipDirection()
Called to change the direction 180 degrees.
|
Label |
getLabel()
Returns the label used to render this score animation.
|
void |
paint(Graphics2D gfx)
Called by the appropriate manager to request that the media render itself with the given
graphics context.
|
void |
setFloatPeriod(long floatPeriod)
Sets the duration of this score animation to the specified time in milliseconds.
|
void |
setLocation(int x,
int y)
Set the location.
|
void |
tick(long timestamp)
Called periodically by this media's manager to give it a chance to do its thing.
|
addAnimationObserver, isFinished, removeAnimationObserver, resetcontains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, getRenderOrder, init, intersects, intersects, invalidate, queueNotification, renderCompareTo, setRenderOrder, toString, viewLocationDidChangepublic FloatingTextAnimation(Label label, int x, int y)
public FloatingTextAnimation(Label label, int x, int y, long floatPeriod)
public FloatingTextAnimation(Label label, int sx, int sy, int destx, int desty, long floatPeriod)
public void flipDirection()
public Label getLabel()
public void setLocation(int x,
int y)
AbstractMediasetLocation in class Animationpublic void setFloatPeriod(long floatPeriod)
public 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 fastForward(long timeDelta)
AbstractMediafastForward in class AbstractMediapublic void paint(Graphics2D gfx)
AbstractMediapaint in class AbstractMediaCopyright © 2015. All rights reserved.