Packagecom.yworks.graph.model.portLocation
Interfacepublic interface IPortLocationModelParameter extends ICloneable
Implementors DynamicAnchoredParameter

Common interface for parameters that are created by IPortModel instances.

A parameter encapsulates a certain state that can be interpreted by its model to calculate a IPort.location given an IPort instance.



Public Properties
 PropertyDefined By
  model : IPortLocationModel
[read-only] Gets the model that can be used to query the location of a port given this parameter and a port instance.
IPortLocationModelParameter
Public Methods
 MethodDefined By
 Inherited
clone():Object
Creates a clone of this instance.
ICloneable
  
supports(port:IPort):Boolean
Determines whether this parameter can be used for a given port instance. Some parameters cannot be used with all types of ports.
IPortLocationModelParameter
Property Detail
modelproperty
model:IPortLocationModel  [read-only]

Gets the model that can be used to query the location of a port given this parameter and a port instance.


Implementation
    public function get model():IPortLocationModel
Method Detail
supports()method
public function supports(port:IPort):Boolean

Determines whether this parameter can be used for a given port instance.

Some parameters cannot be used with all types of ports. E.g. they can only be used with ports that belong to INode instances.

Parameters

port:IPort — The port this parameter should be associated with.

Returns
Boolean — Whether this parameter instance can be used for the given port.