fr.inria.zvtm.animation
Class Animation

java.lang.Object
  extended by fr.inria.zvtm.animation.Animation

@ThreadSafe
public class Animation
extends Object

This class represents an animation. An Animation has a subject (object that will be animated e.g. Glyph, Camera, Portal...) and a dimension (characteristic that will be animated e.g. position, color, altitude...). Animation management (creating, starting, stopping, pausing or cancelling animations) is done by the AnimationManager.

Author:
Romain Primet
See Also:
TimingHandler, AnimationManager

Nested Class Summary
static class Animation.Dimension
           
static class Animation.RepeatBehavior
          RepeatBehavior determines how each successive cycle will flow.
 
Field Summary
static int INFINITE
          Used to specify unending duration or RepeatCount
 
Method Summary
 void setInterpolator(org.jdesktop.animation.timing.interpolation.Interpolator interpolator)
          Sets the interpolator for this Animation.
 void setStartFraction(float startFraction)
          Sets the initial fraction at which the first animation cycle will begin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INFINITE

public static final int INFINITE
Used to specify unending duration or RepeatCount

See Also:
Constant Field Values
Method Detail

setInterpolator

public void setInterpolator(org.jdesktop.animation.timing.interpolation.Interpolator interpolator)
Sets the interpolator for this Animation.


setStartFraction

public void setStartFraction(float startFraction)
Sets the initial fraction at which the first animation cycle will begin. The default value is 0.

Parameters:
startFraction - initial fraction.
Throws:
IllegalArgumentException - if startFraction is less than 0 or greater than 1
IllegalStateException - if animation is already running; this parameter may only be changed prior to starting the animation or after the animation has ended


Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2011 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.