JavaTM 2 Platform
Standard Ed. 5.0

Class TransformAttribute

  extended by java.awt.font.TransformAttribute
All Implemented Interfaces:

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.

See Also:
Serialized Form

Constructor Summary
TransformAttribute(AffineTransform transform)
          Wraps the specified transform.
Method Summary
 AffineTransform getTransform()
          Returns a copy of the wrapped transform.
 boolean isIdentity()
          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

Constructor Detail


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.

transform - the specified AffineTransform to be wrapped
Method Detail


public AffineTransform getTransform()
Returns a copy of the wrapped transform.

a AffineTransform that is a copy of the wrapped transform of this TransformAttribute.


public boolean isIdentity()
Returns true if the wrapped transform is an identity transform.

true if the wrapped transform is an identity transform; false otherwise.

JavaTM 2 Platform
Standard Ed. 5.0

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.