Interface AnimationTimer.AnimationTarget

Enclosing class:
AnimationTimer

public static interface AnimationTimer.AnimationTarget
Used with AnimationTimer.setAnimationTarget().
Implement this interface to receive events from the AnimationTimer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Fired only once when the animation starts
    void
    Fired only once when the animation stopped
    void
    event(AnimationTimer timer, float fraction)
    Fired when the animation is running
  • Method Details

    • begin

      void begin(AnimationTimer timer)
      Fired only once when the animation starts
      Parameters:
      timer - the timer that fired the event
    • event

      void event(AnimationTimer timer, float fraction)
      Fired when the animation is running
      Parameters:
      timer - the timer that fired the event
      fraction - value between 0f and 1f that represents the time that has ellapsed
    • end

      void end(AnimationTimer timer)
      Fired only once when the animation stopped
      Parameters:
      timer - the timer that fired the event