public abstract class LayoutPath extends Object
Point2D
, where x is the advance and y is the offset.Modifier | Constructor | Description |
---|---|---|
protected |
Constructor for subclasses to call. |
Modifier and Type | Method | Description |
---|---|---|
abstract void |
pathToPoint |
Convert a location relative to the path to a point in user coordinates. |
abstract boolean |
pointToPath |
Convert a point in user space to a location relative to the path. |
protected LayoutPath()
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
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/font/LayoutPath.html