public abstract class DefaultTimingHandler extends Object implements TimingHandler
timingEvent(float, java.lang.Object, fr.inria.zvtm.animation.Animation.Dimension).
This is because a handler that does not respond to timing events is
likely useless.
Users should override any TimingHandler methods that they
need (and are compelled to provide an implementation for timingEvent).
TimingHandler,
Animation| Constructor and Description |
|---|
DefaultTimingHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin(Object subject,
Animation.Dimension dim)
Called when the animation begins.
|
void |
end(Object subject,
Animation.Dimension dim)
Called when the animation ends.
|
void |
repeat(Object subject,
Animation.Dimension dim)
Called when the animation repeats a cycle.
|
abstract void |
timingEvent(float fraction,
Object subject,
Animation.Dimension dim)
This method will receive all of the timing events from an Animation.
|
public void begin(Object subject, Animation.Dimension dim)
TimingHandlerbegin in interface TimingHandlersubject - the object being animated.dim - tells which visual variable of this object is being animated.public void end(Object subject, Animation.Dimension dim)
TimingHandlerend in interface TimingHandlersubject - the object being animated.dim - tells which visual variable of this object is being animated.public void repeat(Object subject, Animation.Dimension dim)
TimingHandlerrepeat in interface TimingHandlersubject - the object being animated.dim - tells which visual variable of this object is being animated.public abstract void timingEvent(float fraction,
Object subject,
Animation.Dimension dim)
TimingHandlertimingEvent in interface TimingHandlerfraction - 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.subject - the subject that will be animated.dim - Dimension of the animationCopyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.