Class GroupProxyManager
Manages proxy ports and edge re-routing when groups are collapsed. When a group is collapsed, edges that cross the group boundary are re-routed to proxy ports on the group, maintaining visual connectivity.
public class GroupProxyManager
- Inheritance
-
GroupProxyManager
- Inherited Members
Constructors
GroupProxyManager(Func<Graph?>)
public GroupProxyManager(Func<Graph?> getGraph)
Parameters
Methods
Clear()
Clears all proxy state (call when graph changes completely).
public void Clear()
GetProxyEdgeInfo(string)
Gets proxy edge info if the edge is proxied.
public ProxyEdgeInfo? GetProxyEdgeInfo(string edgeId)
Parameters
edgeIdstring
Returns
GetProxyPorts(string)
Gets all proxy ports for a group.
public IReadOnlyList<ProxyPortInfo> GetProxyPorts(string groupId)
Parameters
groupIdstring
Returns
IsProxyEdge(string)
Checks if an edge is currently using a proxy port.
public bool IsProxyEdge(string edgeId)
Parameters
edgeIdstring
Returns
IsProxyPort(string, string)
Checks if a port is a proxy port.
public bool IsProxyPort(string nodeId, string portId)
Parameters
Returns
OnGroupCollapsed(string)
Creates proxy ports and re-routes edges when a group is collapsed.
public void OnGroupCollapsed(string groupId)
Parameters
groupIdstring
OnGroupExpanded(string)
Removes proxy ports and restores original edges when a group is expanded.
public void OnGroupExpanded(string groupId)
Parameters
groupIdstring
Events
ProxyStateChanged
Event raised when proxy state changes and re-render is needed.
public event EventHandler? ProxyStateChanged