Package ch.swingfx.timer
Interface AnimationTimer.AnimationTarget
- Enclosing class:
AnimationTimer
public static interface AnimationTimer.AnimationTarget
Used with
Implement this interface to receive events from the
AnimationTimer
.setAnimationTarget().Implement this interface to receive events from the
AnimationTimer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
begin
Fired only once when the animation starts- Parameters:
timer
- the timer that fired the event
-
event
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
Fired only once when the animation stopped- Parameters:
timer
- the timer that fired the event
-