Class Animations.OneTimeAnimation

  • All Implemented Interfaces:
    Animation
    Enclosing class:
    Animations

    public abstract static class Animations.OneTimeAnimation
    extends AbstractAnimation
    Used to apply an effect one-time only.
    • Field Detail

      • effectApplied

        private boolean effectApplied
    • Constructor Detail

      • OneTimeAnimation

        public OneTimeAnimation()
        Constructs a OneTimeAnimation.
    • Method Detail

      • animate

        public void animate​(long time)
        Applies the effect to the animation target, only if is hasn't been applied before.
        Specified by:
        animate in interface Animation
        Overrides:
        animate in class AbstractAnimation
        Parameters:
        time - the time used to determine the animation effect