public interface TextAnimation
| Modifier and Type | Method and Description |
|---|---|
void |
addTextAnimationListener(TextAnimationListener listener)
Adds a
TextAnimationListener to this TextAnimation |
void |
interpolate(com.badlogic.gdx.graphics.g2d.BitmapFontCache cache,
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(com.badlogic.gdx.graphics.g2d.BitmapFontCache cache,
Graphics g,
int renderX,
int renderY)
Renders the animation
|
void |
reset()
Resets the animation
|
void |
skip()
Sets the
TextAnimation to be skipped |
void |
update(com.badlogic.gdx.graphics.g2d.BitmapFontCache cache,
java.lang.String text,
float renderWidth,
int hAlign,
float delta)
Update the animation
|
void update(com.badlogic.gdx.graphics.g2d.BitmapFontCache cache,
java.lang.String text,
float renderWidth,
int hAlign,
float delta)
cache - The BitmapFontCache to use to render the texttext - The target text to displayrenderWidth - The text render widthhAlign - The horizontal alignment of the textdelta - The time since the last frame (in seconds)void interpolate(com.badlogic.gdx.graphics.g2d.BitmapFontCache cache,
java.lang.String text,
float alpha)
cache - The BitmapFontCache to use to render the texttext - The target text to displayalpha - The interpolation alpha valuevoid render(com.badlogic.gdx.graphics.g2d.BitmapFontCache cache,
Graphics g,
int renderX,
int renderY)
cache - The BitmapFontCache to use to render the textg - The Graphics contextrenderX - The render X coordinaterenderY - The render Y coordinatevoid skip()
TextAnimation to be skippedboolean isFinished()
TextAnimation has finishedvoid reset()
void addTextAnimationListener(TextAnimationListener listener)
TextAnimationListener to this TextAnimationlistener - The TextAnimationListener to be addedvoid removeTextAnimationListener(TextAnimationListener listener)
TextAnimationListener from this TextAnimationlistener - The TextAnimationListener to be removed