ReverseEdgesStage selectively reverses edges in a graph, while keeping the layout and label positions of the reversed edges as close to the pre-reversal layout and positions as possible.
Implements
- I
- I
Remarks
In addition, it exchanges the source and target values of the reversed edges of the following properties:
- port candidates (see sourcePortCandidates and targetPortCandidates)
- port group IDs (see sourcePortGroupIds and targetPortGroupIds)
- port alignment IDs (see sourcePortAlignmentIds and targetPortAlignmentIds)
- edge group IDs (see sourceGroupIds and targetGroupIds)
Default Values of Properties
| Name | Default |
|---|---|
| coreLayout | null |
See Also
Developer's Guide
Members
Show:
Constructors
Creates a new ReverseEdgesStage instance with an optional coreLayout.
Creates a new ReverseEdgesStage instance with an optional coreLayout.
Properties
Gets or sets the core ILayoutAlgorithm that is wrapped by this stage.
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
Defined in
LayoutStageBase.coreLayoutGets or sets a value that determines whether this stage should do anything but execute the coreLayout.
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
Defined in
LayoutStageBase.enabledMethods
Implementation of the ILayoutAlgorithm interface and main entry point for the layout calculation.
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.
Defined in
LayoutStageBase.applyLayoutReverses all selected edges before calling the coreLayout and restores the original edge direction after the core layout algorithm has finished.
Reverses all selected edges before calling the coreLayout and restores the original edge direction after the core layout algorithm has finished.
Constants
All constants are filtered. Go to Filters.