documentationfor yFiles for HTML 3.0.0.3

CompositeLabelModel

An implementation of ILabelModel that can be used to create custom label models out of existing ILabelModel and ILabelModelParameter instances.

Inheritance Hierarchy
CompositeLabelModel
Implemented Interfaces

Remarks

This class holds a number of models and parameters and can provide all of their parameters in parameters. A custom model can easily be created that way:
Creating a CompositeLabelModel
const compositeLabelModel = new CompositeLabelModel()
compositeLabelModel.addModel(new ExteriorNodeLabelModel())
compositeLabelModel.addModel(new StretchNodeLabelModel())
compositeLabelModel.addParameter(InteriorNodeLabelModel.CENTER)

Type Details

yFiles module
view

Constructors

Properties

Methods