| |
|
| java.lang.Object java.awt.font.TransformAttribute
TransformAttribute | final public class TransformAttribute implements Serializable(Code) | | The TransformAttribute class provides an immutable
wrapper for a transform so that it is safe to use as an attribute.
|
Method Summary | |
public boolean | equals(Object rhs) Returns true if rhs is a TransformAttribute
whose transform is equal to this TransformAttribute 's
transform. | public AffineTransform | getTransform() Returns a copy of the wrapped transform. | public int | hashCode() | public boolean | isIdentity() Returns true if the wrapped transform is
an identity transform. |
IDENTITY | final public static TransformAttribute IDENTITY(Code) | | A TransformAttribute representing the identity transform.
since: 1.6 |
serialVersionUID | final static long serialVersionUID(Code) | | |
TransformAttribute | public TransformAttribute(AffineTransform transform)(Code) | | Wraps the specified transform. The transform is cloned and a
reference to the clone is kept. The original transform is unchanged.
If null is passed as the argument, this constructor behaves as though
it were the identity transform. (Note that it is preferable to use
TransformAttribute.IDENTITY in this case.)
Parameters: transform - the specified AffineTransform to be wrapped,or null. |
equals | public boolean equals(Object rhs)(Code) | | Returns true if rhs is a TransformAttribute
whose transform is equal to this TransformAttribute 's
transform.
Parameters: rhs - the object to compare to true if the argument is a TransformAttribute whose transform is equal to this TransformAttribute 'stransform. since: 1.6 |
getTransform | public AffineTransform getTransform()(Code) | | Returns a copy of the wrapped transform.
a AffineTransform that is a copy of the wrappedtransform of this TransformAttribute . |
hashCode | public int hashCode()(Code) | | since: 1.6 |
isIdentity | public boolean isIdentity()(Code) | | Returns true if the wrapped transform is
an identity transform.
true if the wrapped transform isan identity transform; false otherwise. since: 1.4 |
|
|
|