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.GeneralPath
asGeneralPath()
Point2DInt
clipEnd(Box box)
Point2DInt
clipStart(Box box)
PolylineBreakeable
copy(Pointable newStart, Pointable newEnd)
boolean
doesTouch(Polyline other)
double
getDistance(Box b)
double
getDistance(Polyline other)
Pointable
getEnd()
LineSegmentInt
getFirst()
java.util.List<XMoveable>
getFreedoms()
LineSegmentInt
getLast()
double
getLength()
int
getMaxX()
int
getMaxY()
int
getMinX()
int
getMinY()
Pointable
getStart()
void
insertBetweenPoint(int u, int d)
boolean
intersectBox(Box b)
int
nbSegments()
java.util.List<LineSegmentInt>
segments()
java.lang.String
toString()
-
-
-
Method Detail
-
copy
public PolylineBreakeable copy(Pointable newStart, Pointable newEnd)
-
segments
public java.util.List<LineSegmentInt> segments()
-
nbSegments
public int nbSegments()
- Specified by:
nbSegments
in interfacePolyline
-
getFreedoms
public java.util.List<XMoveable> getFreedoms()
-
insertBetweenPoint
public void insertBetweenPoint(int u, int d)
-
toString
public final java.lang.String toString()
- Overrides:
toString
in 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()
-
-