Class SymmetricLayoutManager
The SymmetricTreeLayoutManager is a specialization of the and employs a force-directed layout algorithm for laying out the diagram nodes. Where nodes positions by spring, angle and neighbour forces and moved to vector force sum.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class SymmetricLayoutManager : GraphLayoutManager
Remarks
This layout use special force node Syncfusion.Windows.Forms.Diagram.GraphForceNode what added to graphNode tag. LayoutManager GraphLayoutManager
Constructors
SymmetricLayoutManager()
Initializes a new instance of the SymmetricLayoutManager class.
Declaration
public SymmetricLayoutManager()
SymmetricLayoutManager(Model, Single)
Initializes a new instance of the SymmetricLayoutManager class.
Declaration
public SymmetricLayoutManager(Model model, float fVerticalDistance)
Parameters
Type | Name | Description |
---|---|---|
Model | model | The diagram Model. |
System.Single | fVerticalDistance | Specifies the distance between adjacent nodes. |
Properties
MaxIteraction
Gets or sets the max count of iteration.
Declaration
public int MaxIteraction { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The max iteration. |
SpringFactor
Gets or sets the spring factor.
Declaration
public double SpringFactor { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The spring factor. |
SpringLength
Gets or sets the length of the spring.
Declaration
public float SpringLength { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The length of the spring. |
Methods
DoGraphLayout()
Applies the radial directed tree layout strategy on the diagram.
Declaration
protected override void DoGraphLayout()