documentationfor yFiles for HTML 2.6

GenericLabelModel

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

Inheritance Hierarchy
GenericLabelModel
Implemented Interfaces

Remarks

This class holds a number of parameters and serves as a container for these parameters. Custom models can easily be created that way:
Creating a GenericLabelModel instance with a few parameters from different models
const genericLabelModel = new GenericLabelModel(InteriorLabelModel.CENTER)
genericLabelModel.addParameter(ExteriorLabelModel.NORTH)
genericLabelModel.addParameter(ExteriorLabelModel.SOUTH)
genericLabelModel.addParameter(InteriorStretchLabelModel.EAST)
genericLabelModel.addParameter(InteriorStretchLabelModel.WEST)

Type Details

yfiles module
view-component
yfiles-umd modules
All view modules
Legacy UMD name
yfiles.graph.GenericLabelModel

Constructors

Methods