public class mxGraphHierarchyNode extends mxGraphAbstractHierarchyCell
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
cell
The graph cell this object represents.
|
java.util.Collection<mxGraphHierarchyEdge> |
connectsAsSource
Collection of hierarchy edges that have this node as a source
|
java.util.Collection<mxGraphHierarchyEdge> |
connectsAsTarget
Collection of hierarchy edges that have this node as a target
|
static java.util.Collection<mxGraphHierarchyEdge> |
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 |
---|
mxGraphHierarchyNode(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<mxGraphAbstractHierarchyCell> |
getNextLayerConnectedCells(int layer)
Returns the cells this cell connects to on the next layer up
|
java.util.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
|
getX, setX, setY
public static java.util.Collection<mxGraphHierarchyEdge> emptyConnectionMap
public java.lang.Object cell
public java.util.Collection<mxGraphHierarchyEdge> connectsAsTarget
public java.util.Collection<mxGraphHierarchyEdge> connectsAsSource
public int[] hashCode
public mxGraphHierarchyNode(java.lang.Object cell)
cell
- the real graph cell this node representspublic int getRankValue()
public java.util.List<mxGraphAbstractHierarchyCell> getNextLayerConnectedCells(int layer)
getNextLayerConnectedCells
in class mxGraphAbstractHierarchyCell
layer
- the layer this cell is onpublic java.util.List<mxGraphAbstractHierarchyCell> getPreviousLayerConnectedCells(int layer)
getPreviousLayerConnectedCells
in class mxGraphAbstractHierarchyCell
layer
- the layer this cell is onpublic 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 temppublic 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)
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.