|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.font.TransformAttribute
public final class TransformAttribute
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 |
equals(Object rhs)
Returns true if rhs is a TransformAttribute
whose transform is equal to this TransformAttribute 's
transform. |
AffineTransform |
getTransform()
Returns a copy of the wrapped transform. |
int |
hashCode()
hashCode returns a hash code for this object. |
boolean |
isIdentity()
Returns true if the wrapped transform is
an identity transform. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final TransformAttribute IDENTITY
TransformAttribute
representing the identity transform.
Constructor Detail |
---|
public TransformAttribute(AffineTransform transform)
IDENTITY
in this case.)
transform
- the specified AffineTransform
to be wrapped,
or null.Method Detail |
---|
public AffineTransform getTransform()
AffineTransform
that is a copy of the wrapped
transform of this TransformAttribute
.public boolean isIdentity()
true
if the wrapped transform is
an identity transform.
true
if the wrapped transform is
an identity transform; false
otherwise.public int hashCode()
Object
The default implementation returns System.identityHashCode(this).
hashCode
in class Object
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 to
true
if the argument is a TransformAttribute
whose transform is equal to this TransformAttribute
's
transform.
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |