This class calculates the sequence of the nodes within each layer using the nodes' coordinates.
Implements
- I
Remarks
For layout orientation 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 fixedElementsSequencer and fromScratchSequencer respectively.
Members
No filters for this type
Constructors
Creates a new FromSketchSequencer instance.
Creates a new FromSketchSequencer instance.
Methods
Calculates the sequence of the nodes within each layer using the nodes' coordinates.
Calculates the sequence of the nodes within each layer using the nodes' coordinates.
This method is called by HierarchicalLayoutCore and finally writes back the calculated sequence using method 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.