edu.umd.cs.piccolo.activities
Class GuessEdgeActivity

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

public class GuessEdgeActivity
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
GuessEdgeActivity(long duration, long stepRate, GuessPEdge aTarget)
          Create a new GuessEdgeActivity.
 
Method Summary
 void setDestination(Color dC, boolean dV, double dWidth)
           
 void setDestinationGone()
           
 void setDestinations(Color[] dC, boolean[] dV, double[] dWidth)
           
 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

GuessEdgeActivity

public GuessEdgeActivity(long duration,
                         long stepRate,
                         GuessPEdge aTarget)
Create a new GuessEdgeActivity.

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(Color dC,
                           boolean dV,
                           double dWidth)

setDestinations

public void setDestinations(Color[] dC,
                            boolean[] dV,
                            double[] dWidth)

setRelativeTargetValue

public void setRelativeTargetValue(float zeroToOne)