A SequentialLayout allows for chaining multiple layout algorithms.
Remarks
The layout algorithms are invoked one after the other in the order in which they were added to the chain. They all run independently of each other, i.e., they only influence each other by the changed input graph. Hence, the sequence determines the result.
One possible application would be to bundle several layout algorithms and pass a single ILayoutAlgorithm instance to a BufferedLayout.
Type Details
- yfiles module
- layout-core
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.layout.SequentialLayout
Constructors
Creates a new SequentialLayout instance with an empty chain of layout algorithms.
Parameters
A map of options to pass to the method.
- layouts - IList<ILayoutAlgorithm>
The chain of layout algorithms. This option sets the layouts property on the created object.
Properties
Gets or sets the chain of layout algorithms.
See Also
Methods
Appends the given layout algorithm to the end of the chain.
Parameters
A map of options to pass to the method.
- layouter - ILayoutAlgorithm
- the layout algorithm to append
Appends the specified list of layout algorithms to the end of the chain.
Parameters
A map of options to pass to the method.
- layouters - ICollection<ILayoutAlgorithm>
- the list of layout algorithms to append
Executes all layout algorithms in the chain, one after the other.
Remarks
Parameters
A map of options to pass to the method.
- graph - LayoutGraph
- the input graph
See Also
Implements
Clears the current chain of layout algorithms and therefore removes all layout algorithms.