cwi.GraphXML.Elements
Class Transform

java.lang.Object
  extended bycwi.GraphXML.Elements.Transform
All Implemented Interfaces:
java.io.Serializable

public class Transform
extends java.lang.Object
implements java.io.Serializable

Transformation matrix. Note that the class will return the full matrix (3x3 or 4x4), although the user specifies the affine part only.

Author:
Ivan Herman
See Also:
Reference, Serialized Form

Constructor Summary
Transform()
           
 
Method Summary
static Transform create(org.w3c.dom.Node node, ParserError parserError)
          Retrieve the representation of a position from a node, and returns a corresponding class instance.
 java.awt.geom.AffineTransform get2DAffineTransform()
          Return a Java2D affine transform
 double[] get2Dmatrix()
          Return a 3x3 submatrix, to be used for 3D transform.
 double[] get3Dmatrix()
          Return the full, 4x4 matrix
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Transform

public Transform()
Method Detail

get3Dmatrix

public double[] get3Dmatrix()
Return the full, 4x4 matrix


get2Dmatrix

public double[] get2Dmatrix()
Return a 3x3 submatrix, to be used for 3D transform.


get2DAffineTransform

public java.awt.geom.AffineTransform get2DAffineTransform()
Return a Java2D affine transform


create

public static Transform create(org.w3c.dom.Node node,
                               ParserError parserError)
Retrieve the representation of a position from a node, and returns a corresponding class instance.

Parameters:
node - The node containing the reference.
Returns:
new Reference class, or null

toString

public java.lang.String toString()