documentationfor yFiles for HTML 2.6

OrthogonalSegmentDistributionStage

OrthogonalSegmentDistributionStage distributes overlapping edge segments of orthogonally routed edges.

Inheritance Hierarchy
LayoutStageBase
OrthogonalSegmentDistributionStage
Implemented Interfaces

Remarks

The edge segments are assigned to the so-called channels within which they are distributed. Those channels are defined by the surrounding graph elements.

The algorithm will not distribute the segments, whose endpoints connect to a node using a port that has a strong PortConstraint or a fixed PortCandidate.

Features

It is possible to define a preferred distance between distributed edge segments. This distance will only be applied if there is enough space in the according channel. In the case where there is not enough space, the preferred distance may be reduced for the edges. If the layout algorithm is not allowed to reduce the preferred distance, these edges won't be distributed.

Edges can be distributed on grid coordinates. The grid can only be considered if there is enough space in the according channel for at least as many grid lines as the number of segments. In the case where there is not enough space, the grid spacing may be reduced in this channel. If the layout algorithm is not allowed to reduce the grid spacing, these edges won't be distributed.

Method lockFirstAndLastSegment can be used to guarantee that the first and last segment of an edge won't be distributed. So, ports can easily be maintained without setting explicit strong PortConstraints or fixed PortCandidates.

Default Values of Properties

affectedEdgesDpKeyDEFAULT_AFFECTED_EDGES_DP_KEY
flexibleGridSpacingtrueThe layout algorithm is allowed to reduce the grid spacing.
flexiblePreferredDistancetrueThe preferred distance will be reduced if necessary.
gridRoutingfalseEdges are distributed where there is enough space.
gridSpacing10
lockFirstAndLastSegmentfalseThe first and last segments will be distributed.
preferredDistance10.0

Type Details

yfiles module
router-other
yfiles-umd modules
layout-familytree, layout-multipage, layout-orthogonal-compact, layout, router-bus, router-other
Legacy UMD name
yfiles.router.OrthogonalSegmentDistributionStage

See Also

OrthogonalSegmentDistributionStage is not capable of moving nodes. Hence, edges are only distributed if they keep the aforementioned settings or the layout algorithm is allowed to adjust those settings.

Constructors

Properties

Methods

Constants