public interface TextAnimation
| Modifier and Type | Method and Description |
|---|---|
void |
addTextAnimationListener(TextAnimationListener listener)
Adds a
TextAnimationListener to this TextAnimation |
void |
interpolate(java.lang.String text,
float alpha)
Interpolate the animation
|
boolean |
isFinished()
Returns if the
TextAnimation has finished |
void |
removeTextAnimationListener(TextAnimationListener listener)
Removes a
TextAnimationListener from this TextAnimation |
void |
render(java.lang.String text,
Graphics g,
float renderX,
float renderY,
float renderWidth,
int hAlign)
Renders the animation
|
void |
skip()
Sets the
TextAnimation to be skipped |
void |
update(java.lang.String text,
float delta)
Update the animation
|
void update(java.lang.String text,
float delta)
text - The target text to displaydelta - The time since the last frame (in seconds)void interpolate(java.lang.String text,
float alpha)
text - The target text to displayalpha - The interpolation alpha valuevoid render(java.lang.String text,
Graphics g,
float renderX,
float renderY,
float renderWidth,
int hAlign)
text - The target text to displayg - The Graphics contextrenderX - The render X coordinaterenderY - The render Y coordinaterenderWidth - The text render widthhAlign - The horizontal alignment of the textvoid skip()
TextAnimation to be skippedboolean isFinished()
TextAnimation has finishedvoid addTextAnimationListener(TextAnimationListener listener)
TextAnimationListener to this TextAnimationlistener - The TextAnimationListener to be addedvoid removeTextAnimationListener(TextAnimationListener listener)
TextAnimationListener from this TextAnimationlistener - The TextAnimationListener to be removed