Package | com.yworks.graph.model |
Interface | public interface ILabelModelParameter extends ICloneable |
ILabelModel
instances.
A parameter encapsulates a certain state that can be interpreted by its
model
to calculate a ILabel.layout
given an ILabel
instance.
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
clone():Object
Creates a clone of this instance. | ICloneable | ||
Determines whether this parameter can be used for a given label instance. | ILabelModelParameter |
model | property |
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.
public function get model():ILabelModel
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
|
Boolean — Whether this parameter instance can be used for the given label
|