Layout selector component that provides controls for choosing and applying different graph layout algorithms. Supports force-directed, circular, hierarchical, and other layout types.

Members

MemberKindDescription
LayoutAlgorithm SelectedAlgorithmPropertyGets or sets the currently selected layout algorithm.
List<LayoutAlgorithm> AvailableAlgorithmsPropertyGets the list of available layout algorithms.
LayoutParameters ParametersPropertyGets or sets the layout parameters.
bool IsCalculatingPropertyGets or sets whether the layout is currently being calculated.
bool ShowOptionsPropertyGets or sets whether to show layout options.
event EventHandler<LayoutChangedEventArgs> LayoutChangedEventEvent raised when the layout algorithm changes.
event EventHandler<LayoutParametersChangedEventArgs> ParametersChangedEventEvent raised when layout parameters change.
LayoutSelector()MethodInitializes a new instance of the LayoutSelector class.
void SetAlgorithm(LayoutAlgorithm algorithm)MethodSets the layout algorithm. The layout algorithm to use.
void ApplyLayout(List<NetworkNode> nodes, List<NetworkLink> links, SKRect bounds)MethodApplies the current layout to the given nodes. The nodes to layout. The links between nodes. The bounds to layout within.

Related