GraphNavigator class
Network family — class
Graph navigator component that provides interactive controls for exploring network graphs. Includes zoom, pan, node selection, and navigation history.
Members
| Member | Kind | Description |
|---|---|---|
float ZoomLevel | Property | Gets or sets the current zoom level (1.0 = 100%). |
float MinZoom | Property | Gets or sets the minimum zoom level. |
float MaxZoom | Property | Gets or sets the maximum zoom level. |
float PanOffsetX | Property | Gets or sets the pan offset X. |
float PanOffsetY | Property | Gets or sets the pan offset Y. |
NetworkNode SelectedNode | Property | Gets the currently selected node. |
List<NetworkNode> NavigationHistory | Property | Gets the list of navigation history (node selections). |
bool IsPanMode | Property | Gets or sets whether the navigator is in pan mode. |
bool ShowControls | Property | Gets or sets whether to show navigation controls. |
float ZoomStep | Property | Gets or sets the zoom step size. |
event EventHandler<NodeSelectionEventArgs> NodeSelected | Event | Event raised when the selected node changes. |
event EventHandler<ViewChangedEventArgs> ViewChanged | Event | Event raised when the view changes (zoom/pan). |
GraphNavigator() | Method | Initializes a new instance of the GraphNavigator class. |
void ZoomIn() | Method | Zooms in by one step. |
void ZoomOut() | Method | Zooms out by one step. |
void SetZoom(float zoom) | Method | Sets the zoom level. The new zoom level. |
void ResetView() | Method | Resets the view to default zoom and pan. |
void Pan(float deltaX, float deltaY) | Method | Pans the view by the specified amount. The change in X position. The change in Y position. |
void CenterOnNode(NetworkNode node) | Method | Centers the view on a specific node. The node to center on. |
void SelectNode(NetworkNode node) | Method | Selects a node and adds it to navigation history. The node to select. |
void GoBack() | Method | Goes back to the previously selected node. |
void ClearHistory() | Method | Clears the navigation history. |