fr.lri.swingstates.animations
Class AnimationRotateBy
java.lang.Object
fr.lri.swingstates.animations.Animation
fr.lri.swingstates.animations.AnimationRotateBy
public class AnimationRotateBy
- extends Animation
An animation that never stops, i.e. number of "laps" = -1, and rotates a CElement by a fixed angle every 40 milliseconds.
- Author:
- Caroline Appert
|
Constructor Summary |
AnimationRotateBy(double deltaAngle)
Builds a "rotateBy" animation. |
| Methods inherited from class fr.lri.swingstates.animations.Animation |
addTag, addTag, doResume, doStart, doStop, doSuspend, getAnimated, getDelay, getLapDuration, getNbLaps, getPacingFunction, hasTag, hasTag, isStarted, isSuspended, removeTag, removeTag, resetAnimationManager, resume, setAnimatedElement, setCanvas, setDelay, setFunction, setLapDuration, setNbLaps, start, stop, suspend |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnimationRotateBy
public AnimationRotateBy(double deltaAngle)
- Builds a "rotateBy" animation.
- Parameters:
deltaAngle - The fixed angle of rotation (in radians).
step
public void step(double t)
- Override this abstract to specify the effect of this animation.
- Specified by:
step in class Animation
- Parameters:
t - The parameter of this animation.
getDeltaAngle
public double getDeltaAngle()
- Returns:
- the fixed angle of rotation.
setDeltaAngle
public AnimationRotateBy setDeltaAngle(double deltaAngle)
- Sets the fixed angle of rotation.
- Parameters:
deltaAngle - The fixed angle of rotation.
- Returns:
- this animation.