Packagecom.yworks.graph.model
Interfacepublic interface IEdgePortCandidateProvider
Implementors AllCandidatesEdgePortCandidateProvider, CurrentEdgePortsCandidateProvider, FoldedGraphEdgeChainLink_WrappingProvider

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

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



Public Methods
 MethodDefined By
  
Returns all source port candidates that may be used for the edge.
IEdgePortCandidateProvider
  
Returns all target port candidates that may be used for the edge.
IEdgePortCandidateProvider
Method Detail
getSourcePortCandidates()method
public function getSourcePortCandidates(context:IInputModeContext):Iterable

Returns all source port candidates that may be used for the edge.

The iterable may contain valid, invalid and dynamic port candidates.

Parameters

context:IInputModeContext — The context for which the candidates should be provided.

Returns
Iterable — An iterable over all source port candidates that are associated with the current context edge.
getTargetPortCandidates()method 
public function getTargetPortCandidates(context:IInputModeContext):Iterable

Returns all target port candidates that may be used for the edge.

The iterable may contain valid, invalid and dynamic port candidates.

Parameters

context:IInputModeContext — The context for which the candidates should be provided.

Returns
Iterable — An iterable over all target port candidates that are associated with the current context edge.