|
JGraphLayout |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgraph.layout.organic.JGraphOrganicLayout.CellWrapper
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 |
protected Object cell
protected int[] relevantEdges
protected int[] connectedEdges
e
array
to this node. This is only used for nodes.
protected double x
protected double y
protected double radiusSquared
protected double heightSquared
protected int source
protected int target
Constructor Detail |
public JGraphOrganicLayout.CellWrapper(Object cell)
cell
- the graph cell this wrapper represents
|
JGraphLayout |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |