documentationfor yFiles for HTML 2.6

LayoutMultiplexer

A LayoutMultiplexer delegates its layout calls to a core layout algorithm that is dynamically chosen at runtime by inspecting the nodes of the input graph.

Inheritance Hierarchy
LayoutStageBase
LayoutMultiplexer
Implemented Interfaces

Remarks

If a IDataProvider is registered with the given graph using the look-up key LAYOUT_DP_KEY, it is used for retrieving the ILayoutAlgorithm objects that are stored for the graph's nodes. If no such IDataProvider is registered, this layout stage's core layout algorithm (if any) is used for the layout calculation of all nodes.

Note that the first non-null ILayoutAlgorithm instance retrieved from the IDataProvider is used for all nodes.

The main purpose of this class is to enable the use of individual layout algorithms for different components (when used as the core layout algorithm of ComponentLayout) or for the contents of group nodes (when used as the core layout algorithm of RecursiveGroupLayout).

Default Values of Properties

coreLayoutnull

Type Details

yfiles module
layout-core
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.layout.LayoutMultiplexer

See Also

Constructors

Properties

Methods

Constants