utils.circuit
Class Straight

java.lang.Object
  extended by utils.circuit.Segment
      extended by utils.circuit.Straight
All Implemented Interfaces:
java.lang.Cloneable

public class Straight
extends Segment
implements java.lang.Cloneable

Author:
Patrice Espie , Charalampos Alexopoulos TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
 
Fields inherited from class utils.circuit.Segment
count, distFromCircuitStart, endTrackAlpha, endTrackCenter, heightEnd, heightStart, left, length, name, nextShape, points, previousShape, profilStepLength, right, startTrackAlpha, startTrackCenter, surface, trPoints, type
 
Constructor Summary
Straight()
           
Straight(Segment prev)
           
 
Method Summary
 void calcShape(Segment previousShape)
           
 java.lang.Object clone()
           
 void drag(java.awt.geom.Point2D.Double dragDelta)
           
 
Methods inherited from class utils.circuit.Segment
addSideListener, contains, copyTo, draw, getBounds, getCount, getDx, getDy, getHeightEnd, getHeightStart, getLeft, getLength, getName, getPoints, getPreviousShape, getProfilStepLength, getRight, getSurface, getType, removeSideListener, setCount, setHeightEnd, setHeightStart, setLeft, setLength, setName, setPoints, setPreviousShape, setProfilStepLength, setRight, setSurface, setType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Straight

public Straight()

Straight

public Straight(Segment prev)
Method Detail

calcShape

public void calcShape(Segment previousShape)
               throws java.lang.Exception
Overrides:
calcShape in class Segment
Throws:
java.lang.Exception

drag

public void drag(java.awt.geom.Point2D.Double dragDelta)
Overrides:
drag in class Segment

clone

public java.lang.Object clone()
Overrides:
clone in class Segment