java.lang.Object
java.awt.font.TransformAttribute
- 所有已实现的接口:
Serializable
TransformAttribute
类为转换提供了一个不可变的包装器,因此可以安全地用作属性。
- 参见:
-
字段摘要
字段 -
构造方法总结
构造方法 -
方法总结
修饰符和类型方法描述boolean
如果 rhs 是一个TransformAttribute
,其变换等于这个TransformAttribute
的变换,则返回true
。返回包装转换的副本。int
hashCode()
返回对象的哈希码值。boolean
如果包装转换是恒等转换,则返回true
。
-
字段详细信息
-
IDENTITY
一个TransformAttribute
表示恒等变换。- 自从:
- 1.6
-
-
构造方法详细信息
-
TransformAttribute
包装指定的转换。转换被克隆并保留对克隆的引用。原始变换不变。如果 null 作为参数传递,则此构造函数的行为就好像它是身份转换一样。 (请注意,在这种情况下最好使用IDENTITY
。)- 参数:
transform
- 要包装的指定AffineTransform
,或者为 null。
-
-
方法详情
-
getTransform
返回包装转换的副本。- 返回:
AffineTransform
是此TransformAttribute
的包装转换的副本。
-
isIdentity
public boolean isIdentity()如果包装转换是恒等转换,则返回true
。- 返回:
true
如果包装转换是恒等转换;false
否则。- 自从:
- 1.4
-
hashCode
public int hashCode()从类复制的描述:Object
返回对象的哈希码值。支持此方法是为了哈希表的好处,例如HashMap
提供的哈希表。hashCode
的总合同为: -
equals
如果 rhs 是一个TransformAttribute
,其变换等于这个TransformAttribute
的变换,则返回true
。
-