public interface XyPath<T extends XyPath> extends XyShape<T>
Examples of paths are polylines, curves, arcs, etc.
Copyright 2007 Partner Software, Inc.
| Modifier and Type | Method and Description |
|---|---|
XyPoint |
getEndPoint()
Returns the last point in the shape.
|
double |
getLength()
Returns the length of the path.
|
XyPoint |
getStartPoint()
Returns the first point in the shape.
|
XyPolyline |
toPolyline()
Same as
toPolyline(XyAngle) with a default angle granularity of
1/60 circle (6 degrees, pi/30 radians). |
XyPolyline |
toPolyline(XyAngle granularity)
Converts this area to a polyline which approximates it in some fashion.
|
getBounds, scaledBy, transformedBy, translatedBydouble getLength()
XyPolyline toPolyline(XyAngle granularity)
The angle parameter allows a certain level of control of the output. Essentially it dictates the minimum angular granularity used to approximate curved paths. For example, an arc would be turned into a polyline by placing points around the arc's slice of a circle, separated by the given angle.
XyPolyline toPolyline()
toPolyline(XyAngle) with a default angle granularity of
1/60 circle (6 degrees, pi/30 radians).XyPoint getStartPoint()
XyPoint getEndPoint()