This interface is used by GenericTreeLayouter .

Namespace: yWorks.yFiles.Layout.Tree
Assembly: yWorks.yFilesSilverlight.Algorithms (in yWorks.yFilesSilverlight.Algorithms.dll) Version: 2.4.0.0

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:
  • 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
Instances may modify the subtree shape instances of the subtrees of the current root node and use the subtree shape obtained by the DataProvider as the return value.

See Also