C

LayoutStageBase
abstract

Abstract base class implementing ILayoutStage that handles the management of the coreLayout.
ImplementsInheritance 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

See Also

Developer's Guide

API

LayoutStageStack

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
The core layout algorithm. The default value is null.

Properties

Gets or sets the core ILayoutAlgorithm that is wrapped by this stage.
final

Property Value

the core layout routine

Default Value

The default value is: null
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
Subclasses don't need to check the enabled field, because applyLayout will only invoke this method on enabled instances. Implementations should call applyLayout of the coreLayout between pre- and postprocessing steps as appropriate for the stage. applyLayout only invokes the core algorithm when the stage is disabled.
protectedabstract

Parameters

graph: LayoutGraph

See Also

Developer's Guide

Overridden in

GenericLabeling.applyLayoutImpl, AlignmentStage.applyLayoutImpl, BendSubstitutionStage.applyLayoutImpl, ComponentLayout.applyLayoutImpl, ContextModificationStage.applyLayoutImpl, CurveFittingStage.applyLayoutImpl, GenericLayoutGridStage.applyLayoutImpl, GivenCoordinatesLayout.applyLayoutImpl, GroupHidingStage.applyLayoutImpl, LayoutAnchoringStage.applyLayoutImpl, LineWrappingStage.applyLayoutImpl, MinimumNodeSizeStage.applyLayoutImpl, OrientationStage.applyLayoutImpl, PlaceNodesAtBarycenterStage.applyLayoutImpl, PortPlacementStage.applyLayoutImpl, RecursiveGroupLayout.applyLayoutImpl, RemoveCollinearBendsStage.applyLayoutImpl, RemoveOverlapsStage.applyLayoutImpl, ReverseEdgesStage.applyLayoutImpl, SubgraphLayoutStage.applyLayoutImpl, TemporaryGroupInsertionStage.applyLayoutImpl, MultiPageLayout.applyLayoutImpl, PartialLayout.applyLayoutImpl, BundledEdgeRouter.applyLayoutImpl, CurveRoutingStage.applyLayoutImpl, EdgeRouter.applyLayoutImpl, OctilinearRoutingStage.applyLayoutImpl, OrganicEdgeRouter.applyLayoutImpl, ParallelEdgeRouter.applyLayoutImpl, SelfLoopRouter.applyLayoutImpl, StraightLineEdgeRouter.applyLayoutImpl, TreeReductionStage.applyLayoutImpl