Point2D, where x is the advance and
y is the offset.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | pathToPoint(Point2D
a location, boolean Point2D representing the advance (in x) and
offset (in y) of a location relative to the path. If location
is not the same object as point, location will remain
unmodified by this call.if true, the portion preceding the advance
should be used, if false the portion after should be used.
This has no effect if the path does not break or bend sharply
at the advance. preceding, Point2D a point)Point2D to hold the returned point. It can be
the same object as location.Convert a location relative to the path to a point in user coordinates. |
| public abstract boolean | Returns: true if the point is associated with the portion of the path preceding the location, false if it is associated with the portion following. The default, if the location is not at a break or sharp bend in the path, is to return true.the point to convert. If it is not the same
object as location, point will remain unmodified by this call. point, Point2D a location)Point2D to hold the returned location.
It can be the same object as point.Convert a point in user space to a location relative to the path. |
| LayoutPath | back to summary |
|---|---|
| protected LayoutPath() Constructor for subclasses to call. | |
| pathToPoint | back to summary |
|---|---|
| public abstract void pathToPoint(Point2D location, boolean preceding, Point2D point) Convert a location relative to the path to a point in user coordinates. The path might bend abruptly or be disjoint at the location's advance. If this is the case, the value of 'preceding' is used to disambiguate the portion of the path whose location and slope is to be used to interpret the offset.
| |
| pointToPath | back to summary |
|---|---|
| public abstract boolean pointToPath(Point2D point, Point2D location) Convert a point in user space to a location relative to the path. The location is chosen so as to minimize the distance from the point to the path (e.g., the magnitude of the offset will be smallest). If there is more than one such location, the location with the smallest advance is chosen.
| |