LayoutSelector class
Network family — class
Layout selector component that provides controls for choosing and applying different graph layout algorithms. Supports force-directed, circular, hierarchical, and other layout types.
Members
| Member | Kind | Description |
|---|---|---|
LayoutAlgorithm SelectedAlgorithm | Property | Gets or sets the currently selected layout algorithm. |
List<LayoutAlgorithm> AvailableAlgorithms | Property | Gets the list of available layout algorithms. |
LayoutParameters Parameters | Property | Gets or sets the layout parameters. |
bool IsCalculating | Property | Gets or sets whether the layout is currently being calculated. |
bool ShowOptions | Property | Gets or sets whether to show layout options. |
event EventHandler<LayoutChangedEventArgs> LayoutChanged | Event | Event raised when the layout algorithm changes. |
event EventHandler<LayoutParametersChangedEventArgs> ParametersChanged | Event | Event raised when layout parameters change. |
LayoutSelector() | Method | Initializes a new instance of the LayoutSelector class. |
void SetAlgorithm(LayoutAlgorithm algorithm) | Method | Sets the layout algorithm. The layout algorithm to use. |
void ApplyLayout(List<NetworkNode> nodes, List<NetworkLink> links, SKRect bounds) | Method | Applies the current layout to the given nodes. The nodes to layout. The links between nodes. The bounds to layout within. |