The ForceBasedLayoutAlgorithm type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| ForceBasedLayoutAlgorithm |
Methods
| Name | Description | |
|---|---|---|
| GetStartNodes |
Returns a list of 'start nodes' based on the number of inbound connections on each node.
(Inherited from LayoutAlgorithmBase.) | |
| IsIncluded |
Returns whether or not the given IDiagramNode should be affected by this layout algorithm.
(Inherited from LayoutAlgorithmBase.) | |
| Run |
Runs this force based layout algorithm.
(Overrides LayoutAlgorithmBase..::.Run(IDiagramModel).) | |
| SetSelectedNode |
Notifies the ForceBasedLayoutAlgorithm of the node which is currently selected in the diagram.
This should be set before calling the Run(IDiagramModel) method so that the algorithm
doesn't affect the node that the user may be dragging.
|
Properties
| Name | Description | |
|---|---|---|
| Damping |
Gets or sets the force damping. This should be a value between 0 and 1. Low values produce smooth animations and high values allow for springy animations.
The default is 0.5
| |
| Info |
Gets or sets the ILayoutAlgorithmInfo used to provide additional diagram specific logic.
(Inherited from LayoutAlgorithmBase.) |