documentationfor yFiles for HTML 2.6

IEdgeReconnectionPortCandidateProvider

This interface can be used to query IPortCandidates for a specific existing IEdge

Inheritance Hierarchy
IEdgeReconnectionPortCandidateProvider

Remarks

As the name implies this is only used in the context of reconnecting existing edges. It is queried for existing edges to find out about possible alternative port candidates that given edge could connect to. It is used during gestures where an edge is reconnected to another port(candidate), i.e. when the source or target port handle of an edge is moved and the source or target port properties of the edge get set to the new IPortCandidates.

Implementations of this interface can be queried using the lookup method of an IEdge implementation. This interface provides alternative candidates for the sourcePort or targetPort of an edge.

Note that this interface is similar to the interface IPortCandidateProvider in the sense that they will both provide IPortCandidate instances in a certain query context. They are used in different query contexts, though. The two interfaces can come together in concrete implementations of IEdgeReconnectionPortCandidateProvider: an edge could potentially be connected to ports at any given IPortOwner and thus the IPortCandidateProvider interface can be queried from the respective IPortOwner that the edge will be reconnected to.

Related Programming Samples

Edge Reconnection
Shows how the reconnection of edge ports can be customized and restricted.

Type Details

yfiles module
view-component
yfiles-umd modules
All view modules
Legacy UMD name
yfiles.input.IEdgeReconnectionPortCandidateProvider

See Also

For folding-enabled graphs it is mandatory that the masterGraph is decorated. Decorating the view graph may result in an exception.

Methods

Constants

Static Methods