|
mxGraph 1.12.0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell com.mxgraph.layout.hierarchical.model.mxGraphHierarchyNode
public class mxGraphHierarchyNode
An abstraction of an internal node in the hierarchy layout
Field Summary | |
---|---|
Object |
cell
The graph cell this object represents. |
Collection<mxGraphHierarchyEdge> |
connectsAsSource
Collection of hierarchy edges that have this node as a source |
Collection<mxGraphHierarchyEdge> |
connectsAsTarget
Collection of hierarchy edges that have this node as a target |
static Collection<mxGraphHierarchyEdge> |
emptyConnectionMap
Shared empty connection map to return instead of null in applyMap. |
int[] |
hashCode
Assigns a unique hashcode for each node. |
Fields inherited from class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell |
---|
height, maxRank, minRank, nextLayerConnectedCells, previousLayerConnectedCells, temp, width, x, y |
Constructor Summary | |
---|---|
mxGraphHierarchyNode(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<mxGraphAbstractHierarchyCell> |
getNextLayerConnectedCells(int layer)
Returns the cells this cell connects to on the next layer up |
List<mxGraphAbstractHierarchyCell> |
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(mxGraphHierarchyNode otherNode)
|
boolean |
isEdge()
|
boolean |
isVertex()
|
void |
setGeneralPurposeVariable(int layer,
int value)
Set the value of temp for the specified layer |
Methods inherited from class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell |
---|
getX, setX, setY |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Collection<mxGraphHierarchyEdge> emptyConnectionMap
public Object cell
public Collection<mxGraphHierarchyEdge> connectsAsTarget
public Collection<mxGraphHierarchyEdge> connectsAsSource
public int[] hashCode
Constructor Detail |
---|
public mxGraphHierarchyNode(Object cell)
cell
- the real graph cell this node representsMethod Detail |
---|
public int getRankValue()
public List<mxGraphAbstractHierarchyCell> getNextLayerConnectedCells(int layer)
getNextLayerConnectedCells
in class mxGraphAbstractHierarchyCell
layer
- the layer this cell is on
public List<mxGraphAbstractHierarchyCell> getPreviousLayerConnectedCells(int layer)
getPreviousLayerConnectedCells
in class mxGraphAbstractHierarchyCell
layer
- the layer this cell is on
public boolean isEdge()
isEdge
in class mxGraphAbstractHierarchyCell
public boolean isVertex()
isVertex
in class mxGraphAbstractHierarchyCell
public int getGeneralPurposeVariable(int layer)
getGeneralPurposeVariable
in class mxGraphAbstractHierarchyCell
layer
- the layer relating to a specific entry into temp
public void setGeneralPurposeVariable(int layer, int value)
setGeneralPurposeVariable
in class mxGraphAbstractHierarchyCell
layer
- the layer relating to a specific entry into tempvalue
- the value for that layerpublic boolean isAncestor(mxGraphHierarchyNode otherNode)
|
mxGraph 1.12.0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |