Package | com.yworks.graph.model |
Class | public class DefaultEdgePortsCandidateProvider |
Inheritance | DefaultEdgePortsCandidateProvider CurrentEdgePortsCandidateProvider Object |
IEdgePortCandidateProvider
interface that returns the candidates provided by the
source and target node's IPortCandidateProvider
implementations
or the existing edge's port, if no such provider is registered.
This implementation uses the lookup mechanism of the nodes to query the providers.
Method | Defined By | ||
---|---|---|---|
DefaultEdgePortsCandidateProvider | |||
[override]
Returns all source port candidates that may be used for the edge. | DefaultEdgePortsCandidateProvider | ||
[override]
Returns all target port candidates that may be used for the edge. | DefaultEdgePortsCandidateProvider |
DefaultEdgePortsCandidateProvider | () | Constructor |
getSourcePortCandidates | () | method |
override 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.
|
Iterable — An iterable over all source port candidates that are associated with the current context edge.
|
getTargetPortCandidates | () | method |
override 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.
|
Iterable — An iterable over all target port candidates that are associated with the current context edge.
|