Package net.sourceforge.plantuml.geom
Class LineSegmentDouble
- java.lang.Object
-
- java.awt.geom.Line2D
-
- net.sourceforge.plantuml.geom.AbstractLineSegment
-
- net.sourceforge.plantuml.geom.LineSegmentDouble
-
- All Implemented Interfaces:
java.awt.Shape,java.lang.Cloneable
public class LineSegmentDouble extends AbstractLineSegment
-
-
Constructor Summary
Constructors Constructor Description LineSegmentDouble(double x1, double y1, double x2, double y2)LineSegmentDouble(java.awt.geom.CubicCurve2D.Double curve)LineSegmentDouble(java.awt.geom.Point2D p1, java.awt.geom.Point2D p2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(UGraphic ug)java.awt.geom.Point2DgetP1()java.awt.geom.Point2DgetP2()doublegetX1()doublegetX2()doublegetY1()doublegetY2()java.lang.StringtoString()LineSegmentDoubletranslate(UTranslate translate)-
Methods inherited from class net.sourceforge.plantuml.geom.AbstractLineSegment
determinant, doesIntersect, equals, getAngle, getBounds2D, getDistance, getDistance, getIntersectionHorizontal, getIntersectionVertical, getLength, getOppositeAngle, getPoint2D, getSegIntersection, hashCode, isHorizontal, isPointOnSegment, isVertical, setLine, side, startTranslatedAsVector
-
Methods inherited from class java.awt.geom.Line2D
clone, contains, contains, contains, contains, getBounds, getPathIterator, getPathIterator, intersects, intersects, intersectsLine, intersectsLine, linesIntersect, ptLineDist, ptLineDist, ptLineDist, ptLineDistSq, ptLineDistSq, ptLineDistSq, ptSegDist, ptSegDist, ptSegDist, ptSegDistSq, ptSegDistSq, ptSegDistSq, relativeCCW, relativeCCW, relativeCCW, setLine, setLine
-
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
translate
public LineSegmentDouble translate(UTranslate translate)
-
getP1
public java.awt.geom.Point2D getP1()
- Specified by:
getP1in classjava.awt.geom.Line2D
-
getP2
public java.awt.geom.Point2D getP2()
- Specified by:
getP2in classjava.awt.geom.Line2D
-
getX1
public double getX1()
- Specified by:
getX1in classjava.awt.geom.Line2D
-
getX2
public double getX2()
- Specified by:
getX2in classjava.awt.geom.Line2D
-
getY1
public double getY1()
- Specified by:
getY1in classjava.awt.geom.Line2D
-
getY2
public double getY2()
- Specified by:
getY2in classjava.awt.geom.Line2D
-
draw
public void draw(UGraphic ug)
-
-