Package | com.yworks.graph.model |
Interface | public interface IEdgePortCandidateProvider |
Implementors | AllCandidatesEdgePortCandidateProvider, CurrentEdgePortsCandidateProvider, FoldedGraphEdgeChainLink_WrappingProvider |
IPortCandidate
s
for a specific existing IEdge
.
Implementations of this interface can be queried using the lookup
method of an IEdge
implementation.
This interface provides alternative candidates for the IEdge.sourcePort
or
IEdge.targetPort
of an edge.
Method | Defined 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 |
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.
|
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.
|
Iterable — An iterable over all target port candidates that are associated with the current context edge.
|