Package de.gsi.chart.ui
Class ChartLayoutAnimator
- java.lang.Object
-
- javafx.animation.AnimationTimer
-
- de.gsi.chart.ui.ChartLayoutAnimator
-
- All Implemented Interfaces:
java.util.EventListener,javafx.event.EventHandler<javafx.event.ActionEvent>
public final class ChartLayoutAnimator extends javafx.animation.AnimationTimer implements javafx.event.EventHandler<javafx.event.ActionEvent>Runs any number of animations of KeyFrames calling requestLayout on the given node for every frame while one of those animations is running.
-
-
Constructor Summary
Constructors Constructor Description ChartLayoutAnimator(javafx.scene.Parent nodeToLayout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectanimate(javafx.animation.Animation animation)Play a animation containing the given keyframes.java.lang.Objectanimate(javafx.animation.KeyFrame... keyFrames)Play a animation containing the given keyframes.voidhandle(long l)voidhandle(javafx.event.ActionEvent actionEvent)voidstop(java.lang.Object animationID)Stop the animation with the given ID
-
-
-
Method Detail
-
handle
public void handle(long l)
- Specified by:
handlein classjavafx.animation.AnimationTimer
-
handle
public void handle(javafx.event.ActionEvent actionEvent)
- Specified by:
handlein interfacejavafx.event.EventHandler<javafx.event.ActionEvent>
-
stop
public void stop(java.lang.Object animationID)
Stop the animation with the given ID- Parameters:
animationID- The id of the animation to stop
-
animate
public java.lang.Object animate(javafx.animation.KeyFrame... keyFrames)
Play a animation containing the given keyframes.- Parameters:
keyFrames- The keyframes to animate- Returns:
- A id reference to the animation that can be used to stop the animation if needed
-
animate
public java.lang.Object animate(javafx.animation.Animation animation)
Play a animation containing the given keyframes.- Parameters:
animation- The animation to play- Returns:
- A id reference to the animation that can be used to stop the animation if needed
-
-