|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lri.swingstates.animations.Animation
fr.lri.swingstates.animations.AnimationRotateTo
public class AnimationRotateTo
An animation that rotates a CElement to a given angle in one second by rotating smoothly this CElement every 40 milliseconds.
| Field Summary |
|---|
| Fields inherited from class fr.lri.swingstates.animations.Animation |
|---|
FUNCTION_LINEAR, FUNCTION_SIGMOID, INFINITE_NUMBER_OF_LAPS |
| Constructor Summary | |
|---|---|
AnimationRotateTo(double angleTarget)
Builds a "rotateTo" animation. |
|
| Method Summary | |
|---|---|
void |
doStart()
Method called when this animation is started. |
double |
getRotateAngleTarget()
|
Animation |
setAnimatedElement(CElement ce)
Sets the CElement that must be animated by this animation. |
AnimationRotateTo |
setRotateAngleTarget(double angle)
Sets the final 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, doStop, doSuspend, getAnimated, getDelay, getLapDuration, getNbLaps, getPacingFunction, hasTag, hasTag, isStarted, isSuspended, removeTag, removeTag, resetAnimationManager, resume, 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 |
|---|
public AnimationRotateTo(double angleTarget)
angleTarget - The final angle.| Method Detail |
|---|
public void step(double t)
step in class Animationt - The parameter of this animation.public void doStart()
doStart in class AnimationAnimation.start()public Animation setAnimatedElement(CElement ce)
CElement that must be animated by this animation.
If the canvas that must received animation events has not yet been set,
it is set to the canvas to which belongs this CElement.
setAnimatedElement in class Animationce - The CElement to animate.
public double getRotateAngleTarget()
public AnimationRotateTo setRotateAngleTarget(double angle)
angle - The final angle of rotation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||