public class TLcdGXYCompositeLabelObstacleProvider extends Object implements ILcdGXYLabelObstacleProvider
ILcdGXYLabelObstacleProvider
interface. This
implementation returns the union of the label obstacles returned by the delegate
label obstacle providers.Constructor and Description |
---|
TLcdGXYCompositeLabelObstacleProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addGXYLabelObstacleProvider(ILcdGXYLabelObstacleProvider aLabelObstacleProvider)
Adds the given label obstacle provider to the list of delegate label obstacle providers.
|
List<ILcdGXYLabelObstacleProvider> |
getLabelObstacleProviders()
Returns the list of delegate label obstacle providers.
|
List |
getLabelObstacles(Graphics aGraphics,
ILcdGXYView aGXYView)
Returns a
java.util.List with objects of type TLcdGXYLabelObstacle . |
boolean |
removeGXYLabelObstacleProvider(ILcdGXYLabelObstacleProvider aLabelObstacleProvider)
Removes the given label obstacle provider from the list of delegate label obstacle providers.
|
public TLcdGXYCompositeLabelObstacleProvider()
public List getLabelObstacles(Graphics aGraphics, ILcdGXYView aGXYView)
ILcdGXYLabelObstacleProvider
java.util.List
with objects of type TLcdGXYLabelObstacle
.getLabelObstacles
in interface ILcdGXYLabelObstacleProvider
aGraphics
- The graphics, provided as contextual info.aGXYView
- The view, provided as contextual info.java.util.List
with TLcdGXYLabelObstacle
objects. Implementations are allowed to return the same instance of the
list for subsequent calls, to avoid recreating the same obstacles all the
time. Therefore users of this method should not keep long term references,
nor attempt to modify the returned list or the TLcdGXYLabelObstacle
objects inside it.public void addGXYLabelObstacleProvider(ILcdGXYLabelObstacleProvider aLabelObstacleProvider)
aLabelObstacleProvider
- the label obstacle provider to be added.public boolean removeGXYLabelObstacleProvider(ILcdGXYLabelObstacleProvider aLabelObstacleProvider)
aLabelObstacleProvider
- the label obstacle provider to be removed.true
if the given label obstacle provider was removed, and
false
otherwise.public List<ILcdGXYLabelObstacleProvider> getLabelObstacleProviders()