Class TLcdGXYSinglePlacementLabelingAlgorithm
java.lang.Object
com.luciad.view.gxy.labeling.algorithm.discrete.ALcdGXYDiscretePlacementsLabelingAlgorithm
com.luciad.view.gxy.labeling.algorithm.discrete.TLcdGXYLabelPainterLocationLabelingAlgorithm
com.luciad.view.gxy.labeling.algorithm.discrete.TLcdGXYSinglePlacementLabelingAlgorithm
- All Implemented Interfaces:
ILcdCloneable
,ILcdGXYLabelingAlgorithm
,Cloneable
public class TLcdGXYSinglePlacementLabelingAlgorithm
extends TLcdGXYLabelPainterLocationLabelingAlgorithm
This labeling algorithm is a greedy labeling algorithm that only tries one placement per label.
It tries to place all labels at location index 0, unless a label is sticky or edited by a label
editor.
This algorithm also uses a forced painting threshold priority to force labels to be placed,
even if they overlap with other labels, see TLcdGXYLabelPainterLocationLabelingAlgorithm.setForcedPaintingThresholdPriority(int)
.
The implementation of this labeling algorithm is thread-safe if the set label priority provider is thread-safe.
- Since:
- 10.1
-
Constructor Summary
-
Method Summary
Methods inherited from class com.luciad.view.gxy.labeling.algorithm.discrete.TLcdGXYLabelPainterLocationLabelingAlgorithm
collectLabelInfo, createLabelIterator, createLabelPlacementEvaluator, createLabelPlacementIterator, getForcedPaintingThresholdPriority, getLabelPriorityProvider, setForcedPaintingThresholdPriority, setLabelPriorityProvider
Methods inherited from class com.luciad.view.gxy.labeling.algorithm.discrete.ALcdGXYDiscretePlacementsLabelingAlgorithm
computeLabelPlacements
-
Constructor Details
-
TLcdGXYSinglePlacementLabelingAlgorithm
public TLcdGXYSinglePlacementLabelingAlgorithm()
-
-
Method Details
-
clone
Description copied from interface:ILcdCloneable
Makes
When for example extending fromObject.clone()
public.java.lang.Object
, it can be implemented like this:public Object clone() { try { return super.clone(); } catch ( CloneNotSupportedException e ) { // Cannot happen: extends from Object and implements Cloneable (see also Object.clone) throw new RuntimeException( e ); } }
- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classTLcdGXYLabelPainterLocationLabelingAlgorithm
- See Also:
-