public class AnimationFillPaint extends Animation
CElement
to a given color smoothly by refreshing every 40 milliseconds.FUNCTION_LINEAR, FUNCTION_SIGMOID, INFINITE_NUMBER_OF_LAPS
Constructor and Description |
---|
AnimationFillPaint(java.awt.Color colorTarget)
Builds a "fillPaint" animation.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColorTarget() |
Animation |
setAnimatedElement(CElement ce)
Sets the
CElement that must be animated by this animation. |
fr.lri.swingstates.animations.AnimationPaint |
setColorTarget(java.awt.Color colorTarget)
Sets the final color.
|
void |
step(double t)
Override this abstract to specify the effect of this animation.
|
addTag, addTag, doResume, doStart, doStop, doSuspend, getAnimated, getDelay, getLapDuration, getNbLaps, getPacingFunction, hasTag, hasTag, isStarted, isSuspended, removeTag, removeTag, resetAnimationManager, resume, setCanvas, setDelay, setFunction, setLapDuration, setNbLaps, start, stop, suspend
public AnimationFillPaint(java.awt.Color colorTarget)
colorTarget
- The final color.public void step(double t)
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 Animation
ce
- The CElement
to animate.public java.awt.Color getColorTarget()
public fr.lri.swingstates.animations.AnimationPaint setColorTarget(java.awt.Color colorTarget)
colorTarget
- The final color.