Packagecom.yworks.graph.model
Classpublic class AllCandidatesEdgePortCandidateProvider
InheritanceAllCandidatesEdgePortCandidateProvider Inheritance Object
Implements IEdgePortCandidateProvider

Simple implementation of the IEdgePortCandidateProvider interface that returns a union of all source port candidates or target port candidates, respectively, of the entities in the graph.

This implementation can be used to allow for relocating an edge's port to any available source or target port in the graph.



Public Methods
 MethodDefined By
  
Returns the union of all source port candidates of the graph's nodes.
AllCandidatesEdgePortCandidateProvider
  
Returns the union of all target port candidates of the graph's nodes.
AllCandidatesEdgePortCandidateProvider
Method Detail
getSourcePortCandidates()method
public function getSourcePortCandidates(context:IInputModeContext):Iterable

Returns the union of all source port candidates of the graph's nodes.

Parameters

context:IInputModeContext — The input mode context

Returns
Iterable — A collection of all source port candidates in the graph.
getTargetPortCandidates()method 
public function getTargetPortCandidates(context:IInputModeContext):Iterable

Returns the union of all target port candidates of the graph's nodes.

Parameters

context:IInputModeContext — The input mode context

Returns
Iterable — A collection of all target port candidates in the graph.