Package ch.swingfx.timer
Interface AnimationTimer.AnimationTarget
-
- Enclosing class:
- AnimationTimer
public static interface AnimationTimer.AnimationTargetUsed withAnimationTimer.setAnimationTarget().
Implement this interface to receive events from theAnimationTimer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbegin(AnimationTimer timer)Fired only once when the animation startsvoidend(AnimationTimer timer)Fired only once when the animation stoppedvoidevent(AnimationTimer timer, float fraction)Fired when the animation is running
-
-
-
Method Detail
-
begin
void begin(AnimationTimer timer)
Fired only once when the animation starts- Parameters:
timer- the timer that fired the event
-
event
void event(AnimationTimer timer, float fraction)
Fired when the animation is running- Parameters:
timer- the timer that fired the eventfraction- value between 0f and 1f that represents the time that has ellapsed
-
end
void end(AnimationTimer timer)
Fired only once when the animation stopped- Parameters:
timer- the timer that fired the event
-
-