This interface is used by
GenericTreeLayouter
.
Namespace: yWorks.yFiles.Layout.TreeAssembly: yWorks.yFilesWPF.Algorithms (in yWorks.yFilesWPF.Algorithms.dll) Version: 2.2.0.2 (2.2.0.2)
Syntax
| C# |
|---|
public interface INodePlacer |
| Visual Basic |
|---|
Public Interface INodePlacer |
Remarks
This interface is used by
GenericTreeLayouter
. Classes implementing this
interface are responsible for the arrangement of a root node and all of its subtrees.
Subtrees are represented as shapes with a connecting edge to the root of the subtree.
Instances have to:
Instances have to:
- arrange the subtree shapes and the root node (only the relative position matters, shapes can be placed at any absolute location, GenericTreeLayouter will perform the final alignment).
- perform the edge routing from the root node to all child nodes with respect to the connector provided by the subtree shapes
- calculate the union of the subtree shapes and the shape of the root node as well as any edges added in this run
- initialize the connector of the root node with respect to the preferred connection direction
- return the subtree shape