fr.inria.insitu.glite.activities
Class AnimateColorsActivity
java.lang.Object
fr.inria.insitu.glite.activities.Activity
fr.inria.insitu.glite.activities.InterpolatingActivity
fr.inria.insitu.glite.activities.AnimateColorsActivity
public class AnimateColorsActivity
- extends InterpolatingActivity
AnimateColorActivity animates the interpolation of colors
of one or several Colored objects.
- Version:
- $Revision: 1.2 $
- Author:
- Jean-Daniel Fekete
|
Method Summary |
void |
add(Colored c,
Color color)
Adds a Colored and a target Color. |
Colored |
getColored(int i)
Returns the bounded at the specified index. |
Color |
getTarget(int i)
Returns the Color at the specified index. |
void |
setRelativeTargetValue(float t)
Subclasses should override this method and set the value on their
target (the object that they are modifying) accordingly. |
int |
size()
|
| Methods inherited from class fr.inria.insitu.glite.activities.InterpolatingActivity |
computeSlowInSlowOut, getFirstLoop, getLoopCount, getMode, getSlowInSlowOut, setDuration, setFirstLoop, setLoopCount, setMode, setSlowInSlowOut, terminate |
| Methods inherited from class fr.inria.insitu.glite.activities.Activity |
getActivityScheduler, getDelegate, getDuration, getNextStepTime, getStartTime, getStepRate, getStopTime, isStepping, processStep, setActivityScheduler, setDelegate, setStartTime, setStepRate, start, startAfter, stop, terminate, toString |
AnimateColorsActivity
public AnimateColorsActivity(long duration,
long stepRate)
- Constructor.
- Parameters:
duration - a duration timestepRate - the step rate
AnimateColorsActivity
public AnimateColorsActivity(long duration)
- Constructor.
- Parameters:
duration - a duration time
add
public void add(Colored c,
Color color)
- Adds a Colored and a target Color.
- Parameters:
c - the coloredcolor - the target color
getColored
public Colored getColored(int i)
- Returns the bounded at the specified index.
- Parameters:
i - the index
- Returns:
- the bounded at the specified index
getTarget
public Color getTarget(int i)
- Returns the Color at the specified index.
- Parameters:
i - the index
- Returns:
- the Color at the specified index
size
public int size()
- Returns:
- the number of colored to interpolate
setRelativeTargetValue
public void setRelativeTargetValue(float t)
- Subclasses should override this method and set the value on their
target (the object that they are modifying) accordingly.
- Overrides:
setRelativeTargetValue in class InterpolatingActivity
- Parameters:
t - value varying from 0 to 1
Copyright © 2006 by Jean-Daniel Fekete and INRIA, France All rights reserved.