Class SequentialAnimationFX

java.lang.Object
animatefx.util.SequentialAnimationFX

public class SequentialAnimationFX extends Object
  • Property Details

  • Constructor Details

    • SequentialAnimationFX

      public SequentialAnimationFX(Node node)
    • SequentialAnimationFX

      public SequentialAnimationFX(Node node, AnimationFX... animations)
    • SequentialAnimationFX

      public SequentialAnimationFX(AnimationFX... animations)
    • SequentialAnimationFX

      public SequentialAnimationFX()
  • Method Details

    • nodeProperty

      public final ObjectProperty<Node> nodeProperty()
      The node property
      See Also:
    • getAnimation

      public final ObservableList<AnimationFX> getAnimation()
      A list of Animations that will be played sequentially.

      It is not possible to change the animation of a running SequentialAnimationFX. If the animation are changed for a running SequentialAnimationFX, the animation has to be stopped and started again to pick up the new value.

    • setNode

      public void setNode(Node value)
      Set the node
      Parameters:
      value - the node
    • play

      public void play()
      Play the animations
    • stop

      public void stop()
      Stop the animations
    • getStatus

      public Animation.Status getStatus()
      Get the status
      Returns:
      animations status
    • setResetOnFinished

      public void setResetOnFinished(boolean value)
      Set if the node have to reset at the end
      Parameters:
      value - true to reset