documentationfor yFiles for HTML 2.6

IPortCandidateProvider

This interface is used to provide IPortCandidates for a specific IPortOwner.

Inheritance Hierarchy
IPortCandidateProvider

Remarks

It is used in the context of the items that will later become the owner (IPortOwner) of the ports obtained from the candidates. They are mainly used during edge creation where there is no real edge yet (only the dummy edge) and thus they need to use the opposite IPortCandidate to understand the context.

Implementations of this interface may be queried using the lookup method of IPortOwner implementations like INode.

Note that this interface is similar to the interface IEdgeReconnectionPortCandidateProvider 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

Port Candidate Provider
Shows how edge creation can be customized.

Type Details

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

See Also

Methods

Constants

Static Methods