| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public final class TransformAttribute extends Object implements Serializable
The TransformAttribute
class provides an immutable
wrapper for a transform so that it is safe to use as an attribute.
Field Summary | |
---|---|
static TransformAttribute |
IDENTITY
A TransformAttribute representing the identity transform. |
Constructor Summary | |
---|---|
TransformAttribute(AffineTransform transform) Wraps the specified transform. |
Method Summary | |
---|---|
boolean |
Returns true if rhs is a TransformAttribute
whose transform is equal to this TransformAttribute 's
transform.
|
AffineTransform |
Returns a copy of the wrapped transform. |
int |
hashCode() Returns a hash code value for the object. |
boolean |
Returns true if the wrapped transform is
an identity transform.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final TransformAttribute IDENTITY
TransformAttribute
representing the identity transform.
Constructor Detail |
---|
public TransformAttribute(AffineTransform transform)
transform
- the specified {@link AffineTransform} to be wrapped,
or null.Method Detail |
---|
public boolean equals(Object rhs)
true
if rhs is a TransformAttribute
whose transform is equal to this TransformAttribute
's
transform.
equals
in class Object
rhs
- the object to compare totrue
if the argument is a TransformAttribute
whose transform is equal to this TransformAttribute
's
transform.public AffineTransform getTransform()
AffineTransform
that is a copy of the wrapped
transform of this TransformAttribute
.public int hashCode()
hashCode
in class Object
public boolean isIdentity()
true
if the wrapped transform is
an identity transform.
true
if the wrapped transform is
an identity transform; false
otherwise.
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |