public interface TimingHandler
DefaultTimingHandler
,
Animation
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.
|
void |
timingEvent(float fraction,
Object subject,
Animation.Dimension dim)
This method will receive all of the timing events from an Animation.
|
void begin(Object subject, Animation.Dimension dim)
subject
- the object being animated.dim
- tells which visual variable of this object is being animated.void end(Object subject, Animation.Dimension dim)
subject
- the object being animated.dim
- tells which visual variable of this object is being animated.void repeat(Object subject, Animation.Dimension dim)
subject
- the object being animated.dim
- tells which visual variable of this object is being animated.void timingEvent(float fraction, Object subject, Animation.Dimension dim)
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.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.