FileDocCategorySizeDatePackage
TransformAttribute.javaAPI DocAndroid 1.5 API2621Wed May 06 22:41:54 BST 2009java.awt.font

TransformAttribute

public final class TransformAttribute extends Object implements Serializable
The TransformAttribute class is a wrapper for the AffineTransform class in order to use it as attribute.
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
The Constant serialVersionUID.
private AffineTransform
fTransform
The transform.
Constructors Summary
public TransformAttribute(AffineTransform transform)
Instantiates a new TransformAttribute from the specified AffineTransform.

param
transform the AffineTransform to be wrapped.


                                    
       
        if (transform == null) {
            // awt.94=transform can not be null
            throw new IllegalArgumentException(Messages.getString("awt.94")); //$NON-NLS-1$
        }
        if (!transform.isIdentity()) {
            this.fTransform = new AffineTransform(transform);
        }
    
Methods Summary
public java.awt.geom.AffineTransformgetTransform()
Gets the initial AffineTransform which is wrapped.

return
the initial AffineTransform which is wrapped.

        if (fTransform != null) {
            return new AffineTransform(fTransform);
        }
        return new AffineTransform();
    
public booleanisIdentity()
Checks if this transform is an identity transform.

return
true, if this transform is an identity transform, false otherwise.

        return (fTransform == null);