java.lang.Object
java.awt.font.TransformAttribute
- 所有已实现的接口:
Serializable
TransformAttribute 类为转换提供了一个不可变的包装器,因此可以安全地用作属性。
- 参见:
-
字段摘要
字段 -
构造方法总结
构造方法 -
方法总结
修饰符和类型方法描述boolean如果 rhs 是一个TransformAttribute,其变换等于这个TransformAttribute的变换,则返回true。返回包装转换的副本。inthashCode()返回对象的哈希码值。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。
-