|
mxGraph 1.10.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 |
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 | |
---|---|
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 representsMethod 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()
|
mxGraph 1.10.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |