utils.circuit
Class Curve

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

public class Curve
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
protected  double arc
           
 java.awt.geom.Point2D.Double center
           
protected  double radiusEnd
           
protected  double radiusStart
           
 
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
Curve()
           
Curve(java.lang.String type, Segment prev)
           
 
Method Summary
 void calcShape(Segment previousShape)
           
 java.lang.Object clone()
           
 Segment copyTo(Segment _shape)
           
 void drag(java.awt.geom.Point2D.Double dragDelta)
           
 double getArc()
           
 double getRadiusEnd()
           
 double getRadiusStart()
           
 void setArc(double arc)
           
 void setRadiusEnd(double radiusEnd)
           
 void setRadiusStart(double radiusStart)
           
 
Methods inherited from class utils.circuit.Segment
addSideListener, contains, 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
 

Field Detail

arc

protected double arc

radiusStart

protected double radiusStart

radiusEnd

protected double radiusEnd

center

public java.awt.geom.Point2D.Double center
Constructor Detail

Curve

public Curve()

Curve

public Curve(java.lang.String type,
             Segment prev)
Method Detail

copyTo

public Segment copyTo(Segment _shape)
               throws java.lang.CloneNotSupportedException
Overrides:
copyTo in class Segment
Throws:
java.lang.CloneNotSupportedException

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

getArc

public double getArc()
Returns:
Returns the arc.

setArc

public void setArc(double arc)
Parameters:
arc - The arc to set.

getRadiusEnd

public double getRadiusEnd()
Returns:
Returns the radiusEnd.

setRadiusEnd

public void setRadiusEnd(double radiusEnd)
Parameters:
radiusEnd - The radiusEnd to set.

getRadiusStart

public double getRadiusStart()
Returns:
Returns the radiusStart.

setRadiusStart

public void setRadiusStart(double radiusStart)
Parameters:
radiusStart - The radiusStart to set.

clone

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