Package net.sourceforge.plantuml.geom
Class PolylineBreakeable
- java.lang.Object
-
- net.sourceforge.plantuml.geom.PolylineBreakeable
-
-
Constructor Summary
Constructors Constructor Description PolylineBreakeable(Pointable start, Pointable end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.geom.GeneralPathasGeneralPath()Point2DIntclipEnd(Box box)Point2DIntclipStart(Box box)PolylineBreakeablecopy(Pointable newStart, Pointable newEnd)booleandoesTouch(Polyline other)doublegetDistance(Box b)doublegetDistance(Polyline other)PointablegetEnd()LineSegmentIntgetFirst()java.util.List<XMoveable>getFreedoms()LineSegmentIntgetLast()doublegetLength()intgetMaxX()intgetMaxY()intgetMinX()intgetMinY()PointablegetStart()voidinsertBetweenPoint(int u, int d)booleanintersectBox(Box b)intnbSegments()java.util.List<LineSegmentInt>segments()java.lang.StringtoString()
-
-
-
Method Detail
-
copy
public PolylineBreakeable copy(Pointable newStart, Pointable newEnd)
-
segments
public java.util.List<LineSegmentInt> segments()
-
nbSegments
public int nbSegments()
- Specified by:
nbSegmentsin interfacePolyline
-
getFreedoms
public java.util.List<XMoveable> getFreedoms()
-
insertBetweenPoint
public void insertBetweenPoint(int u, int d)
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
doesTouch
public final boolean doesTouch(Polyline other)
-
getFirst
public final LineSegmentInt getFirst()
-
getLast
public final LineSegmentInt getLast()
-
clipStart
public final Point2DInt clipStart(Box box)
-
clipEnd
public final Point2DInt clipEnd(Box box)
-
intersectBox
public final boolean intersectBox(Box b)
-
getDistance
public final double getDistance(Box b)
-
getDistance
public final double getDistance(Polyline other)
-
asGeneralPath
public final java.awt.geom.GeneralPath asGeneralPath()
-
getMinX
public final int getMinX()
-
getMinY
public final int getMinY()
-
getMaxX
public final int getMaxX()
-
getMaxY
public final int getMaxY()
-
getStart
public final Pointable getStart()
-
getEnd
public final Pointable getEnd()
-
-