Class TLcdSLDLabelingAlgorithm

All Implemented Interfaces:
ILcdCloneable, ILcdGXYLabelingAlgorithm, Cloneable

public class TLcdSLDLabelingAlgorithm extends TLcdGXYCompositeDiscretePlacementsLabelingAlgorithm
Extension of TLcdGXYCompositeLabelingAlgorithm that computes label locations for layers that have a TLcdSLDFeatureTypeStylePainter as label painter.
Since:
11.0
  • Constructor Details

    • TLcdSLDLabelingAlgorithm

      public TLcdSLDLabelingAlgorithm()
      Constructs a new labeling algorithm that prefers static labels over dynamic ones for non-curved labels (see TLcdSLDLabelingAlgorithm(boolean)) and that enables label placement conflict resolution (label decluttering).
    • TLcdSLDLabelingAlgorithm

      public TLcdSLDLabelingAlgorithm(boolean aStaticLabels)
      Constructs a new labeling algorithm with label placement conflict resolution (label decluttering) enabled and with the given option to prefer static labels over dynamic ones. Static labels are labels that don't move during navigation or due to decluttering. This is for example useful for cases where you need consistent consistent label positions over multiple repaints, such as in a (Tiled) WMS or WMTS server implementation. An exception is made for curved labels, for which the placement is always dynamic: their target use case is the labeling of paths (like streets, rivers ...), which benefits from dynamic placement to optimize the label readability and to support label repeating.
      Parameters:
      aStaticLabels - sets whether static labels are preferred over dynamic ones for non-curved labels
      Since:
      2017.0
    • TLcdSLDLabelingAlgorithm

      public TLcdSLDLabelingAlgorithm(boolean aStaticLabels, boolean aConflictResolutionEnabled)
      Constructs a new labeling algorithm with the given options to prefer static labels over dynamic ones for non-curved labels and to enable label placement conflict resolution (label decluttering).
      Parameters:
      aStaticLabels - sets whether static labels are preferred over dynamic ones for non-curved labels
      aConflictResolutionEnabled - sets whether label placement conflict resolution should be enabled
      Since:
      2021.0
  • Method Details