|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XyPath<T extends XyPath>
An XyPath is a shape with an ordered sequence of points or curves.
Examples of paths are polylines, curves, arcs, etc.
Copyright 2007 Partner Software, Inc.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface com.partnersoft.geometry.xy.XyShape |
|---|
getBounds, scaledBy, transformedBy, translatedBy |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
double 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||