documentationfor yFiles for HTML 2.6

GenericPartitionGridStage

This ILayoutStage offers generic support for partition grid structures.

Inheritance Hierarchy
LayoutStageBase
GenericPartitionGridStage
Implemented Interfaces

Remarks

The stage performs the following steps:

  1. First it determines sub-components such that each component only contains nodes associated with the same grid cell. Nodes without associated grid cell are temporarily assigned to a suitable cell.
  2. Now this stage applies the specified core layout algorithm to each sub-component and, afterwards, reassembles the global partition grid structure. Since the sub-components do not contain nodes of different cells, the core layout algorithm doesn't require support for partition grid on its own.
  3. Finally, this stage routes edges that connect nodes of different sub-components by means of the specified inter-edge router. Note that such edges are temporarily hidden during the core layout runs.

Disabling property splitMultiCellComponents allows to switch to a mode where connected components are not split into smaller sub-components. Hence, a component may contain nodes of different partition cells and, thus, the specified core layout algorithm has to support partition grid structures by itself. In this case, this stage doesn't offer a generic partition grid support (since the core layout algorithm already has to support such structures). Instead it may speed up the layout calculation since the core layout algorithm is applied to different smaller graphs instead of a single, larger input graph.

Default Values of Properties

considerLabelstrueNode and edge labels are included in the bounds of the partition cells.
interEdgeRouternullInter-edges are routed as straight lines.
interEdgesDpKeyAFFECTED_EDGES_DP_KEY
splitMultiCellComponentstrueComponents with nodes of different partition cells are split.

Type Details

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

See Also

Constructors

Properties

Methods

Constants