public class NullTextAnimation extends BaseTextAnimation
TextAnimation that just renders the text directly| Constructor and Description |
|---|
NullTextAnimation() |
| Modifier and Type | Method and Description |
|---|---|
void |
interpolate(java.lang.String text,
float alpha)
Interpolate the animation
|
void |
render(java.lang.String text,
Graphics g,
float x,
float y,
float width,
int hAlign)
Renders the animation
|
void |
skip()
Sets the
TextAnimation to be skipped |
void |
update(java.lang.String text,
float delta)
Update the animation
|
addTextAnimationListener, isFinished, removeTextAnimationListener, setFinishedpublic void update(java.lang.String text,
float delta)
TextAnimationtext - The target text to displaydelta - The time since the last frame (in seconds)public void interpolate(java.lang.String text,
float alpha)
TextAnimationtext - The target text to displayalpha - The interpolation alpha valuepublic void render(java.lang.String text,
Graphics g,
float x,
float y,
float width,
int hAlign)
TextAnimationtext - The target text to displayg - The Graphics contextx - The render X coordinatey - The render Y coordinatewidth - The text render widthhAlign - The horizontal alignment of the textpublic void skip()
TextAnimationTextAnimation to be skipped