|
|||||||||
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
This class provides a mechanism for using an 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 Summary | |
---|---|
TransformAttribute(AffineTransform transform)
Creates a new attribute that contains a copy of the given transform. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransformAttribute(AffineTransform transform)
transform
- the transform (null
not permitted).
IllegalArgumentException
- if transform
is
null
.Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |