| 
 | JavaTM 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 Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。