com.tensegrity.graphics.awt
Class AWTUtilities

java.lang.Object
  extended bycom.tensegrity.graphics.awt.AWTUtilities

public class AWTUtilities
extends java.lang.Object

The AWTUtilities class privodes some usefull functionalities when working with AWT and the Tensegrity Visualization Framework.

* * * * * * * * * * * * * * * * * * *

Version:
$Id$
Author:
MKegel

Method Summary
static Transform2D fromAffineTransform(java.awt.geom.AffineTransform xform)
          Converts the given AffineTransform into a Transform2D.
static java.awt.geom.AffineTransform toAffineTransform(Transform2D xform)
          Converts the given Transform2D into an AffineTransform.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toAffineTransform

public static final java.awt.geom.AffineTransform toAffineTransform(Transform2D xform)
Converts the given Transform2D into an AffineTransform.

Returns:
AffineTransform the converted transformation

fromAffineTransform

public static final Transform2D fromAffineTransform(java.awt.geom.AffineTransform xform)
Converts the given AffineTransform into a Transform2D.

Parameters:
xform - the transformation to convert
Returns:
Transform2D the converted transformation


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.