Interface LabelCompositionStrategy

All Known Implementing Classes:
LabelCompositionStrategy.DeriveLabelFromNameTagsCompositionStrategy, LabelCompositionStrategy.StaticLabelCompositionStrategy, LabelCompositionStrategy.TagLookupCompositionStrategy
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Provides an abstract parent class and three concrete sub classes for various strategies on how to compose the text label which can be rendered close to a node or within an area in an OSM map.

The three strategies below support three rules for composing a label:

Since:
3987 (creation), 10599 (functional interface)
  • Method Details

    • compose

      Replies the text value to be rendered as label for the primitive primitive.
      Parameters:
      primitive - the primitive
      Returns:
      the text value to be rendered or null, if primitive is null or if no suitable value could be composed