Class AnimatedLabel.BlendOverAnimation

  • All Implemented Interfaces:
    Animation
    Enclosing class:
    AnimatedLabel

    private class AnimatedLabel.BlendOverAnimation
    extends AbstractAnimation
    An animation that changes the colors of overlapping labels to implement a blend over effect.
    • Constructor Detail

      • BlendOverAnimation

        public BlendOverAnimation​(long duration)
        Constructs an animation that changes the colors of the prefix and suffix labels over the duration.
        Parameters:
        duration - the animation's duration
    • 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 time point used to apply the effect