net.sourceforge.plantuml.geom
Class PolylineBreakeable
java.lang.Object
net.sourceforge.plantuml.geom.PolylineBreakeable
- All Implemented Interfaces:
- Polyline
public class PolylineBreakeable
- extends Object
- implements Polyline
PolylineBreakeable
public PolylineBreakeable(Pointable start,
Pointable end)
copy
public PolylineBreakeable copy(Pointable newStart,
Pointable newEnd)
segments
public List<LineSegmentInt> segments()
- Specified by:
segments
in interface Polyline
nbSegments
public int nbSegments()
- Specified by:
nbSegments
in interface Polyline
getFreedoms
public List<XMoveable> getFreedoms()
insertBetweenPoint
public void insertBetweenPoint(int u,
int d)
toString
public final String toString()
- Overrides:
toString
in class Object
doesTouch
public final boolean doesTouch(Polyline other)
- Specified by:
doesTouch
in interface Polyline
getFirst
public final LineSegmentInt getFirst()
getLast
public final LineSegmentInt getLast()
getLength
public final double getLength()
- Specified by:
getLength
in interface Polyline
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 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()
Copyright © 2014. All Rights Reserved.