edu.umd.cs.piccolo.activities
Class GuessNodeActivity

java.lang.Object
  extended byedu.umd.cs.piccolo.activities.PActivity
      extended byedu.umd.cs.piccolo.activities.PInterpolatingActivity
          extended byedu.umd.cs.piccolo.activities.GuessNodeActivity

public class GuessNodeActivity
extends PInterpolatingActivity


Nested Class Summary
 
Nested classes inherited from class edu.umd.cs.piccolo.activities.PActivity
PActivity.PActivityDelegate
 
Field Summary
 
Fields inherited from class edu.umd.cs.piccolo.activities.PInterpolatingActivity
DESTINATION_TO_SOURCE, SOURCE_TO_DESTINATION, SOURCE_TO_DESTINATION_TO_SOURCE
 
Fields inherited from class edu.umd.cs.piccolo.activities.PActivity
TERMINATE_AND_FINISH, TERMINATE_AND_FINISH_IF_STEPPING, TERMINATE_WITHOUT_FINISHING
 
Constructor Summary
GuessNodeActivity(long duration, long stepRate, GuessPNode aTarget)
          Create a new GuessNodeActivity.
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GuessNodeActivity

public GuessNodeActivity(long duration,
                         long stepRate,
                         GuessPNode aTarget)
Create a new GuessNodeActivity.

Parameters:
duration - the length of one loop of the activity
stepRate - the amount of time between steps of the activity
aTarget - the object that the activity will be applied to and where the source state will be taken from.
Method Detail

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)