C

FromSketchSequencer

This class calculates the sequence of the nodes within each layer using the nodes' coordinates.
ImplementsInheritance Hierarchy

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.

Initial graph that will be used as sketch Hierarchical layout when the initial graph is used as sketch

Members

No filters for this type

Constructors

Creates a new FromSketchSequencer instance.

Methods

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.