Package animatefx.util
Class SequentialAnimationFX
- java.lang.Object
-
- animatefx.util.SequentialAnimationFX
-
public class SequentialAnimationFX extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SequentialAnimationFX()SequentialAnimationFX(AnimationFX... animations)SequentialAnimationFX(javafx.scene.Node node)SequentialAnimationFX(javafx.scene.Node node, AnimationFX... animations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.collections.ObservableList<AnimationFX>getAnimation()A list ofAnimationsthat will be played sequentially.javafx.animation.Animation.StatusgetStatus()Get the statusjavafx.beans.property.ObjectProperty<javafx.scene.Node>nodeProperty()The node propertyvoidplay()Play the animationsvoidsetNode(javafx.scene.Node value)Set the nodevoidsetResetOnFinished(boolean value)Set if the node have to reset at the endvoidstop()Stop the animations
-
-
-
Constructor Detail
-
SequentialAnimationFX
public SequentialAnimationFX(javafx.scene.Node node)
-
SequentialAnimationFX
public SequentialAnimationFX(javafx.scene.Node node, AnimationFX... animations)
-
SequentialAnimationFX
public SequentialAnimationFX(AnimationFX... animations)
-
SequentialAnimationFX
public SequentialAnimationFX()
-
-
Method Detail
-
nodeProperty
public final javafx.beans.property.ObjectProperty<javafx.scene.Node> nodeProperty()
The node property- Returns:
- node property
-
getAnimation
public final javafx.collections.ObservableList<AnimationFX> getAnimation()
A list ofAnimationsthat will be played sequentially.It is not possible to change the animation of a running
SequentialAnimationFX. If the animation are changed for a runningSequentialAnimationFX, the animation has to be stopped and started again to pick up the new value.
-
setNode
public void setNode(javafx.scene.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 javafx.animation.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
-
-