public class mxGraphHierarchyEdge extends mxGraphAbstractHierarchyCell
Modifier and Type | Field | Description |
---|---|---|
java.util.List<java.lang.Object> |
edges |
The graph edge(s) this object represents.
|
protected boolean |
isReversed |
Whether or not the direction of this edge has been reversed
internally to create a DAG for the hierarchical layout
|
mxGraphHierarchyNode |
source |
The node this edge is sourced at
|
mxGraphHierarchyNode |
target |
The node this edge targets
|
height, maxRank, minRank, nextLayerConnectedCells, previousLayerConnectedCells, temp, width, x, y
Constructor | Description |
---|---|
mxGraphHierarchyEdge(java.util.List<java.lang.Object> edges) |
Constructs a hierarchy edge
|
Modifier and Type | Method | 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
|
void |
invert() |
Inverts the direction of this internal edge(s)
|
boolean |
isEdge() |
|
boolean |
isReversed() |
|
boolean |
isVertex() |
|
void |
setGeneralPurposeVariable(int layer,
int value) |
Set the value of temp for the specified layer
|
void |
setReversed(boolean isReversed) |
getX, setX, setY
public java.util.List<java.lang.Object> edges
public mxGraphHierarchyNode source
public mxGraphHierarchyNode target
protected boolean isReversed
public mxGraphHierarchyEdge(java.util.List<java.lang.Object> edges)
edges
- a list of real graph edges this abstraction representspublic void invert()
public boolean isReversed()
public void setReversed(boolean isReversed)
isReversed
- The isReversed to set.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 layerCopyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.