Top Description Fields Constructors Methods
com.sun.javafx.charts

public final Class ChartLayoutAnimator

extends AnimationTimer
implements EventHandler<ActionEvent>
Class Inheritance
All Implemented Interfaces
javafx.event.EventHandler, java.util.EventListener
Imports
java.util.HashMap, .Map, javafx.animation.Animation, .AnimationTimer, .KeyFrame, .SequentialTransition, .Timeline, javafx.event.ActionEvent, .EventHandler, javafx.scene.Parent, javafx.scene.chart.Axis

Runs any number of animations of KeyFrames calling requestLayout on the given node for every frame while one of those animations is running.

Field Summary

Modifier and TypeField and Description
private final Map<Object, Animation>
private final boolean
private Parent

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

A id reference to the animation that can be used to stop the animation if needed
animate
(KeyFrame...
The keyframes to animate
keyFrames
)

Play a animation containing the given keyframes.

public Object

Returns:

A id reference to the animation that can be used to stop the animation if needed
animate
(Animation
The animation to play
animation
)

Play a animation containing the given keyframes.

public void
handle(long
the event which occurred
l
)

Implements abstract javafx.animation.AnimationTimer.handle.

Implements javafx.event.EventHandler.handle.

Invoked when a specific event of the type for which this handler is registered happens.

public void
handle(ActionEvent
the event which occurred
actionEvent
)

Implements javafx.event.EventHandler.handle.

Invoked when a specific event of the type for which this handler is registered happens.

public void
stop(Object
The id of the animation to stop
animationID
)

Stop the animation with the given ID

Inherited from javafx.animation.AnimationTimer:
startstop

Field Detail

activeTimeLinesback to summary
private final Map<Object, Animation> activeTimeLines
isAxisback to summary
private final boolean isAxis
nodeToLayoutback to summary
private Parent nodeToLayout

Constructor Detail

ChartLayoutAnimatorback to summary
public ChartLayoutAnimator(Parent nodeToLayout)

Method Detail

animateback to summary
public Object animate(KeyFrame... keyFrames)

Play a animation containing the given keyframes.

Parameters
keyFrames:KeyFrame[]

The keyframes to animate

Returns:Object

A id reference to the animation that can be used to stop the animation if needed

animateback to summary
public Object animate(Animation animation)

Play a animation containing the given keyframes.

Parameters
animation:Animation

The animation to play

Returns:Object

A id reference to the animation that can be used to stop the animation if needed

handleback to summary
public void handle(long l)

Implements abstract javafx.animation.AnimationTimer.handle.

Implements javafx.event.EventHandler.handle.

Doc from javafx.event.EventHandler.handle.

Invoked when a specific event of the type for which this handler is registered happens.

Parameters
l:long

the event which occurred

Annotations
@Override
handleback to summary
public void handle(ActionEvent actionEvent)

Implements javafx.event.EventHandler.handle.

Doc from javafx.event.EventHandler.handle.

Invoked when a specific event of the type for which this handler is registered happens.

Parameters
actionEvent:ActionEvent

the event which occurred

Annotations
@Override
stopback to summary
public void stop(Object animationID)

Stop the animation with the given ID

Parameters
animationID:Object

The id of the animation to stop