TransformAttribute class provides an immutable
wrapper for a transform so that it is safe to use as an attribute.
| Modifier and Type | Field and Description |
|---|---|
| public static final TransformAttribute | IDENTITY
A |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.4 for interoperability. |
| private AffineTransform |
| Access | Constructor and Description |
|---|---|
| public | TransformAttribute(AffineTransform
the specified transform)AffineTransform to be wrapped,
or null.Wraps the specified transform. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the argument is a TransformAttribute
whose transform is equal to this TransformAttribute's
transform.the object to compare to rhs)Overrides java. Returns |
| public AffineTransform | Returns: anAffineTransform that is a copy of the wrapped
transform of this TransformAttribute.Returns a copy of the wrapped transform. |
| public int | |
| public boolean | Returns: true if the wrapped transform is
an identity transform; false otherwise.Returns |
| private Object | Returns: a newly created object from deserialized dataResolves a |
| private void | writeObject(ObjectOutputStream
the s)ObjectOutputStream to writeWrites default serializable fields to stream. |
| IDENTITY | back to summary |
|---|---|
| public static final TransformAttribute IDENTITY A
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Use serialVersionUID from JDK 1.4 for interoperability. | |
| transform | back to summary |
|---|---|
| private AffineTransform transform | |
| TransformAttribute | back to summary |
|---|---|
| public TransformAttribute(AffineTransform transform) 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
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object rhs) Overrides java. Returns
| |
| getTransform | back to summary |
|---|---|
| public AffineTransform getTransform() Returns a copy of the wrapped transform.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isIdentity | back to summary |
|---|---|
| public boolean isIdentity() Returns
| |
| readResolve | back to summary |
|---|---|
| private Object readResolve() throws ObjectStreamException Resolves a
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream s) throws IOException Writes default serializable fields to stream.
| |