fr.lri.swingstates.animations
Class AnimationRotateBy

java.lang.Object
  extended by fr.lri.swingstates.animations.Animation
      extended by 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

Field Summary
 
Fields inherited from class fr.lri.swingstates.animations.Animation
FUNCTION_LINEAR, FUNCTION_SIGMOID, INFINITE_NUMBER_OF_LAPS
 
Constructor Summary
AnimationRotateBy(double deltaAngle)
          Builds a "rotateBy" animation.
 
Method Summary
 double getDeltaAngle()
           
 AnimationRotateBy setDeltaAngle(double deltaAngle)
          Sets the fixed angle of rotation.
 void step(double t)
          Override this abstract to specify the effect of this 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
 

Constructor Detail

AnimationRotateBy

public AnimationRotateBy(double deltaAngle)
Builds a "rotateBy" animation.

Parameters:
deltaAngle - The fixed angle of rotation (in radians).
Method Detail

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.