Graph navigator component that provides interactive controls for exploring network graphs. Includes zoom, pan, node selection, and navigation history.

Members

MemberKindDescription
float ZoomLevelPropertyGets or sets the current zoom level (1.0 = 100%).
float MinZoomPropertyGets or sets the minimum zoom level.
float MaxZoomPropertyGets or sets the maximum zoom level.
float PanOffsetXPropertyGets or sets the pan offset X.
float PanOffsetYPropertyGets or sets the pan offset Y.
NetworkNode SelectedNodePropertyGets the currently selected node.
List<NetworkNode> NavigationHistoryPropertyGets the list of navigation history (node selections).
bool IsPanModePropertyGets or sets whether the navigator is in pan mode.
bool ShowControlsPropertyGets or sets whether to show navigation controls.
float ZoomStepPropertyGets or sets the zoom step size.
event EventHandler<NodeSelectionEventArgs> NodeSelectedEventEvent raised when the selected node changes.
event EventHandler<ViewChangedEventArgs> ViewChangedEventEvent raised when the view changes (zoom/pan).
GraphNavigator()MethodInitializes a new instance of the GraphNavigator class.
void ZoomIn()MethodZooms in by one step.
void ZoomOut()MethodZooms out by one step.
void SetZoom(float zoom)MethodSets the zoom level. The new zoom level.
void ResetView()MethodResets the view to default zoom and pan.
void Pan(float deltaX, float deltaY)MethodPans the view by the specified amount. The change in X position. The change in Y position.
void CenterOnNode(NetworkNode node)MethodCenters the view on a specific node. The node to center on.
void SelectNode(NetworkNode node)MethodSelects a node and adds it to navigation history. The node to select.
void GoBack()MethodGoes back to the previously selected node.
void ClearHistory()MethodClears the navigation history.

Related