public class NullTextAnimation extends BaseTextAnimation
TextAnimation that just renders the text directlyfinished| Constructor and Description | 
|---|
| NullTextAnimation() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | interpolate(GameFontCache cache,
           java.lang.String text,
           float alpha)Interpolate the animation | 
| void | onResize(GameFontCache cache,
        java.lang.String text,
        float renderWidth,
        int hAlign)Handles label resizing | 
| void | render(GameFontCache cache,
      Graphics g,
      int renderX,
      int renderY)Renders the animation | 
| protected void | resetState() | 
| void | skip()Sets the  TextAnimationto be skipped | 
| void | update(GameFontCache cache,
      java.lang.String text,
      float renderWidth,
      int hAlign,
      float delta)Update the animation | 
addTextAnimationListener, isFinished, removeTextAnimationListener, reset, setFinishedpublic void skip()
TextAnimationTextAnimation to be skippedpublic void onResize(GameFontCache cache, java.lang.String text, float renderWidth, int hAlign)
TextAnimationpublic void update(GameFontCache cache, java.lang.String text, float renderWidth, int hAlign, float delta)
TextAnimationcache - The GameFontCache 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)public void interpolate(GameFontCache cache, java.lang.String text, float alpha)
TextAnimationcache - The GameFontCache to use to render the texttext - The target text to displayalpha - The interpolation alpha valuepublic void render(GameFontCache cache, Graphics g, int renderX, int renderY)
TextAnimationcache - The GameFontCache to use to render the textg - The Graphics contextrenderX - The render X coordinaterenderY - The render Y coordinateprotected void resetState()
resetState in class BaseTextAnimation