Class ForceDirectedTreeLayoutManager
Represents a class to arrange the nodes and connectors automatically in a Force directed tree layout.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class ForceDirectedTreeLayoutManager : GraphLayoutManager
Remarks
This layout use special force node Syncfusion.Windows.Forms.Diagram.GraphForceNode what added to graphNode tag. LayoutManager GraphLayoutManager
Constructors
ForceDirectedTreeLayoutManager()
Initializes a new instance of the ForceDirectedTreeLayoutManager class.
Declaration
public ForceDirectedTreeLayoutManager()
ForceDirectedTreeLayoutManager(Model, Single)
Initializes a new instance of the ForceDirectedTreeLayoutManager class.
Declaration
public ForceDirectedTreeLayoutManager(Model model, float fVerticalDistance)
Parameters
| Type | Name | Description |
|---|---|---|
| Model | model | The diagram Model. |
| System.Single | fVerticalDistance | Specifies the distance between adjacent nodes. |
Properties
AttractionStrength
Gets or sets the Attraction Strength
Declaration
public double AttractionStrength { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The spring factor. |
MaximumIteration
Gets or sets the maximum count of iteration.
Declaration
public int MaximumIteration { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The max iteration. |
RepulsionStrength
Gets or sets the Repulsion strength.
Declaration
public int RepulsionStrength { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The max iteration. |
Methods
DoGraphLayout()
Applies the radial directed tree layout strategy on the diagram.
Declaration
protected override void DoGraphLayout()