JGraphLayout
v1.4.0.2


com.jgraph.layout.organic
Class JGraphOrganicLayout.CellWrapper

java.lang.Object
  extended bycom.jgraph.layout.organic.JGraphOrganicLayout.CellWrapper
Enclosing class:
JGraphOrganicLayout

public class JGraphOrganicLayout.CellWrapper
extends Object

Internal representation of a node or edge that holds cached information to enable the layout to perform more quickly and to simplify the code


Field Summary
protected  Object cell
          The actual graph cell this wrapper represents
protected  int[] connectedEdges
          the index of all connected edges in the e array to this node.
protected  double heightSquared
          The height of the node squared, only used if approxNodeDimensions is set to true.
protected  double radiusSquared
          The approximate radius squared of this cell, nodes only.
protected  int[] relevantEdges
          All edge that repel this cell, only used for nodes.
protected  int source
          The index of the node attached to this edge as source, edges only
protected  int target
          The index of the node attached to this edge as target, edges only
protected  double x
          The x-coordinate position of this cell, nodes only
protected  double y
          The y-coordinate position of this cell, nodes only
 
Constructor Summary
JGraphOrganicLayout.CellWrapper(Object cell)
          Constructs a new CellWrapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cell

protected Object cell
The actual graph cell this wrapper represents


relevantEdges

protected int[] relevantEdges
All edge that repel this cell, only used for nodes. This array is equivalent to all edges unconnected to this node


connectedEdges

protected int[] connectedEdges
the index of all connected edges in the e array to this node. This is only used for nodes.


x

protected double x
The x-coordinate position of this cell, nodes only


y

protected double y
The y-coordinate position of this cell, nodes only


radiusSquared

protected double radiusSquared
The approximate radius squared of this cell, nodes only. If approxNodeDimensions is true on the layout this value holds the width of the node squared


heightSquared

protected double heightSquared
The height of the node squared, only used if approxNodeDimensions is set to true.


source

protected int source
The index of the node attached to this edge as source, edges only


target

protected int target
The index of the node attached to this edge as target, edges only

Constructor Detail

JGraphOrganicLayout.CellWrapper

public JGraphOrganicLayout.CellWrapper(Object cell)
Constructs a new CellWrapper

Parameters:
cell - the graph cell this wrapper represents

JGraphLayout
v1.4.0.2


Copyright (C) 2005 JGraph.com. All rights reserved.