Packagecom.yworks.graph.model.portLocation
Classpublic class DynamicAnchoredParameter
InheritanceDynamicAnchoredParameter Inheritance Object
Implements IPortLocationModelParameter

A simple IPortLocationModelParameter that used the passed IPoint object to describe the location of an IPort in combination with an AnchoredPortLocationModel.

See also

AnchoredPortLocationModel


Public Properties
 PropertyDefined By
  location : IPoint
[read-only] Returns the IPoint object passed on construction.
DynamicAnchoredParameter
  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.
DynamicAnchoredParameter
Public Methods
 MethodDefined By
  
DynamicAnchoredParameter(model:AnchoredPortLocationModel, location:IPoint)
DynamicAnchoredParameter
  
clone():Object
Returns this instance.
DynamicAnchoredParameter
  
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.
DynamicAnchoredParameter
Property Detail
locationproperty
location:IPoint  [read-only]

Returns the IPoint object passed on construction.


Implementation
    public function get location():IPoint
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
Constructor Detail
DynamicAnchoredParameter()Constructor
public function DynamicAnchoredParameter(model:AnchoredPortLocationModel, location:IPoint)



Parameters
model:AnchoredPortLocationModel
 
location:IPoint
Method Detail
clone()method
public function clone():Object

Returns this instance.

Returns
Object
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.