net.clackrouter.jgraph.pad
Class Touch

java.lang.Object
  extended by net.clackrouter.jgraph.pad.Touch
All Implemented Interfaces:
java.lang.Runnable

public class Touch
extends java.lang.Object
implements java.lang.Runnable


Constructor Summary
Touch(RouterGraph graph)
          Constructor with a supplied TGPanel tgp.
 
Method Summary
 void damp()
           
 java.awt.geom.Point2D.Double getDelta(CellView view)
           
 double getLength(java.lang.Object edge)
           
 java.awt.geom.Point2D.Double getPosition(CellView view)
           
 boolean isRunning()
           
 void moveView(CellView view, double dx, double dy)
           
 void resetDamper()
           
 void run()
           
 void setDamper(double newValue)
           
 void start()
           
 void startDamper()
           
 void stop()
           
 void stopDamper()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Touch

public Touch(RouterGraph graph)
Constructor with a supplied TGPanel tgp.

Method Detail

getLength

public double getLength(java.lang.Object edge)

startDamper

public void startDamper()

stopDamper

public void stopDamper()

resetDamper

public void resetDamper()

setDamper

public void setDamper(double newValue)

damp

public void damp()

run

public void run()
Specified by:
run in interface java.lang.Runnable

start

public void start()

isRunning

public boolean isRunning()

stop

public void stop()

getPosition

public java.awt.geom.Point2D.Double getPosition(CellView view)

getDelta

public java.awt.geom.Point2D.Double getDelta(CellView view)

moveView

public void moveView(CellView view,
                     double dx,
                     double dy)