Package com.luciad.view.gxy
Class TLcdGXYCompositeLabelObstacleProvider
java.lang.Object
com.luciad.view.gxy.TLcdGXYCompositeLabelObstacleProvider
- All Implemented Interfaces:
ILcdGXYLabelObstacleProvider
public class TLcdGXYCompositeLabelObstacleProvider
extends Object
implements ILcdGXYLabelObstacleProvider
Composite implementation of the
ILcdGXYLabelObstacleProvider
interface. This
implementation returns the union of the label obstacles returned by the delegate
label obstacle providers.- Since:
- 10.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGXYLabelObstacleProvider
(ILcdGXYLabelObstacleProvider aLabelObstacleProvider) Adds the given label obstacle provider to the list of delegate label obstacle providers.Returns the list of delegate label obstacle providers.getLabelObstacles
(Graphics aGraphics, ILcdGXYView aGXYView) Returns ajava.util.List
with objects of typeTLcdGXYLabelObstacle
.boolean
removeGXYLabelObstacleProvider
(ILcdGXYLabelObstacleProvider aLabelObstacleProvider) Removes the given label obstacle provider from the list of delegate label obstacle providers.
-
Constructor Details
-
TLcdGXYCompositeLabelObstacleProvider
public TLcdGXYCompositeLabelObstacleProvider()
-
-
Method Details
-
getLabelObstacles
Description copied from interface:ILcdGXYLabelObstacleProvider
Returns ajava.util.List
with objects of typeTLcdGXYLabelObstacle
.- Specified by:
getLabelObstacles
in interfaceILcdGXYLabelObstacleProvider
- Parameters:
aGraphics
- The graphics, provided as contextual info.aGXYView
- The view, provided as contextual info.- Returns:
- The
java.util.List
withTLcdGXYLabelObstacle
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 theTLcdGXYLabelObstacle
objects inside it.
-
addGXYLabelObstacleProvider
Adds the given label obstacle provider to the list of delegate label obstacle providers.- Parameters:
aLabelObstacleProvider
- the label obstacle provider to be added.
-
removeGXYLabelObstacleProvider
Removes the given label obstacle provider from the list of delegate label obstacle providers.- Parameters:
aLabelObstacleProvider
- the label obstacle provider to be removed.- Returns:
true
if the given label obstacle provider was removed, andfalse
otherwise.
-
getLabelObstacleProviders
Returns the list of delegate label obstacle providers. Modifying this list will not influence the internal working of this class.- Returns:
- the list of delegate label obstacle providers.
-