|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.awt.font.TransformAttribute
public final class TransformAttribute
TransformAttribute 類別為轉換提供一個不可變的套件裝器,使其可以安全地作為屬性使用。
| 欄位摘要 | |
|---|---|
static TransformAttribute |
IDENTITY
表示恆等變換的 TransformAttribute。 |
| 建構子摘要 | |
|---|---|
TransformAttribute(AffineTransform transform)
包裹指定的轉換。 |
|
| 方法摘要 | |
|---|---|
boolean |
equals(Object rhs)
如果 rhs 是一個變換等效於此 TransformAttribute 變換的 TransformAttribute,則返回 true。 |
AffineTransform |
getTransform()
返回包裹轉換的一個副本。 |
int |
hashCode()
返回該物件的雜湊碼值。 |
boolean |
isIdentity()
如果包裹轉換是一個恆等變換,則返回 true。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| 欄位詳細資訊 |
|---|
public static final TransformAttribute IDENTITY
TransformAttribute。
| 建構子詳細資訊 |
|---|
public TransformAttribute(AffineTransform transform)
IDENTITY。)
transform - 要包裹的指定 AffineTransform,或者為 null。| 方法詳細資訊 |
|---|
public AffineTransform getTransform()
TransformAttribute 的套件裝轉換的一個副本 AffineTransform。public boolean isIdentity()
true。
true;否則返回 false。public int hashCode()
Object 複製的描述java.util.Hashtable 提供的雜湊表)的性能。
hashCode 的常規協定是:
hashCode 方法都必須產生相同的整數結果。
Object.equals(java.lang.Object) 方法,兩個物件不相等,那麼對這兩個物件中的任一物件上調用 hashCode 方法不 要求一定產生不同的整數結果。但是,開發人員應該意識到,為不相等的物件產生不同整數結果可以提高雜湊表的性能。
實際上,由 Object 類別定義的 hashCode 方法確實會針對不同的物件返回不同的整數。(這一般是通過將該物件的內部位址轉換成一個整數來實作的,但是 JavaTM 程式語言不需要這種實作技巧。)
Object 中的 hashCodeObject.equals(java.lang.Object),
Hashtablepublic boolean equals(Object rhs)
TransformAttribute 變換的 TransformAttribute,則返回 true。
Object 中的 equalsrhs - 要與之比較的物件
TransformAttribute 變換的 TransformAttribute,則返回 true。Object.hashCode(),
Hashtable
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。