public class JGraphHierarchyNode extends JGraphAbstractHierarchyCell
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
cell
The graph cell this object represents.
|
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 |
int |
cellType
For future use
|
java.util.Collection |
connectsAsSource
Collection of hierarchy edges that have this node as a source
|
java.util.Collection |
connectsAsTarget
Collection of hierarchy edges that have this node as a target
|
static java.util.Collection |
emptyConnectionMap
Shared empty connection map to return instead of null in applyMap.
|
int[] |
hashCode
Assigns a unique hashcode for each node.
|
height, maxRank, minRank, nextLayerConnectedCells, previousLayerConnectedCells, temp, width, x, y
Constructor and Description |
---|
JGraphHierarchyNode(java.lang.Object cell)
Constructs an internal node to represent the specified real graph cell
|
Modifier and Type | Method and Description |
---|---|
int |
getGeneralPurposeVariable(int layer)
Gets the value of temp for the specified layer
|
java.util.List |
getNextLayerConnectedCells(int layer)
Returns the cells this cell connects to on the next layer up
|
java.util.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
|
getX, setX, setY
public static transient java.util.Collection emptyConnectionMap
public static final int CELL_TYPE_NONE
public static final int CELL_TYPE_START
public static final int CELL_TYPE_END
public static final int CELL_TYPE_BRANCH
public static final int CELL_TYPE_JOIN
public java.lang.Object cell
public int cellType
public java.util.Collection connectsAsTarget
public java.util.Collection connectsAsSource
public int[] hashCode
public JGraphHierarchyNode(java.lang.Object cell)
cell
- the real graph cell this node representspublic int getRankValue()
public java.util.List getNextLayerConnectedCells(int layer)
getNextLayerConnectedCells
in class JGraphAbstractHierarchyCell
layer
- the layer this cell is onpublic java.util.List getPreviousLayerConnectedCells(int layer)
getPreviousLayerConnectedCells
in class JGraphAbstractHierarchyCell
layer
- the layer this cell is onpublic boolean isEdge()
isEdge
in class JGraphAbstractHierarchyCell
public boolean isVertex()
isVertex
in class JGraphAbstractHierarchyCell
public int getGeneralPurposeVariable(int layer)
getGeneralPurposeVariable
in class JGraphAbstractHierarchyCell
layer
- the layer relating to a specific entry into temppublic void setGeneralPurposeVariable(int layer, int value)
setGeneralPurposeVariable
in class JGraphAbstractHierarchyCell
layer
- the layer relating to a specific entry into tempvalue
- the value for that layerpublic boolean isAncestor(JGraphHierarchyNode otherNode)
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.