edu.umd.cs.piccolo.activities
Class GuessNodeActivity
java.lang.Object
edu.umd.cs.piccolo.activities.PActivity
edu.umd.cs.piccolo.activities.PInterpolatingActivity
edu.umd.cs.piccolo.activities.GuessNodeActivity
- public class GuessNodeActivity
- extends PInterpolatingActivity
Method Summary |
void |
setDestination(double dX,
double dY,
Color dC,
boolean dV,
boolean dLV,
double dWidth,
double dHeight)
|
void |
setDestinationGone()
|
void |
setDestinations(double[] dX,
double[] dY,
Color[] dC,
boolean[] dV,
boolean[] dLV,
double[] dWidth,
double[] dHeight)
|
void |
setRelativeTargetValue(float zeroToOne)
|
void |
setStarts()
|
Methods inherited from class edu.umd.cs.piccolo.activities.PInterpolatingActivity |
computeSlowInSlowOut, getFirstLoop, getLoopCount, getMode, getSlowInSlowOut, setDuration, setFirstLoop, setLoopCount, setMode, setSlowInSlowOut, terminate |
Methods inherited from class edu.umd.cs.piccolo.activities.PActivity |
getActivityScheduler, getDelegate, getDuration, getNextStepTime, getStartTime, getStepRate, getStopTime, isStepping, processStep, setActivityScheduler, setDelegate, setStartTime, setStepRate, startAfter, terminate, toString |
GuessNodeActivity
public GuessNodeActivity(long duration,
long stepRate,
GuessPNode aTarget)
- Create a new GuessNodeActivity.
- Parameters:
duration
- the length of one loop of the activitystepRate
- the amount of time between steps of the activityaTarget
- the object that the activity will be applied to and where
the source state will be taken from.
setStarts
public void setStarts()
setDestinationGone
public void setDestinationGone()
setDestination
public void setDestination(double dX,
double dY,
Color dC,
boolean dV,
boolean dLV,
double dWidth,
double dHeight)
setDestinations
public void setDestinations(double[] dX,
double[] dY,
Color[] dC,
boolean[] dV,
boolean[] dLV,
double[] dWidth,
double[] dHeight)
setRelativeTargetValue
public void setRelativeTargetValue(float zeroToOne)