public abstract class LayoutPath extends Object
Point2D,其中x是推进和Y偏移。
| Constructor and Description |
|---|
LayoutPath() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
pathToPoint(Point2D location, boolean preceding, Point2D point)
将相对于路径的位置转换为用户坐标中的一个点。
|
abstract boolean |
pointToPath(Point2D point, Point2D location)
将用户空间中的一个点转换到相对于路径的位置。
|
public abstract boolean pointToPath(Point2D point, Point2D location)
point -点转换。如果它不是同一个对象,点将保持不变,由这个调用。
location -
Point2D举行返回位置。它可以是同一个对象的点。
NullPointerException如果地点或位置是空的
public abstract void pathToPoint(Point2D location, boolean preceding, Point2D point)
location -
Point2D代表提前(X)和偏移(Y)的位置的相对路径。如果位置是不相同的对象作为点,位置将保持不变,由这个调用。
preceding -如果是真的,前面的前进的部分应该被使用,如果虚假的部分后,应使用。这没有效果,如果路径不打破或大幅弯曲的进展。
point -
Point2D抱回来一点。它可以是同一个对象的位置。
NullPointerException如果位置或点是空的
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, 2014, Oracle and/or its affiliates. All rights reserved.