Table of Contents

Class GroupProxyManager

Namespace
FlowGraph.Avalonia
Assembly
FlowGraph.Avalonia.dll

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

getGraph Func<Graph>

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

edgeId string

Returns

ProxyEdgeInfo

GetProxyPorts(string)

Gets all proxy ports for a group.

public IReadOnlyList<ProxyPortInfo> GetProxyPorts(string groupId)

Parameters

groupId string

Returns

IReadOnlyList<ProxyPortInfo>

IsProxyEdge(string)

Checks if an edge is currently using a proxy port.

public bool IsProxyEdge(string edgeId)

Parameters

edgeId string

Returns

bool

IsProxyPort(string, string)

Checks if a port is a proxy port.

public bool IsProxyPort(string nodeId, string portId)

Parameters

nodeId string
portId string

Returns

bool

OnGroupCollapsed(string)

Creates proxy ports and re-routes edges when a group is collapsed.

public void OnGroupCollapsed(string groupId)

Parameters

groupId string

OnGroupExpanded(string)

Removes proxy ports and restores original edges when a group is expanded.

public void OnGroupExpanded(string groupId)

Parameters

groupId string

Events

ProxyStateChanged

Event raised when proxy state changes and re-render is needed.

public event EventHandler? ProxyStateChanged

Event Type

EventHandler