Packagecom.yworks.graph.model
Interfacepublic interface ILabelModelParameter extends ICloneable

Common interface for parameters that are created by ILabelModel instances.

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



Public Properties
 PropertyDefined By
  model : ILabelModel
[read-only] Gets the model that can be used to query the geometry of a label given this parameter and a label instance.
ILabelModelParameter
Public Methods
 MethodDefined By
 Inherited
clone():Object
Creates a clone of this instance.
ICloneable
  
supports(label:ILabel):Boolean
Determines whether this parameter can be used for a given label instance.
ILabelModelParameter
Property Detail
modelproperty
model:ILabelModel  [read-only]

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


Implementation
    public function get model():ILabelModel
Method Detail
supports()method
public function supports(label:ILabel):Boolean

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

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

Parameters

label:ILabel — The label this parameter should be associated with

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