Class HierarchicLayoutManager
Inherits from GraphLayoutManager. Sort nodes by rank and place nodes to it parent/children relations.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class HierarchicLayoutManager : GraphLayoutManager
Constructors
HierarchicLayoutManager()
Initializes a new instance of the HierarchicLayoutManager class.
Declaration
public HierarchicLayoutManager()
HierarchicLayoutManager(Model, Single, Single, Single)
Initializes a new instance of the HierarchicLayoutManager class.
Declaration
public HierarchicLayoutManager(Model model, float fRotationDegree, float fVerticalOffset, float fHorizontalOffset)
Parameters
Type | Name | Description |
---|---|---|
Model | model | The model. |
System.Single | fRotationDegree | The Rotation degree. |
System.Single | fVerticalOffset | The n vertical offset. |
System.Single | fHorizontalOffset | The n horizontal offset. |
Properties
ParentPosition
Gets or sets the parent position.
Declaration
public ParentPositions ParentPosition { get; set; }
Property Value
Type | Description |
---|---|
ParentPositions | The parent position. |
RotateDirection
Gets or sets the rotate direction.
Declaration
public RotateDirection RotateDirection { get; set; }
Property Value
Type |
---|
RotateDirection |
RotationAngle
Gets or sets the rotation angle for graph.
Declaration
public float RotationAngle { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The rotation angle. |
Methods
DoGraphLayout()
Applies a custom layout management strategy on the diagram.
Declaration
protected override void DoGraphLayout()
Overrides
DoInitXLayout(Graph)
Does the init X layout.
Declaration
protected void DoInitXLayout(Graph graphToSort)
Parameters
Type | Name | Description |
---|---|---|
Graph | graphToSort | The graph to sort. |
ExtractSubGraph(GraphNode, Int32, ref Graph)
Extracts subGraph from specified node.
Declaration
protected void ExtractSubGraph(GraphNode dtgnFrom, int nRank, ref Graph graphToFill)
Parameters
Type | Name | Description |
---|---|---|
GraphNode | dtgnFrom | new graph TopNode. |
System.Int32 | nRank | current Rank. |
Graph | graphToFill | Graph to extract to. |
GetSubGraphDimension(Int32, Int32, Dimension, Graph)
Gets the sub graph dimension.
Declaration
protected float GetSubGraphDimension(int nFromRank, int nToRank, Dimension dimension, Graph graph)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nFromRank | The n from rank. |
System.Int32 | nToRank | The n to rank. |
Dimension | dimension | The dimension. |
Graph | graph | The graph. |
Returns
Type | Description |
---|---|
System.Single | The value |
MakeLayout(Graph)
Performs the graph layout.
Declaration
protected void MakeLayout(Graph graphSorting)
Parameters
Type | Name | Description |
---|---|---|
Graph | graphSorting | The graph. |
NormalizeNodes(ArrayList, Int32)
Declaration
protected virtual void NormalizeNodes(ArrayList nodes, int nRank)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ArrayList | nodes | |
System.Int32 | nRank |