Package | com.yworks.graph.model |
Class | public class NodeCenterPortCandidateProvider |
Inheritance | NodeCenterPortCandidateProvider AbstractPortCandidateProvider Object |
IPortCandidateProvider
that always returns exactly one candidate that is centered at the node's layout
.
See also
Method | Defined By | ||
---|---|---|---|
Constructor. | NodeCenterPortCandidateProvider | ||
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]
Creates an enumeration of possibly port candidates. | NodeCenterPortCandidateProvider | ||
setPortOwner(value:IPortOwner):void
Sets the owner of the port candidate. | AbstractPortCandidateProvider |
NodeCenterPortCandidateProvider | () | Constructor |
public function NodeCenterPortCandidateProvider(node:INode)
Constructor.
Parametersnode:INode — The node to get the port candidate for
|
getPortCandidates | () | method |
override protected function getPortCandidates(context:IInputModeContext):Iterable
Creates an enumeration of possibly port candidates.
This method is used as a callback by most of the getter methods in this class. Subclasses habe to override this method to provide the same candidates for all use-cases.
Parameters
context:IInputModeContext |
Iterable — An iterable collection of port candidates.
|