gishur.graph.gui
Class NodeVisualization

java.lang.Object
  |
  +--gishur.graph.gui.Visualization
        |
        +--gishur.graph.gui.NodeVisualization
All Implemented Interfaces:
java.io.Serializable

public class NodeVisualization
extends Visualization

Class storing information for the graphical output of this Node via a DisplayNode.

Version:
1.0
Author:
Christoph Sachse
See Also:
Serialized Form

Method Summary
 float getX()
          Returns the x-coordinate of the user space coordinates stored in this Visualization-object.
 float getY()
          Returns the y-coordinate of the user space coordinates stored in this Visualization-object.
 FloatPoint position()
          Returns the position of the NodeVisualization.
 java.lang.String toString()
          Returns a string representation of the object.
protected  void transform(AffineTransformation trans)
          Transforms this Visualization by the given affine transformation matrix.
protected  void transform(double m00, double m01, double m02, double m10, double m11, double m12)
          Transforms this Visualization by the given affine transformation matrix.
 
Methods inherited from class gishur.graph.gui.Visualization
empty, getRegistered, register, toStringMembers, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object.
Overrides:
toString in class Visualization
Returns:
a string representation of the object.

getX

public float getX()
Returns the x-coordinate of the user space coordinates stored in this Visualization-object.
Returns:
the user space x-coordinate

getY

public float getY()
Returns the y-coordinate of the user space coordinates stored in this Visualization-object.
Returns:
the user space y-coordinate

position

public FloatPoint position()
Returns the position of the NodeVisualization.

transform

protected void transform(double m00,
                         double m01,
                         double m02,
                         double m10,
                         double m11,
                         double m12)
Transforms this Visualization by the given affine transformation matrix.
Parameters:
m00,m01,m02 - first row of the transformation matrix
m10,m11,m12 - second row of the transformation matrix

transform

protected void transform(AffineTransformation trans)
Transforms this Visualization by the given affine transformation matrix.
Parameters:
trans - the AffineTransformation to use