Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Transition

[18:7] extends: Animation

The Transition class wraps javafx.animation.Transition, the abstract base for the single-property animations (FadeTransition, ScaleTransition, TranslateTransition, RotateTransition, PauseTransition) and the composite transitions (SequentialTransition, ParallelTransition). It extends Animation and adds the interpolator, which controls the pacing curve of the animation. This wrapper is not constructed directly. Concrete transitions extend it, mirroring the JavaFX inheritance model.

Methods

  • Transition ()

    Base constructor. Transition is abstract and is never instantiated on its own; concrete transition subclasses set this.obj in their own constructors.

  • setInterpolator (Interp)

    Sets the interpolator that controls the pacing curve of the transition.

    • @p Interp is a javafx.animation.Interpolator, passed either as an Aussom wrapper or a raw AJO. Standard interpolators are available as static members of javafx.animation.Interpolator (LINEAR, EASE_IN, EASE_OUT, EASE_BOTH, DISCRETE).
    • @r this object for chaining
  • getInterpolator ()

    Returns the interpolator that controls the pacing curve.

    • @r An AJO wrapping javafx.animation.Interpolator.
  • interpolatorProperty ()

    Returns the ObjectProperty backing the interpolator.

    • @r An AJO wrapping ObjectProperty.
  • interpolate (double Fraction)

    Drives the transition to the given fraction of its cycle. A fraction of 0.0 is the start and 1.0 is the end.

    • @p Fraction is a double in the range 0.0 to 1.0.
    • @r this object for chaining