This class represents an edge router.
Namespace: yWorks.yFiles.Layout.RouterAssembly: yWorks.yFilesSilverlight.Algorithms (in yWorks.yFilesSilverlight.Algorithms.dll) Version: 2.1.0.2
Syntax
| C# |
|---|
public class ChannelEdgeRouter : AbstractLayoutStage |
| Visual Basic |
|---|
Public Class ChannelEdgeRouter _ Inherits AbstractLayoutStage |
Remarks
This class represents an edge router. It combines two strategic steps of edge routing and executes them after each
other. The first strategy is called path finder strategy and will route the edges, potentially with edge overlaps.
The second strategy will then split overlapping edge segments inside their channels and distribute them according to
the specific distribution strategy.
For path finding strategies you can for example use
ChannelEdgeRouter..::..OrthogonalShortestPathPathFinder
or
OrthogonalPatternEdgeRouter
. By default the latter will be used.
One possible implementation of an edge distribution strategy is
OrthogonalSegmentDistributionStage
, which is also used by default.
Note: when exchanging only one of the strategies, make sure, that their algorithms will use the same (sub)set
of graph objects. The strategies bound to this router by default will use key
AffectedEdgesDpKey
to determine
the affected edges.
Inheritance Hierarchy
System..::..Object
yWorks.yFiles.Layout..::..AbstractLayoutStage
yWorks.yFiles.Layout.Router..::..ChannelEdgeRouter
yWorks.yFiles.Layout..::..AbstractLayoutStage
yWorks.yFiles.Layout.Router..::..ChannelEdgeRouter