| 
 | JGraph X 2.1.0.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mxgraph.layout.mxOrganicLayout.CellWrapper
public class mxOrganicLayout.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 | cellThe actual graph cell this wrapper represents | 
| protected  int[] | connectedEdgesthe index of all connected edges in the earray
 to this node. | 
| protected  double | heightSquaredThe height of the node squared, only used if approxNodeDimensions is set to true. | 
| protected  double | radiusSquaredThe approximate radius squared of this cell, nodes only. | 
| protected  int[] | relevantEdgesAll edge that repel this cell, only used for nodes. | 
| protected  int | sourceThe index of the node attached to this edge as source, edges only | 
| protected  int | targetThe index of the node attached to this edge as target, edges only | 
| protected  double | xThe x-coordinate position of this cell, nodes only | 
| protected  double | yThe y-coordinate position of this cell, nodes only | 
| Constructor Summary | |
|---|---|
| mxOrganicLayout.CellWrapper(Object cell)Constructs a new CellWrapper | |
| Method Summary | |
|---|---|
|  Object | getCell() | 
|  int[] | getConnectedEdges() | 
|  double | getHeightSquared() | 
|  double | getRadiusSquared() | 
|  int[] | getRelevantEdges() | 
|  int | getSource() | 
|  int | getTarget() | 
|  double | getX() | 
|  double | getY() | 
|  void | setConnectedEdges(int[] connectedEdges) | 
|  void | setHeightSquared(double heightSquared) | 
|  void | setRadiusSquared(double radiusSquared) | 
|  void | setRelevantEdges(int[] relevantEdges) | 
|  void | setSource(int source) | 
|  void | setTarget(int target) | 
|  void | setX(double x) | 
|  void | setY(double y) | 
| 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 mxOrganicLayout.CellWrapper(Object cell)
cell - the graph cell this wrapper represents| Method Detail | 
|---|
public int[] getRelevantEdges()
public void setRelevantEdges(int[] relevantEdges)
relevantEdges - the relevantEdges to setpublic int[] getConnectedEdges()
public void setConnectedEdges(int[] connectedEdges)
connectedEdges - the connectedEdges to setpublic double getX()
public void setX(double x)
x - the x to setpublic double getY()
public void setY(double y)
y - the y to setpublic double getRadiusSquared()
public void setRadiusSquared(double radiusSquared)
radiusSquared - the radiusSquared to setpublic double getHeightSquared()
public void setHeightSquared(double heightSquared)
heightSquared - the heightSquared to setpublic int getSource()
public void setSource(int source)
source - the source to setpublic int getTarget()
public void setTarget(int target)
target - the target to setpublic Object getCell()
| 
 | JGraph X 2.1.0.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||