documentationfor yFiles for HTML 2.6

SimpleProfitModel

SimpleProfitModel implements the ranking for edge and node labels.

Inheritance Hierarchy
SimpleProfitModel
Implemented Interfaces

Remarks

In this implementation node label positions have no ranking, the profit for all candidates is 1.

The ranking of edge label positions depends on the locations described in the PreferredPlacementDescriptor associated with an edge.

Type Details

yfiles module
layout-core
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.layout.SimpleProfitModel
This model provides meaningful and different profit values only in conjunction with SliderEdgeLabelLayoutModel or DiscreteEdgeLabelLayoutModel. Otherwise, it yields equal profit values for all candidates of the same edge label.

Constructors

Methods