public final class ChartLayoutAnimator extends AnimationTimer implements EventHandler<ActionEvent>
Constructor and Description |
---|
ChartLayoutAnimator(Parent nodeToLayout) |
Modifier and Type | Method and Description |
---|---|
Object |
animate(Animation animation)
Play a animation containing the given keyframes.
|
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(Object animationID)
Stop the animation with the given ID
|
start, stop
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(Object animationID)
animationID
- The id of the animation to stoppublic Object animate(KeyFrame... keyFrames)
keyFrames
- The keyframes to animateCopyright © 2020. All rights reserved.