Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: SequentialTransition

[9:7] extends: FxObj

Represents a JavaFX SequentialTransition that runs multiple child animations one after another in sequence.

Methods

  • SequentialTransition ()

    Creates a new SequentialTransition with no child animations.

  • add (Items)

    Adds one or more child animations to this sequential transition.

    • @p Items is either a single transition object or a list of transition objects to add.
    • @r this object.
  • setCycleCount (int Count)

    Sets the number of times the animation cycles before stopping.

    • @p Count is an int with the cycle count; pass -1 for indefinite looping.
    • @r this object.
  • setAutoReverse (bool Auto)

    Sets whether the animation reverses direction on alternating cycles.

    • @p Auto is a bool; true enables auto-reverse.
    • @r this object.
  • play ()

    Starts playing the child animations in sequence.

    • @r this object.
  • stop ()

    Stops the sequential transition and all child animations.

    • @r this object.
  • setOnFinished (callback OnFinished)

    Registers a callback to invoke when the animation finishes.

    • @p OnFinished is a callback invoked with an ActionEvent when the animation completes.
    • @r this object.
  • setNode (object NodeObj)

    Sets the target Node for the timing in this transition. Child transitions that do not declare their own node will use this one.

    • @p NodeObj is a Node wrapper to use as the default target.
    • @r this object
  • getNode ()

    Returns the target Node currently set on this transition, or null when no default node is set.

    • @r An AJO wrapping javafx.scene.Node, or null.
  • nodeProperty ()

    Returns the ObjectProperty backing the target Node reference.

    • @r An AJO wrapping javafx.beans.property.ObjectProperty.
  • getChildren ()

    Returns the observable list of child animations.

    • @r An AJO wrapping javafx.collections.ObservableList.