net.clackrouter.jgraph.pad
Class Touch
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Touch
public Touch(RouterGraph graph)
- Constructor with a supplied TGPanel tgp.
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)