Package | com.yworks.graph.model |
Class | public class PortCandidateProvider |
Inheritance | PortCandidateProvider AbstractPortCandidateProvider Object |
IPortCandidateProvider
implementation
that allows for adding IPortCandidate
s.
Method | Defined By | ||
---|---|---|---|
Adds a single candidate to this instance's list of candidates. | PortCandidateProvider | ||
addCandidateWithModelParameter(owner:IPortOwner, portLocationModelParameter:IPortLocationModelParameter):IPortCandidate
Add another port candidate to this provider's list of candidates. | PortCandidateProvider | ||
addExistingPortsFromOwner(owner:IPortOwner):void
Adds existing ports of the given instance to this instance's list. | PortCandidateProvider | ||
Convenience implementation that simply delegates to getPortCandidates. | AbstractPortCandidateProvider | ||
Convenience implementation that simply delegates to getPortCandidates. | AbstractPortCandidateProvider | ||
Convenience implementation that simply delegates to getPortCandidates. | AbstractPortCandidateProvider | ||
Convenience implementation that simply delegates to getPortCandidates. | AbstractPortCandidateProvider | ||
Convenience implementation that simply delegates to getPortCandidates. | AbstractPortCandidateProvider | ||
Convenience implementation that simply delegates to getPortCandidates. | AbstractPortCandidateProvider |
Method | Defined By | ||
---|---|---|---|
addExistingPorts(list:List):void
Convenience method for subclasses that adds all existing ports
of the portOwner to the provided list. | AbstractPortCandidateProvider | ||
createCallbackPort(location:IPortLocationModelParameter, owner:IPortOwner = null):DefaultPortCandidate
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 | ||
createCallbackPortAt(location:IPoint, owner:IPortOwner = null, model:IPortLocationModel = null, valid:Boolean = true):DefaultPortCandidate
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 | ||
Callback method used by the ports created using the createCallbackPort factory method. | AbstractPortCandidateProvider | ||
getCandidateAt(context:IInputModeContext, candidate:DefaultPortCandidate, suggestedLocation:IPoint):IPortCandidate
Callback method used by the ports created using the factory method createCallbackPort. | AbstractPortCandidateProvider | ||
[override]
Returns the list of candidates used by this instance. | PortCandidateProvider | ||
setPortOwner(value:IPortOwner):void
Sets the owner of the port candidate. | AbstractPortCandidateProvider |
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.
|
IPortCandidate — The candidate added.
|
addCandidateWithModelParameter | () | method |
public function addCandidateWithModelParameter(owner:IPortOwner, portLocationModelParameter:IPortLocationModelParameter):IPortCandidate
Add another port candidate to this provider's list of candidates.
Parameters
owner:IPortOwner — The owner to use for the candidate.
| |
portLocationModelParameter:IPortLocationModelParameter — The location model parameter of the candidate.
|
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 |
override protected function getPortCandidates(context:IInputModeContext):Iterable
Returns the list of candidates used by this instance.
Parameters
context:IInputModeContext |
Iterable — An Iterable over the list candidates.
|