Class AnimationTimer

java.lang.Object
javafx.animation.AnimationTimer

public abstract class AnimationTimer extends Object
The class AnimationTimer allows to create a timer, that is called in each frame while it is active.

An extending class has to override the method handle(long) which will be called in every frame.

The methods start() and stop() allow to start and stop the timer.

The animation timer runs on the JavaFX Application Thread.

Since:
JavaFX 2.0