com.jgraph.layout.hierarchical.model
public abstract class JGraphAbstractHierarchyCell extends Object
Field Summary | |
---|---|
double | height
The height of this cell |
int | maxRank
The maximum rank this cell occupies |
int | minRank
The minimum rank this cell occupies |
protected List[] | nextLayerConnectedCells
A cached version of the cells this cell connects to on the next layer up |
protected List[] | previousLayerConnectedCells
A cached version of the cells this cell connects to on the next layer down |
int[] | temp
Temporary variable for general use. |
double | width
The width of this cell |
double[] | x
The x position of this cell for each layer it occupies |
double[] | y
The y position of this cell for each layer it occupies |
Method Summary | |
---|---|
abstract int | getGeneralPurposeVariable(int layer)
Gets the value of temp for the specified layer
|
abstract List | getNextLayerConnectedCells(int layer)
Returns the cells this cell connects to on the next layer up |
abstract List | getPreviousLayerConnectedCells(int layer)
Returns the cells this cell connects to on the next layer down |
double | getX(int layer)
Gets the value of x on the specified layer |
abstract boolean | isEdge() |
abstract boolean | isVertex() |
abstract void | setGeneralPurposeVariable(int layer, int value)
Set the value of temp for the specified layer
|
void | setX(int layer, double value)
Set the value of x for the specified layer
|
void | setY(int layer, double value)
Set the value of y for the specified layer
|
Parameters: layer the layer relating to a specific entry into temp
Returns: the value for that layer
Parameters: layer the layer this cell is on
Returns: the cells this cell connects to on the next layer up
Parameters: layer the layer this cell is on
Returns: the cells this cell connects to on the next layer down
Parameters: layer the layer to obtain x for
Returns: the value of x on the specified layer
Returns: whether or not this cell is an edge
Returns: whether or not this cell is a node
Parameters: layer the layer relating to a specific entry into temp value the value for that layer
Parameters: layer the layer relating to a specific entry into x[] value the x value for that layer
Parameters: layer the layer relating to a specific entry into y[] value the y value for that layer