com.jgraph.layout.hierarchical.model
public class JGraphHierarchyNode extends JGraphAbstractHierarchyCell
Field Summary | |
---|---|
Object | cell
The graph cell this object represents. |
int | cellType
For future use |
Collection | connectsAsSource
Collection of hierarchy edges that have this node as a source |
Collection | connectsAsTarget
Collection of hierarchy edges that have this node as a target |
static int | CELL_TYPE_BRANCH |
static int | CELL_TYPE_END |
static int | CELL_TYPE_JOIN |
static int | CELL_TYPE_NONE |
static int | CELL_TYPE_START |
static Collection | emptyConnectionMap
Shared empty connection map to return instead of null in applyMap. |
int[] | hashCode
Assigns a unique hashcode for each node. |
Constructor Summary | |
---|---|
JGraphHierarchyNode(Object cell)
Constructs an internal node to represent the specified real graph cell |
Method Summary | |
---|---|
int | getGeneralPurposeVariable(int layer)
Gets the value of temp for the specified layer
|
List | getNextLayerConnectedCells(int layer)
Returns the cells this cell connects to on the next layer up |
List | getPreviousLayerConnectedCells(int layer)
Returns the cells this cell connects to on the next layer down |
int | getRankValue()
Returns the integer value of the layer that this node resides in |
boolean | isAncestor(JGraphHierarchyNode otherNode) |
boolean | isEdge() |
boolean | isVertex() |
void | setGeneralPurposeVariable(int layer, int value)
Set the value of temp for the specified layer
|
Parameters: cell the real graph cell this node represents
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
Returns: the integer value of the layer that this node resides in
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