C

LayoutStageBase
abstract

Abstract base class implementing ILayoutStage that handles the management of the coreLayout.
Inheritance Hierarchy

Remarks

Subclasses of this stage can use the provided methods, such that the management of the coreLayout and the enabled state do not need to be considered explicitly.

Default Values of Properties

NameDefault
coreLayoutnull

Members

Show:

Constructors

Initializes a new LayoutStageBase instance.
This constructor will only be called by subclasses and optionally initializes the coreLayout field.
protected

Parameters

coreLayout?: ILayoutAlgorithm | null
The core layout algorithm. The default value is null.

Properties

Gets or sets the core ILayoutAlgorithm that is wrapped by this stage.
Gets or sets a value that determines whether this stage should do anything but execute the coreLayout.

By default, when constructed, stages should be enabled. Users may disable a stage's functionality by setting this property to false.

Stages that can guarantee that the graph will not change can choose to not even execute the coreLayout when disabled.

final

Methods

Implementation of the ILayoutAlgorithm interface and main entry point for the layout calculation.
This implementation checks the enabled state and when it's not enabled, will delegate to the coreLayout, directly. When the stage is enabled, all the work will be delegated to applyLayoutImpl, instead.
final

Parameters

graph: LayoutGraph
The graph to apply the layout to.
Abstract method that performs the actual implementation when the stage is enabled