Class CurvedConnectorShape.CurvedSegment
java.lang.Object
org.pathvisio.libgpml.model.connector.ConnectorShape.Segment
org.pathvisio.libgpml.model.connector.CurvedConnectorShape.CurvedSegment
- Enclosing class:
- CurvedConnectorShape
private class CurvedConnectorShape.CurvedSegment extends ConnectorShape.Segment
Segment for curved connector, also stores bezier control points
- Author:
- thomas
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CurvedSegment(java.awt.geom.Point2D start, java.awt.geom.Point2D end, java.awt.geom.Point2D c1, java.awt.geom.Point2D c2)
Constructor for a curved segment. -
Method Summary
Methods inherited from class org.pathvisio.libgpml.model.connector.ConnectorShape.Segment
calculateNewEndPoint, calculateNewStartPoint, getMCenter, getMEnd, getMLength, getMStart, setMEnd, setMStart, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
c1
private java.awt.geom.Point2D c1 -
c2
private java.awt.geom.Point2D c2
-
-
Constructor Details
-
CurvedSegment
public CurvedSegment(java.awt.geom.Point2D start, java.awt.geom.Point2D end, java.awt.geom.Point2D c1, java.awt.geom.Point2D c2)Constructor for a curved segment.- Parameters:
start
- the start point.end
- the end point.c1
- the bezier control point.c2
- the bezier control point.
-
-
Method Details
-
getC1
public java.awt.geom.Point2D getC1()Returns the c1 bezier control point.- Returns:
- c1 the bezier control point.
-
getC2
public java.awt.geom.Point2D getC2()Returns the c2 bezier control point.- Returns:
- c2 the bezier control point.
-