Interface ILcdLabelPlacementEvaluator
public interface ILcdLabelPlacementEvaluator
Interface that allows to evaluate a placement for a label.
- Since:
- 10.1
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Placement result for a label. -
Method Summary
Modifier and TypeMethodDescriptionevaluatePlacement
(TLcdLabelPlacement aLabelPlacement, ILcdLabelConflictChecker.Conflict aConflict, List<TLcdLabelPlacement> aPlacedLabels) This method evaluates the given label placement and returns aPlacementResult
to denote if the placement can be used for its label or not.void
noPlacementApplied
(TLcdCollectedLabelInfo aLabel, List<TLcdLabelPlacement> aPlacedLabels) This method can be called to notify that noTLcdLabelPlacement
is chosen as placement for the given label.void
placementApplied
(TLcdLabelPlacement aLabelPlacement, List<TLcdLabelPlacement> aPlacedLabels) This method can be called to notify that a givenTLcdLabelPlacement
is chosen as the placement for the given label.
-
Method Details
-
evaluatePlacement
ILcdLabelPlacementEvaluator.PlacementResult evaluatePlacement(TLcdLabelPlacement aLabelPlacement, ILcdLabelConflictChecker.Conflict aConflict, List<TLcdLabelPlacement> aPlacedLabels) This method evaluates the given label placement and returns aPlacementResult
to denote if the placement can be used for its label or not. It can make this decision based on aConflict
returned by anILcdLabelConflictChecker
and a list of already placed labels.- Parameters:
aLabelPlacement
- the label placement to evaluate.aConflict
- aConflict
returned by anILcdLabelConflictChecker
, can benull
.aPlacedLabels
- a list of already placed labels.- Returns:
- a
ILcdLabelPlacementEvaluator.PlacementResult
.
-
placementApplied
This method can be called to notify that a givenTLcdLabelPlacement
is chosen as the placement for the given label.- Parameters:
aLabelPlacement
- the applied label placement.aPlacedLabels
- the list of currently placed labels.
-
noPlacementApplied
This method can be called to notify that noTLcdLabelPlacement
is chosen as placement for the given label.- Parameters:
aLabel
- the label for which no valid placement was found.aPlacedLabels
- the list of currently placed labels.
-