documentationfor yFiles for HTML 3.0.0.3

ContextModificationStage

Temporarily modifies the LayoutGraphContext for the following layout algorithms.

Inheritance Hierarchy
LayoutStageBase
ContextModificationStage
Implemented Interfaces

Remarks

The ContextModificationStage can be used to temporarily hide, replace, or transfer data registered with the LayoutGraphContext using data keys. Common applications for this stage include applying multiple instances of the same ILayoutAlgorithm with e.g. different affected graph elements.

Context data can be hidden by this stage, in which case the coreLayout has no access to the data and resorts to the specified default behavior. Alternatively, the data can be replaced, in which case the coreLayout accesses the specified replacement data instead. In either case, all modifications to the context made by this stage are reversed after the coreLayout has returned.

The modifications to the context are applied in the same order in which they are added to this ContextModificationStage, so it is possible to, for example, transfer the data registered with one key to another and then hide the data on the original key afterward.

Type Details

yFiles module
algorithms

Constructors

Properties

Methods