Class TLcdGXYLabelPainterLocationLabelingAlgorithm

java.lang.Object
com.luciad.view.gxy.labeling.algorithm.discrete.ALcdGXYDiscretePlacementsLabelingAlgorithm
com.luciad.view.gxy.labeling.algorithm.discrete.TLcdGXYLabelPainterLocationLabelingAlgorithm
All Implemented Interfaces:
ILcdCloneable, ILcdGXYLabelingAlgorithm, Cloneable
Direct Known Subclasses:
TLcdGXYSinglePlacementLabelingAlgorithm

public class TLcdGXYLabelPainterLocationLabelingAlgorithm extends ALcdGXYDiscretePlacementsLabelingAlgorithm
This labeling algorithm is a greedy algorithm based on the label locations provided by each label's label painter. This makes this algorithm behave similarly to TLcdGXYViewLabelPainter and TLcdGXYLayerLabelPainter.

It tries to place labels in the order provided by the input TLcdCollectedLabelInfoList object (see TLcdCollectedLabelInfoList.getLabels()). It tries to place the labels one by one, and when a label cannot be placed without overlap, it is omitted.

This algorithm also uses a forced painting threshold priority to force labels to be placed, even if they overlap with other labels, see setForcedPaintingThresholdPriority(int).

The implementation of this labeling algorithm is thread-safe if the set label priority provider is thread-safe.

Since:
10.1
  • Constructor Details

    • TLcdGXYLabelPainterLocationLabelingAlgorithm

      public TLcdGXYLabelPainterLocationLabelingAlgorithm()
  • Method Details