Package net.sourceforge.plantuml.geom
Class PolylineImpl
- java.lang.Object
-
- net.sourceforge.plantuml.geom.PolylineImpl
-
-
Constructor Summary
Constructors Constructor Description PolylineImpl(Pointable start, Pointable end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIntermediate(Point2DInt intermediate)
java.awt.geom.GeneralPath
asGeneralPath()
Point2DInt
clipEnd(Box box)
Point2DInt
clipStart(Box box)
boolean
doesTouch(Polyline other)
double
getDistance(Box b)
double
getDistance(Polyline other)
Pointable
getEnd()
LineSegmentInt
getFirst()
java.util.Collection<Point2DInt>
getIntermediates()
LineSegmentInt
getLast()
double
getLength()
int
getMaxX()
int
getMaxY()
int
getMinX()
int
getMinY()
Pointable
getStart()
void
inflate(InflationTransform transform)
boolean
intersectBox(Box b)
int
nbSegments()
java.util.List<LineSegmentInt>
segments()
java.lang.String
toString()
-
-
-
Method Detail
-
nbSegments
public int nbSegments()
- Specified by:
nbSegments
in interfacePolyline
-
segments
public java.util.List<LineSegmentInt> segments()
-
addIntermediate
public void addIntermediate(Point2DInt intermediate)
-
inflate
public void inflate(InflationTransform transform)
-
getIntermediates
public final java.util.Collection<Point2DInt> getIntermediates()
-
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()
-
-