Package ch.swingfx.timer
Interface AnimationTimer.AnimationTarget
-
- Enclosing class:
- AnimationTimer
public static interface AnimationTimer.AnimationTarget
Used withAnimationTimer
.setAnimationTarget().
Implement this interface to receive events from theAnimationTimer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
begin(AnimationTimer timer)
Fired only once when the animation startsvoid
end(AnimationTimer timer)
Fired only once when the animation stoppedvoid
event(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
-
-