An implementation of an IHandleProvider that returns all handles in the lookup of the ports owned by the given owner.
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.Type Details
- yFiles module
- view
Constructors
Creates an instance using the given owner as the provider for the ports.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- owner - IPortOwner
- The IPortOwner that will serve as the provider for the ports.
Methods
Returns a collection of zero or more IHandle implementations that are associated with the ports of this context.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - IInputModeContext
- The IInputModeContext.
Returns
- ↪IEnumerable<IHandle>
- A collection of handles.
Implements
Fields
The owner of the ports.