Packagecom.yworks.graph.model
Interfacepublic interface IPortCandidateProvider
ImplementorsAbstractPortCandidateProvider, CompositePortCandidateProvider, EmptyPortsCandidateProvider

This interface can be used to query IPortCandidates for a specific IPortOwner with respect to a given opposite IPortCandidate or IEdge.

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



Public Methods
 MethodDefined by
  
Returns all port candidates that apply for the provided opposite port candidate.
IPortCandidateProvider
  
Returns all port candidates that apply for the provided opposite port candidate.
IPortCandidateProvider
  
Returns all port candidates that apply for the provided edge.
IPortCandidateProvider
  
Returns all port candidates that apply for the provided edge.
IPortCandidateProvider
  
Returns all source port candidates that belong to the context of this provider.
IPortCandidateProvider
  
Returns all target port candidates that belong to the context of this provider.
IPortCandidateProvider
Method detail
getCandidateSourcePortCandidates()method
public function getCandidateSourcePortCandidates(context:IInputModeContext, graph:IGraph, target:IPortCandidate):Iterable

Returns all port candidates that apply for the provided opposite port candidate.

The Iterable may both contain valid and invalid port candidates.

Parameters
context:IInputModeContext — The context for which the candidates should be provided.
 
graph:IGraph — The graph for which the candidates should be queried.
 
target:IPortCandidate — The opposite port candidate.

Returns
Iterable — An Iterable over all port candidates that are associated with the given opposite port.
getCandidateTargetPortCandidates()method 
public function getCandidateTargetPortCandidates(context:IInputModeContext, graph:IGraph, source:IPortCandidate):Iterable

Returns all port candidates that apply for the provided opposite port candidate.

The Iterable may both contain valid and invalid port candidates.

Parameters
context:IInputModeContext — The context for which the candidates should be provided.
 
graph:IGraph — The graph for which the candidates should be queried.
 
source:IPortCandidate — The opposite port candidate.

Returns
Iterable — An Iterable over all port candidates that are associated with the given opposite port.
getEdgeSourcePortCandidates()method 
public function getEdgeSourcePortCandidates(context:IInputModeContext, graph:IGraph, edge:IEdge):Iterable

Returns all port candidates that apply for the provided edge.

The Iterable may both contain valid and invalid port candidates.

Parameters
context:IInputModeContext — The context for which the candidates should be provided.
 
graph:IGraph — The graph for which the candidates should be queried.
 
edge:IEdge — The edge for which source port candidates are sought.

Returns
Iterable — An Iterable over all port candidates that are associated with the given edge.
getEdgeTargetPortCandidates()method 
public function getEdgeTargetPortCandidates(context:IInputModeContext, graph:IGraph, edge:IEdge):Iterable

Returns all port candidates that apply for the provided edge.

The Iterable may both contain valid and invalid port candidates.

Parameters
context:IInputModeContext — The context for which the candidates should be provided.
 
graph:IGraph — The graph for which the candidates should be queried.
 
edge:IEdge — The edge for which target port candidates are sought.

Returns
Iterable — An Iterable over all port candidates that are associated with the given edge.
getGraphSourcePortCandidates()method 
public function getGraphSourcePortCandidates(context:IInputModeContext, graph:IGraph):Iterable

Returns all source port candidates that belong to the context of this provider.

The Iterable may both contain valid and invalid port candidates.

Parameters
context:IInputModeContext — The context for which the candidates should be provided.
 
graph:IGraph — The graph for which the candidates should be queried.

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

Returns all target port candidates that belong to the context of this provider.

The Iterable may both contain valid and invalid port candidates.

Parameters
context:IInputModeContext — The context for which the candidates should be provided.
 
graph:IGraph — The graph for which the candidates should be queried.

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