Class mxGraphHierarchyEdge
- java.lang.Object
-
- com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
-
- com.mxgraph.layout.hierarchical.model.mxGraphHierarchyEdge
-
public class mxGraphHierarchyEdge extends mxGraphAbstractHierarchyCell
An abstraction of a hierarchical edge for the hierarchy layout
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<java.lang.Object>edgesThe graph edge(s) this object represents.protected booleanisReversedWhether or not the direction of this edge has been reversed internally to create a DAG for the hierarchical layoutmxGraphHierarchyNodesourceThe node this edge is sourced atmxGraphHierarchyNodetargetThe node this edge targets-
Fields inherited from class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
height, maxRank, minRank, nextLayerConnectedCells, previousLayerConnectedCells, temp, width, x, y
-
-
Constructor Summary
Constructors Constructor Description mxGraphHierarchyEdge(java.util.List<java.lang.Object> edges)Constructs a hierarchy edge
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetGeneralPurposeVariable(int layer)Gets the value of temp for the specified layerjava.util.List<mxGraphAbstractHierarchyCell>getNextLayerConnectedCells(int layer)Returns the cells this cell connects to on the next layer upjava.util.List<mxGraphAbstractHierarchyCell>getPreviousLayerConnectedCells(int layer)Returns the cells this cell connects to on the next layer downvoidinvert()Inverts the direction of this internal edge(s)booleanisEdge()booleanisReversed()booleanisVertex()voidsetGeneralPurposeVariable(int layer, int value)Set the value of temp for the specified layervoidsetReversed(boolean isReversed)-
Methods inherited from class com.mxgraph.layout.hierarchical.model.mxGraphAbstractHierarchyCell
getX, setX, setY
-
-
-
-
Field Detail
-
edges
public java.util.List<java.lang.Object> edges
The graph edge(s) this object represents. Parallel edges are all grouped together within one hierarchy edge.
-
source
public mxGraphHierarchyNode source
The node this edge is sourced at
-
target
public mxGraphHierarchyNode target
The node this edge targets
-
isReversed
protected boolean isReversed
Whether or not the direction of this edge has been reversed internally to create a DAG for the hierarchical layout
-
-
Method Detail
-
invert
public void invert()
Inverts the direction of this internal edge(s)
-
isReversed
public boolean isReversed()
- Returns:
- Returns the isReversed.
-
setReversed
public void setReversed(boolean isReversed)
- Parameters:
isReversed- The isReversed to set.
-
getNextLayerConnectedCells
public java.util.List<mxGraphAbstractHierarchyCell> getNextLayerConnectedCells(int layer)
Returns the cells this cell connects to on the next layer up- Specified by:
getNextLayerConnectedCellsin classmxGraphAbstractHierarchyCell- Parameters:
layer- the layer this cell is on- Returns:
- the cells this cell connects to on the next layer up
-
getPreviousLayerConnectedCells
public java.util.List<mxGraphAbstractHierarchyCell> getPreviousLayerConnectedCells(int layer)
Returns the cells this cell connects to on the next layer down- Specified by:
getPreviousLayerConnectedCellsin classmxGraphAbstractHierarchyCell- Parameters:
layer- the layer this cell is on- Returns:
- the cells this cell connects to on the next layer down
-
isEdge
public boolean isEdge()
- Specified by:
isEdgein classmxGraphAbstractHierarchyCell- Returns:
- whether or not this cell is an edge
-
isVertex
public boolean isVertex()
- Specified by:
isVertexin classmxGraphAbstractHierarchyCell- Returns:
- whether or not this cell is a node
-
getGeneralPurposeVariable
public int getGeneralPurposeVariable(int layer)
Gets the value of temp for the specified layer- Specified by:
getGeneralPurposeVariablein classmxGraphAbstractHierarchyCell- Parameters:
layer- the layer relating to a specific entry into temp- Returns:
- the value for that layer
-
setGeneralPurposeVariable
public void setGeneralPurposeVariable(int layer, int value)Set the value of temp for the specified layer- Specified by:
setGeneralPurposeVariablein classmxGraphAbstractHierarchyCell- Parameters:
layer- the layer relating to a specific entry into tempvalue- the value for that layer
-
-