This class implements the basis of a generic tree layout algorithm.
Namespace: yWorks.yFiles.Layout.TreeAssembly: yWorks.yFilesSilverlight.Algorithms (in yWorks.yFilesSilverlight.Algorithms.dll) Version: 2.1.0.2
Syntax
| C# |
|---|
public class GenericTreeLayouter : CanonicMultiStageLayouter |
| Visual Basic |
|---|
Public Class GenericTreeLayouter _ Inherits CanonicMultiStageLayouter |
Remarks
This class implements the basis of a generic tree layout algorithm.
It can be customized easily to control the
placement and order of child nodes, the edge routing and port assignment on a per node basis.
Using IDataProvider s, one can specify objects that implement the INodePlacer interface. Those instances are responsible for the arrangement of the subtrees of the node's they are registered with and the routing of the connecting edges.
Likewise instances of IPortAssignment are responsible for the assignment of the ports and IComparer instances can be used to sort the outgoing edges of each node.
Customization of this class should be done via own implementations of the INodePlacer , possibly IPortAssignment , and IComparer instances. Here is an example output that shows multiple different configurations in one layout using DefaultNodePlacer instances:
Using IDataProvider s, one can specify objects that implement the INodePlacer interface. Those instances are responsible for the arrangement of the subtrees of the node's they are registered with and the routing of the connecting edges.
Likewise instances of IPortAssignment are responsible for the assignment of the ports and IComparer instances can be used to sort the outgoing edges of each node.
Customization of this class should be done via own implementations of the INodePlacer , possibly IPortAssignment , and IComparer instances. Here is an example output that shows multiple different configurations in one layout using DefaultNodePlacer instances:

Inheritance Hierarchy
System..::..Object
yWorks.yFiles.Layout..::..CanonicMultiStageLayouter
yWorks.yFiles.Layout.Tree..::..GenericTreeLayouter
yWorks.yFiles.Layout..::..CanonicMultiStageLayouter
yWorks.yFiles.Layout.Tree..::..GenericTreeLayouter