Constructor and Description |
---|
PolylineImpl(Pointable start,
Pointable end) |
Modifier and Type | Method and Description |
---|---|
void |
addIntermediate(Point2DInt intermediate) |
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() |
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() |
List<LineSegmentInt> |
segments() |
String |
toString() |
public int nbSegments()
nbSegments
in interface Polyline
public List<LineSegmentInt> segments()
public void addIntermediate(Point2DInt intermediate)
public void inflate(InflationTransform transform)
public final Collection<Point2DInt> getIntermediates()
public final boolean doesTouch(Polyline other)
public final LineSegmentInt getFirst()
public final LineSegmentInt getLast()
public final Point2DInt clipStart(Box box)
public final Point2DInt clipEnd(Box box)
public final boolean intersectBox(Box b)
public final double getDistance(Box b)
public final double getDistance(Polyline other)
public final GeneralPath asGeneralPath()
public final int getMinX()
public final int getMinY()
public final int getMaxX()
public final int getMaxY()
public final Pointable getStart()
public final Pointable getEnd()
Copyright © 2014. All Rights Reserved.