|
JavaTM 2 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 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。