public final class TransformAttribute extends Object implements Serializable
AffineTransform as
an immutable attribute (for example, in the
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.| Constructor and Description |
|---|
TransformAttribute(AffineTransform transform)
Creates a new attribute that contains a copy of the given transform.
|
| Modifier and Type | Method and Description |
|---|---|
AffineTransform |
getTransform()
Returns a copy of the transform contained by this attribute.
|
boolean |
isIdentity()
Returns
true if the transform contained by this attribute is
an identity transform, and false otherwise. |
public TransformAttribute(AffineTransform transform)
transform - the transform (null not permitted).IllegalArgumentException - if transform is
null.public AffineTransform getTransform()
public boolean isIdentity()
true if the transform contained by this attribute is
an identity transform, and false otherwise.true if the transform contained by this attribute is
an identity transform, and false otherwise.