java.lang.Object
java.awt.font.TransformAttribute
- All Implemented Interfaces:
- java.io.Serializable
- public final class TransformAttribute
- extends java.lang.Object
- implements java.io.Serializable
This class provides a mechanism for using an java.awt.geom.AffineTransform as
an immutable attribute (for example, in the
java.text.AttributedString class). Any transform passed to
this class is copied before being stored, and any transform handed out
by this class is a copy of the stored transform. In this way, it is
not possible to modify the stored transform.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
affineTransform
private java.awt.geom.AffineTransform affineTransform
TransformAttribute
public TransformAttribute(java.awt.geom.AffineTransform transform)
- Creates a new attribute that contains a copy of the given transform.
getTransform
public java.awt.geom.AffineTransform getTransform()
- Returns a copy of the transform contained by this attribute.
isIdentity
public boolean isIdentity()
- Returns
true if the transform contained by this attribute is
an identity transform, and false otherwise.
- Since:
- 1.4