Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Timeline

[11:7] extends: Animation

Represents a JavaFX Timeline, a keyframe-based animation. Add keyframes with addKeyFrame() then call play().

Methods

  • Timeline ()

    Creates a new Timeline with no keyframes.

  • addKeyFrame (double Millis, callback OnFinished)

    Adds a keyframe at the specified time with a callback.

    • @p Millis is a double with the time in milliseconds.
    • @p OnFinished is a callback called when this keyframe is reached.
    • @r this object for chaining
  • getKeyFrames ()

    Returns the live ObservableList of KeyFrames on this timeline. Add or remove KeyFrame entries to alter the animation.

    • @r An AJO around an ObservableList.