com.tensegrity.graph.layout
Class EdgeMap

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

public class EdgeMap
extends java.lang.Object

This class contains the require edge information that might be used by a EdgeLayout

Version:
$Id: EdgeMap.java,v 1.3 2006/01/26 16:29:44 SharokhKhani Exp $
Author:
Sharokh Khani

Field Summary
 LayoutableEdge edge
          The edge that is to be arranged
 int[] offset
          The edge relative offset that should be taken into consideration.
 int type
          The type of the edge.
 
Constructor Summary
protected EdgeMap(LayoutableEdge edge, int preferEdgeType)
          The Constructor.
protected EdgeMap(LayoutableEdge edge, int[] offset, int preferEdgeType)
          The Constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

edge

public LayoutableEdge edge
The edge that is to be arranged


offset

public int[] offset
The edge relative offset that should be taken into consideration. The offset will be unequal null if the edge lies in a subgraph


type

public int type
The type of the edge. It might be a different one as it specified by LayoutableEdge.getType(), because in some cases (e.g. LayoutableEdge.EDGE_TYPE_DYNAMIC) the type could be changed dynamically

Constructor Detail

EdgeMap

protected EdgeMap(LayoutableEdge edge,
                  int[] offset,
                  int preferEdgeType)
The Constructor.

Parameters:
edge - the associated LayoutableEdge
offset - the offset that should be taken into consideration to get the absolute coordinate of edges. it will null if an edge does not lie in a subgraph.
preferEdgeType -

EdgeMap

protected EdgeMap(LayoutableEdge edge,
                  int preferEdgeType)
The Constructor.

Parameters:
edge - the associated LayoutableEdge
preferEdgeType - the prefer edge type. It can be determine by a NodeLayout for edges with a dynamic edge type


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