|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.awt.font.LayoutPath
public abstract class LayoutPath
LayoutPath 提供相对于基线的位置与用户空间中的点之间的映射。位置由沿基线的 advance 以及垂直于该 advance 处基线的偏移量组成。沿垂线的正值的方向是从基线向量顺时针旋转 90 度的方向。位置表示为 Point2D,其中 x 为 advance,y 为偏移量。
| 构造方法摘要 | |
|---|---|
LayoutPath()
|
|
| 方法摘要 | |
|---|---|
abstract void |
pathToPoint(Point2D location,
boolean preceding,
Point2D point)
将相对于路径的位置转换为用户坐标中的点。 |
abstract boolean |
pointToPath(Point2D point,
Point2D location)
将用户空间中的点转换为相对于路径的位置。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public LayoutPath()
| 方法详细信息 |
|---|
public abstract boolean pointToPath(Point2D point,
Point2D location)
point - 要转换的点。如果它不是与 location 相同的对象,则此调用将不会修改该点。location - 用于保存返回位置的 Point2D。它可以是与 point 相同的对象。
NullPointerException - 如果 point 或 location 为 null
public abstract void pathToPoint(Point2D location,
boolean preceding,
Point2D point)
location - 一个 Point2D,表示相对于路径的某一位置的 advance(用 x 表示)和 offset(用 y 表示)。如果 location 与 point 不是相同的对象,则此调用不会修改该位置。preceding - 如果为 true,则应该使用 advance 之前的部分;如果为 false,则应该使用之后的部分。如果路径在 advance 处没有中断或突然拐弯,则此方法无效。point - 用于保存返回点的 Point2D。它可以是与 location 相同的对象。
NullPointerException - 如果 location 或 point 为 null
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。