|
Jamaica 6.4 release 1
|
|||||||||
| 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()
ObjectThe default implementation returns System.identityHashCode(this).
hashCode in class Objectpublic boolean equals(Object rhs)
true if rhs is a TransformAttribute
whose transform is equal to this TransformAttribute's
transform.
equals in class Objectrhs - the object to compare to
true if the argument is a TransformAttribute
whose transform is equal to this TransformAttribute's
transform.
|
Jamaica 6.4 release 1
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||