public abstract class LayoutPath extends Object
Point2D
, where x is the advance and
y is the offset.Constructor and Description |
---|
LayoutPath() |
Modifier and Type | Method and Description |
---|---|
abstract void |
pathToPoint(Point2D ___location,
boolean preceding,
Point2D point)
Convert a ___location relative to the path to a point in user
coordinates.
|
abstract boolean |
pointToPath(Point2D point,
Point2D ___location)
Convert a point in user space to a ___location relative to the
path.
|
public abstract boolean pointToPath(Point2D point, Point2D ___location)
point
- the point to convert. If it is not the same
object as ___location, point will remain unmodified by this call.___location
- a Point2D
to hold the returned ___location.
It can be the same object as point.NullPointerException
- if point or ___location is nullpublic abstract void pathToPoint(Point2D ___location, boolean preceding, Point2D point)
___location
- a 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.preceding
- 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.point
- a Point2D
to hold the returned point. It can be
the same object as ___location.NullPointerException
- if ___location or point is null Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.