C

PortsHandleProvider

An implementation of an IHandleProvider that returns all handles in the lookup of the ports owned by the given owner.
ImplementsInheritance Hierarchy

Remarks

Using this class to display port handles will result in exceptions if the underlying port instances are removed from the graph while the handles are displayed. This can happen, for example, through Undo or if ports are removed programmatically with remove. In that case, you need to query the handles again before interacting with the graph, for example by temporarily unselecting and reselecting the port-owning nodes.

Members

Show:

Constructors

Creates an instance using the given owner as the provider for the ports.

Parameters

owner: IPortOwner
The IPortOwner that will serve as the provider for the ports.

Methods

Retrieves the handle implementation from the port's lookup.
protected

Parameters

port: IPort
The IPort from which the IHandle should be retrieved using its lookup.

Return Value

IHandle
The IHandle retrieved from the port lookup, or null if no handle is found.
Returns a collection of zero or more IHandle implementations that are associated with the ports of this context.
final

Parameters

context: IInputModeContext

Return Value

IEnumerable<IHandle>
A collection of handles.

Fields

The owner of the ports.
protectedfinal