Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.awt.font
Class TransformAttribute  view TransformAttribute download TransformAttribute.java

java.lang.Object
  extended byjava.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.


Field Summary
private  java.awt.geom.AffineTransform affineTransform
           
private static long serialVersionUID
           
 
Constructor Summary
TransformAttribute(java.awt.geom.AffineTransform transform)
          Creates a new attribute that contains a copy of the given transform.
 
Method Summary
 java.awt.geom.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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

affineTransform

private java.awt.geom.AffineTransform affineTransform
Constructor Detail

TransformAttribute

public TransformAttribute(java.awt.geom.AffineTransform transform)
Creates a new attribute that contains a copy of the given transform.

Method Detail

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