Interface AnimatedPropertyBase<T>

All Superinterfaces:
Functor<T>, Property<T>, Updatable
All Known Subinterfaces:
TransitionedProperty<T>
All Known Implementing Classes:
AnimatedColorProperty, AnimatedColorProperty.AnimatedAlpha, AnimatedDimensionProperty, AnimatedDualDimensionProperty, AnimatedFloatProperty, AnimatedIntProperty, AnimatedObjectProperty, AnimatedProperty, TransitionedColorProperty, TransitionedDimensionProperty, TransitionedDualDimensionProperty, TransitionedFloatProperty, TransitionedIntProperty, TransitionedObjectProperty

public interface AnimatedPropertyBase<T> extends Property<T>, Updatable
  • Method Details

    • restart

      void restart()
    • getRestartedValue

      default T getRestartedValue()
      Restarts the animation and returns the current value.
    • getUpdatedValue

      default T getUpdatedValue(float deltaTime)
      Updates the animation and returns the current value.
      Parameters:
      deltaTime - Delta time in seconds.
    • update

      void update(float deltaTime)
      Progresses the animation.
      Specified by:
      update in interface Updatable
      Parameters:
      deltaTime - How far to progress the animation, in seconds
    • getFactor

      float getFactor()
    • hasFinished

      boolean hasFinished()
    • setDuration

      void setDuration(float duration)
    • getCurve

      AnimationCurve getCurve()