|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jdesktop.animation.timing.TimingTargetAdapter
public class TimingTargetAdapter
Implements the TimingTarget interface, providing stubs for all
TimingTarget methods. Subclasses may extend this adapter rather than
implementing the TimingTarget interface if they only care about a
subset of the events that TimingTarget provides. For example,
sequencing animations may only require monitoring the
TimingTarget.end() method, so subclasses of this adapter
may ignore the other methods such as timingEvent.
| Constructor Summary | |
|---|---|
TimingTargetAdapter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimingTargetAdapter()
| Method Detail |
|---|
public void timingEvent(float fraction)
timingEvent in interface TimingTargetfraction - 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.Directionpublic void begin()
begin in interface TimingTargetpublic void end()
end in interface TimingTargetpublic void repeat()
repeat in interface TimingTarget
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||