public final class ChartLayoutAnimator extends AnimationTimer implements EventHandler<ActionEvent>
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Object,Animation> |
activeTimeLines |
private boolean |
isAxis |
private Parent |
nodeToLayout |
Constructor and Description |
---|
ChartLayoutAnimator(Parent nodeToLayout) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
animate(Animation animation)
Play a animation containing the given keyframes.
|
java.lang.Object |
animate(KeyFrame... keyFrames)
Play a animation containing the given keyframes.
|
void |
handle(ActionEvent actionEvent)
Invoked when a specific event of the type for which this handler is
registered happens.
|
void |
handle(long l)
This method needs to be overridden by extending classes.
|
void |
stop(java.lang.Object animationID)
Stop the animation with the given ID
|
start, stop
private Parent nodeToLayout
private final java.util.Map<java.lang.Object,Animation> activeTimeLines
private final boolean isAxis
public ChartLayoutAnimator(Parent nodeToLayout)
public void handle(long l)
AnimationTimer
AnimationTimer
is active.handle
in class AnimationTimer
l
- The timestamp of the current frame given in nanoseconds. This
value will be the same for all AnimationTimers
called
during one frame.public void handle(ActionEvent actionEvent)
EventHandler
handle
in interface EventHandler<ActionEvent>
actionEvent
- the event which occurredpublic void stop(java.lang.Object animationID)
animationID
- The id of the animation to stoppublic java.lang.Object animate(KeyFrame... keyFrames)
keyFrames
- The keyframes to animatepublic java.lang.Object animate(Animation animation)
animation
- The animation to play