Interface Animation

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Animation
An animation is a function which is called repeatedly during its lifetime, which is determined by a LifeTime and a RunCondition.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    This method is called after the animation has finished.
    void
    This method is called repeatedly during the lifetime of the animation.
  • Method Details

    • run

      void run(AnimationState state)
      This method is called repeatedly during the lifetime of the animation. The AnimationState contains information about the current state of the animation.
      Parameters:
      state - The current state of the animation.
    • finish

      default void finish(AnimationState state)
      This method is called after the animation has finished. The default implementation does nothing. Use this to clean up the state of your components any used resources after the animation has finished.
      Parameters:
      state - The current state of the animation.