| Package | com.yworks.graph.model |
| Interface | public interface ILabelModelParameter extends ICloneable |
| Implementors | DefaultLabelModelParameterFinder, ExteriorLabelModel, FreeEdgeLabelModel, FreeNodeLabelModel, GenericLabelModel, InteriorLabelModel, InteriorStretchLabelModel, RotatingEdgeLabelModel, SliderEdgeLabelModel |
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.
Implementation public function get model():ILabelModel
| supports | () | method |
public function supports(label:ILabel):BooleanDetermines 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.
label:ILabel — The label this parameter should be associated with
|
Boolean — Whether this parameter instance can be used for the given label
|