org.jdesktop.animation.timing
public interface TimingTarget
Animator.addTarget(TimingTarget)
method. Any Animator may have multiple TimingTargets.Modifier and Type | Method and Description |
---|---|
void |
begin()
Called when the Animator's animation begins.
|
void |
end()
Called when the Animator's animation ends
|
void |
repeat()
Called when the Animator repeats the animation cycle
|
void |
timingEvent(float fraction)
This method will receive all of the timing events from an Animator
during an animation.
|
void timingEvent(float fraction)
fraction
- the fraction of completion between the start and
end of the current cycle. Note that on reversing cycles
(Animator.Direction.BACKWARD
) the fraction decreases
from 1.0 to 0 on backwards-running cycles. Note also that animations
with a duration of INFINITE
will call
timingEvent with an undefined value for fraction, since there is
no fraction that makes sense if the animation has no defined length.Animator.Direction
void begin()
void end()
void repeat()