Class GlyphAnimation

  • All Implemented Interfaces:
    Animation

    public final class GlyphAnimation
    extends AbstractAnimation
    A text based animation that changes the scaling of the text's individual glyphs over the time.
    Version:
    $Revision: 1.6 $
    • Field Detail

      • text

        private final java.lang.String text
    • Constructor Detail

      • GlyphAnimation

        public GlyphAnimation​(GlyphLabel label,
                              long duration,
                              long glyphDelay,
                              java.lang.String text)
        Constructs an animation that changes the scaling of individual glyphs over the duration.
        Parameters:
        label - the animation target label
        duration - the animation duration
        glyphDelay - a delay used to scale glyphs differently
        text - the text to animation
    • Method Detail

      • applyEffect

        protected void applyEffect​(long time)
        Applies the effect: sets the text and time.
        Specified by:
        applyEffect in class AbstractAnimation
        Parameters:
        time - the render time position