com.tensegrity.graph.layout
Class EdgeCoordinateInfo

java.lang.Object
  extended bycom.tensegrity.graph.layout.EdgeCoordinateInfo

public class EdgeCoordinateInfo
extends java.lang.Object

The EdgeCoordinateInfo class should be used to store a number of Coordinate objects along with a certain type. The type refers to the type of the LayoutableEdge and therefore it must be one of the types defined in the LayoutableEdge interface. * * * * * * * * * * * * * * * * * * * * @see LayoutableEdge

Version:
$Id$
Author:
MKegel
See Also:
LayoutableEdge.EDGE_TYPE_DYNAMIC, Coordinate

Field Summary
 Coordinate[] coords
          Instance variable for the coordinates
 Coordinate[] coordsCopy
           
 int type
          Instance variable for the type of the coordinates
 
Constructor Summary
EdgeCoordinateInfo()
          Default constructor for EdgeCoordinateInfo.
EdgeCoordinateInfo(Coordinate[] coords, int type)
          Constructor for EdgeCoordinateInfo with given Coordinate instances and given type of the coordinates.
EdgeCoordinateInfo(LayoutableEdge edge)
          Constructor for EdgeCoordinateInfo with given instance of a LayoutableEdge.
 
Method Summary
 java.lang.Object clone()
           
 void copyCoordinates()
          Creates a copy of the associated coordinates.
 boolean equals(java.lang.Object other)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

coords

public Coordinate[] coords
Instance variable for the coordinates


coordsCopy

public Coordinate[] coordsCopy

type

public int type
Instance variable for the type of the coordinates

Constructor Detail

EdgeCoordinateInfo

public EdgeCoordinateInfo()
Default constructor for EdgeCoordinateInfo.


EdgeCoordinateInfo

public EdgeCoordinateInfo(Coordinate[] coords,
                          int type)
Constructor for EdgeCoordinateInfo with given Coordinate instances and given type of the coordinates.
The given type refers to the type of a LayoutableEdge the given coordinates have been calculated for and therefore it must be one of the different type constants defined in the LayoutableEdge interface.

Parameters:
coords - the Coordinate instances
type - the type of the given coordinates
See Also:
LayoutableEdge, LayoutableEdge.EDGE_TYPE_DYNAMIC, Coordinate

EdgeCoordinateInfo

public EdgeCoordinateInfo(LayoutableEdge edge)
Constructor for EdgeCoordinateInfo with given instance of a LayoutableEdge.
This constructor creates a EdgeCoordinateInfo object from the given LayoutableEdge instance by taking its current coordinates and its current type.

Parameters:
edge - the LayoutableEdge instance to create the EdgeCoordinateInfo from
Method Detail

copyCoordinates

public void copyCoordinates()
Creates a copy of the associated coordinates.


clone

public final java.lang.Object clone()

equals

public boolean equals(java.lang.Object other)

toString

public java.lang.String toString()


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