public interface ILcdLabelPlacementEvaluator
Modifier and Type | Interface and Description |
---|---|
static class |
ILcdLabelPlacementEvaluator.PlacementResult
Placement result for a label.
|
Modifier and Type | Method and Description |
---|---|
ILcdLabelPlacementEvaluator.PlacementResult |
evaluatePlacement(TLcdLabelPlacement aLabelPlacement,
ILcdLabelConflictChecker.Conflict aConflict,
List<TLcdLabelPlacement> aPlacedLabels)
This method evaluates the given label placement and returns a
PlacementResult
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 no
TLcdLabelPlacement is chosen as
placement for the given label. |
void |
placementApplied(TLcdLabelPlacement aLabelPlacement,
List<TLcdLabelPlacement> aPlacedLabels)
This method can be called to notify that a given
TLcdLabelPlacement is chosen as
the placement for the given label. |
ILcdLabelPlacementEvaluator.PlacementResult evaluatePlacement(TLcdLabelPlacement aLabelPlacement, ILcdLabelConflictChecker.Conflict aConflict, List<TLcdLabelPlacement> aPlacedLabels)
PlacementResult
to denote if the placement can be used for its label or not. It can make this decision based
on a Conflict
returned by an ILcdLabelConflictChecker
and a list
of already placed labels.aLabelPlacement
- the label placement to evaluate.aConflict
- a Conflict
returned by an ILcdLabelConflictChecker
,
can be null
.aPlacedLabels
- a list of already placed labels.ILcdLabelPlacementEvaluator.PlacementResult
.void placementApplied(TLcdLabelPlacement aLabelPlacement, List<TLcdLabelPlacement> aPlacedLabels)
TLcdLabelPlacement
is chosen as
the placement for the given label.aLabelPlacement
- the applied label placement.aPlacedLabels
- the list of currently placed labels.void noPlacementApplied(TLcdCollectedLabelInfo aLabel, List<TLcdLabelPlacement> aPlacedLabels)
TLcdLabelPlacement
is chosen as
placement for the given label.aLabel
- the label for which no valid placement was found.aPlacedLabels
- the list of currently placed labels.