Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.font.LayoutPath
public abstract class LayoutPath extends Object
LayoutPath provides a mapping between locations relative to the
baseline and points in user space. Locations consist of an advance
along the baseline, and an offset perpendicular to the baseline at
the advance. Positive values along the perpendicular are in the
direction that is 90 degrees clockwise from the baseline vector.
Locations are represented as a 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutPath()
Method Detail |
---|
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
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.