Packagecom.yworks.graph.model
Classpublic class PortCandidateProvider
InheritancePortCandidateProvider Inheritance AbstractPortCandidateProvider

A simple mutable IPortCandidateProvider implementation that allows for adding IPortCandidates.



Public Properties
 PropertyDefined by
 InheritedportOwner : IPortOwner
Gets owner of the port candidate.
AbstractPortCandidateProvider
Public Methods
 MethodDefined by
  
Adds a single candidate to this instance's list of candidates.
PortCandidateProvider
  
Add another port candidate to this provider's list of candidates.
PortCandidateProvider
  
Adds existing ports of the given instance to this instance's list.
PortCandidateProvider
 Inherited
Convenience implementation that simply delegates to getPortCandidates.
AbstractPortCandidateProvider
 Inherited
Convenience implementation that simply delegates to getPortCandidates.
AbstractPortCandidateProvider
 Inherited
Convenience implementation that simply delegates to getPortCandidates.
AbstractPortCandidateProvider
 Inherited
Convenience implementation that simply delegates to getPortCandidates.
AbstractPortCandidateProvider
 Inherited
Convenience implementation that simply delegates to getPortCandidates.
AbstractPortCandidateProvider
 Inherited
Convenience implementation that simply delegates to getPortCandidates.
AbstractPortCandidateProvider
Protected Methods
 MethodDefined by
 Inherited
Convenience method for subclasses that adds all existing ports of the portOwner to the provided list.
AbstractPortCandidateProvider
 Inherited
Factory method that creates a simple candidate that will use the createInstance method of this instance to delegate createInstance of the port candidate to.
AbstractPortCandidateProvider
 Inherited
Callback method used by the ports created using the createCallbackPort factory method.
AbstractPortCandidateProvider
  
Returns the list of candidates used by this instance.
PortCandidateProvider
 Inherited
Sets the owner of the port candidate.
AbstractPortCandidateProvider
Method detail
addCandidate()method
public function addCandidate(candidate:IPortCandidate):IPortCandidate

Adds a single candidate to this instance's list of candidates.

Parameters
candidate:IPortCandidate — The candidate to add.

Returns
IPortCandidate — The candidate added.
addCandidateAt()method 
public function addCandidateAt(graph:IGraph, owner:IPortOwner, location:IPoint):IPortCandidate

Add another port candidate to this provider's list of candidates.

Parameters
graph:IGraph — The graph where the candidate belongs to
 
owner:IPortOwner — The owner to use for the candidate.
 
location:IPoint — The location of the candidate.

Returns
IPortCandidate — The candidate created.
addExistingPortsFromOwner()method 
public function addExistingPortsFromOwner(owner:IPortOwner):void

Adds existing ports of the given instance to this instance's list.

Parameters
owner:IPortOwner — The owner whose ports should be added.
getPortCandidates()method 
protected override function getPortCandidates(context:IInputModeContext, graph:IGraph):Iterable

Returns the list of candidates used by this instance.

Parameters
context:IInputModeContext — The graph to work on.
 
graph:IGraph

Returns
Iterable — An Iterable over the list candidates.