utils.circuit
Class Curve
java.lang.Object
utils.circuit.Segment
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
| 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 |
| 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 |
arc
protected double arc
radiusStart
protected double radiusStart
radiusEnd
protected double radiusEnd
center
public java.awt.geom.Point2D.Double center
Curve
public Curve()
Curve
public Curve(java.lang.String type,
Segment prev)
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