| Package | com.yworks.graph.model |
| Interface | public interface IPortCandidate |
| Implementors | AbstractPortCandidateProvider, CompositePortCandidateProvider, DefaultPortCandidate, EmptyPortsCandidateProvider |
IPort candidates used by
IPortCandidateProvider and the like.
| Property | Defined by | ||
|---|---|---|---|
| location : IPoint
[read-only]
Returns the absolute location of the port in the world coordinate system for this candidate.
| IPortCandidate | ||
| owner : IPortOwner
[read-only]
Returns the possible owner of the port to be created for this candidate.
| IPortCandidate | ||
| type : uint [read-only]
Returns the type of this candidate.
| IPortCandidate | ||
| valid : Boolean [read-only]
Whether this instance is a valid port candidate.
| IPortCandidate | ||
| Method | Defined by | ||
|---|---|---|---|
|
If the client decides to use this port candidate, this method will serve as a factory to create
the instance.
| IPortCandidate | ||
|
Returns the instance that is already live in the graph if this candidate wraps an
exisiting port or
null otherwise. | IPortCandidate | ||
| location | property |
location:IPoint [read-only]Returns the absolute location of the port in the world coordinate system for this candidate.
Implementation public function get location():IPoint
| owner | property |
owner:IPortOwner [read-only]Returns the possible owner of the port to be created for this candidate.
Implementation public function get owner():IPortOwner
| type | property |
type:uint [read-only]Returns the type of this candidate.
The interpretation of this value is implementation dependent and may be used for visual feedback or interactive behavior.
Implementation public function get type():uint
See also
| valid | property |
valid:Boolean [read-only]Whether this instance is a valid port candidate.
Implementations of IPortCandidateProvider may return
sets of port candidates where some of them are marked as invalid e.g. in order
to give visual feedback.
public function get valid():Boolean
| createInstance | () | method |
public function createInstance():IPortIf the client decides to use this port candidate, this method will serve as a factory to create the instance.
If this candidate wraps an existing port, it may return that instance.
ReturnsIPort —
The port instance to use if this candidate has been chosen. This method may return null to
indicate that the client should create an appropriate port itself.
|
| getInstance | () | method |
public function getInstance():IPort
Returns the instance that is already live in the graph if this candidate wraps an
exisiting port or null otherwise.
IPort —
The instance to use or |
See also