-Optional constant that defines the orientation of this layout.
-Optional boolean that specifies if this layout should be deterministic. Default is true.
Specifies if the STYLE_NOEDGESTYLE flag should be set on edges that are modified by the result. Default is true.
A cache of edges whose source terminal is the key
The style to apply between cell layers to edge segments. Default is {@link mxHierarchicalEdgeStyle.POLYLINE}.
A cache of edges whose source terminal is the key
A cache of edges whose source terminal is the key
Whether or not to perform local optimisations and iterate multiple times through the algorithm. Default is true.
Reference to the enclosing mxGraph.
The spacing buffer between unconnected hierarchies.
The spacing buffer added between cell on adjacent layers.
The spacing buffer added between cells on the same layer.
Specifies if the parent location should be maintained, so that the top, left corner stays the same before and after execution of the layout. Default is false for backwards compatibility.
The internal mxGraphHierarchyModel formed of the layout.
Specifies if the parent should be moved if resizeParent is enabled. Default is false.
The position of the root node(s) relative to the laid out graph in.
The distance between each parallel edge on each ranks for long edges. Default is 10.
The parent cell of the layout, if any
The border to be added around the children if the parent is to be resized using resizeParent. Default is 0.
Specifies if the parent should be resized after the layout so that it contains all the child cells.
Holds the array of mxCell that this layout contains.
Whether or not to tighten the assigned ranks of vertices up towards the source cells. Default is true.
Whether or not to drill into child cells and layout in reverse group order. This also cause the layout to navigate edges whose terminal vertices have different parents but are in the same ancestry chain. Default is true.
Boolean indicating if the bounding box of the label should be used if its available. Default is true.
Shortcut to mxGraph.updateGroupBounds with moveGroup set to true.
Executes the crossing stage using mxMedianHybridCrossingReduction.
Executes the cycle stage using mxMinimumCycleRemover.
Creates an array of descendant cells
Returns all visible children in the given parent which do not have incoming edges. If the result is empty then the children with the maximum difference between incoming and outgoing edges are returned. This takes into account edges that are being promoted to the given root due to invisible children or collapsed cells.
-mxCell whose children should be checked.
-array of vertices to limit search to
Returns the constraint for the given key and cell. The optional edge and source arguments are used to return inbound and outgoing routing- constraints for the given edge and vertex. This implementation always returns the value for the given key in the style of the given cell.
Key of the constraint to be returned.
mxCell whose constraint should be returned.
Optional mxCell that represents the connection whose constraint should be returned. Default is null.
Optional boolean that specifies if the connection is incoming or outgoing. Default is null.
Returns the graph that this layout operates on.
Returns the internal mxGraphHierarchyModel for this layout algorithm.
Returns an mxRectangle that defines the bounds of the given cell or the bounding box if useBoundingBox is true.
Implements first stage of a Sugiyama layout.
Notified when a cell is being moved in a parent that has automatic layout to update the cell state (eg. index) so that the outcome of the layout will position the vertex as close to the point (x, y) as possible.
Empty implementation.
mxCell which has been moved.
X-coordinate of the new cell location.
Y-coordinate of the new cell location.
Executes the placement stage using mxCoordinateAssignment.
The API method used to exercise the layout upon the graph description and produce a separate description of the vertex position and edge routing changes made. It runs each stage of the layout that has been created.
Disables or enables the edge style of the given edge.
Disables or enables orthogonal end segments of the given edge.
Sets the new position of the given cell taking into account the size of the bounding box if useBoundingBox is true. The change is only carried out if the new location is not equal to the existing location, otherwise the geometry is not replaced with an updated instance. The new or old bounds are returned (including overlapping labels).
mxCell whose geometry is to be set.
Integer that defines the x-coordinate of the new location.
Integer that defines the y-coordinate of the new location.
Traverses the (directed) graph invoking the given function for each visited vertex and edge. The function is invoked with the current vertex and the incoming edge as a parameter. This implementation makes sure each vertex is only visited once. The function may return false if the traversal should stop at the given vertex.
-mxCell that represents the vertex where the traversal starts.
-boolean indicating if edges should only be traversed from source to target. Default is true.
-Optional mxCell that represents the incoming edge. This is null for the first step of the traversal.
Generated using TypeDoc
-Reference to the enclosing mxGraph.