This class calculates the sequence of the nodes within each layer using the nodes' coordinates.
Implements
Inheritance Hierarchy
Remarks
For layout orientation LayoutOrientation.TOP_TO_BOTTOM, the order corresponds to that obtained when sorting the nodes according to their x-coordinate.
An instance of this class can be set to HierarchicalLayout using property HierarchicalLayoutCore.fixedElementsSequencer and HierarchicalLayoutCore.fromScratchSequencer respectively.
Members
No filters for this type
Constructors
Creates a new FromSketchSequencer instance.
Creates a new FromSketchSequencer instance.
Methods
This method is called by HierarchicalLayoutCore and finally writes back the calculated sequence using method HierarchicalLayoutLayer.setNodeOrder.
Parameters
- graph: LayoutGraph
- the input graph
- layoutContext: HierarchicalLayoutContext
- The HierarchicalLayoutContext providing access to context information about the nodes and edges of the graph, as well as the ItemFactory used for creating and destroying helper structures.