com.jgraph.layout.organic
public class JGraphOrganicLayout.CellWrapper extends Object
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 | |
---|---|
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) |
e
array
to this node. This is only used for nodes.Parameters: cell the graph cell this wrapper represents
Returns: the cell
Returns: the connectedEdges
Returns: the heightSquared
Returns: the radiusSquared
Returns: the relevantEdges
Returns: the source
Returns: the target
Returns: the x
Returns: the y
Parameters: connectedEdges the connectedEdges to set
Parameters: heightSquared the heightSquared to set
Parameters: radiusSquared the radiusSquared to set
Parameters: relevantEdges the relevantEdges to set
Parameters: source the source to set
Parameters: target the target to set
Parameters: x the x to set
Parameters: y the y to set