public interface ILspLabelPlacer
This interface defines methods to retrieve and manipulate label locations. Its main methods
are placeLabels
and getLabelLocations
. The
first of these methods is used to execute or schedule a placement, which will assign label
locations to labels in the view. The second method can be used to retrieve or modify these
label locations.
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Frees resources and tasks associated with this placer.
|
ALspLabelLocations |
getLabelLocations()
Returns the label locations object.
|
boolean |
isFinished()
Indicates whether all calls to
placeLabels() are completely processed or not. |
void |
placeLabels()
Place the labels for the associated view.
|
void placeLabels()
Place the labels for the associated view. In this method label placement and label decluttering can be performed.
It is advised to perform the actual work asynchronously, and have this method simply schedule a placement cycle. This is not mandatory however.
You can use isFinished()
at any time to determine if this call is completely
processed.
ALspLabelLocations getLabelLocations()
void destroy()
boolean isFinished()
placeLabels()
are completely processed or not.true
if there is no placement busy or scheduled, false
otherwise.