IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
 
[Sommaire]  [Top 50]  [F.A.Q.]  [ Java SE ]  [ Java EE ]  [Javadoc standard]  [Contact]
[ 1.4.2 ]  [ 5.0 ]  [ 6.0
Rechercher   
Dans
Options   sensible à la casse
étendre la recherche aux descriptions
Préférences
fr en 
 
Moteurs de recherche
JavaTM 2 Platform Std. Ed. v1.4.2

java.awt.font
Class TransformAttribute

java.lang.Object
  extended byjava.awt.font.TransformAttribute
All Implemented Interfaces:
Serializable

public final class TransformAttribute
extends Object
implements Serializable

The TransformAttribute class provides an immutable wrapper for a transform so that it is safe to use as an attribute.

See Also:
Serialized Form

Constructor Summary
TransformAttribute(AffineTransform transform)
          Wraps the specified transform.
 
Method Summary
 AffineTransform getTransform()
          Returns a copy of the wrapped transform.
 boolean isIdentity()
          Returns true if the wrapped transform is an identity transform.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformAttribute

public TransformAttribute(AffineTransform transform)
Wraps the specified transform. The transform is cloned and a reference to the clone is kept. The original transform is unchanged.

Parameters:
transform - the specified AffineTransform to be wrapped
Method Detail

getTransform

public AffineTransform getTransform()
Returns a copy of the wrapped transform.

Returns:
a AffineTransform that is a copy of the wrapped transform of this TransformAttribute.

isIdentity

public boolean isIdentity()
Returns true if the wrapped transform is an identity transform.

Returns:
true if the wrapped transform is an identity transform; false otherwise.
Since:
1.4

Copyright 2003 Sun Microsystems, Inc. All rights reserved