public class TLcdBingMapsGXYCopyrightProvider extends Object
ILcdGXYView
.
Depending on the Bing Maps terms of use, it may be required to display
copyright information of the displayed content.
Based on the currently visible bounds of the view, this provider selects the relevant
TLcdBingMapsCopyrightHolders
from the model.ILcdBingMapsCopyrightListener
,
TLcdBingMapsCopyrightHolder
Constructor and Description |
---|
TLcdBingMapsGXYCopyrightProvider(ILcdGXYView aGXYView)
Constructs a new copyright provider, initialized using the passed view.
|
TLcdBingMapsGXYCopyrightProvider(ILcdGXYView aGXYView,
ILcdBingMapsCopyrightListener aListener)
Constructs a new copyright provider, initialized using the passed view.
|
Modifier and Type | Method and Description |
---|---|
void |
addCopyrightListener(ILcdBingMapsCopyrightListener aListener)
Registers a callback to be notified when the copyright info changes.
|
void |
removeCopyrightListener(ILcdBingMapsCopyrightListener aListener)
Unregisters a callback or does nothing if the passed callback isn't registered.
|
public TLcdBingMapsGXYCopyrightProvider(ILcdGXYView aGXYView)
aGXYView
- the 2D view the Bing Maps layer is visualized in.public TLcdBingMapsGXYCopyrightProvider(ILcdGXYView aGXYView, ILcdBingMapsCopyrightListener aListener)
aGXYView
- the 2D view the Bing Maps layer is visualized in (can't be null).aListener
- a initial callback to be registered, can be null.public void addCopyrightListener(ILcdBingMapsCopyrightListener aListener)
aListener
- the callback that will be notified when the copyright information is available.removeCopyrightListener(com.luciad.format.bingmaps.copyright.ILcdBingMapsCopyrightListener)
public void removeCopyrightListener(ILcdBingMapsCopyrightListener aListener)
aListener
- the callback that will be unregistered.addCopyrightListener(com.luciad.format.bingmaps.copyright.ILcdBingMapsCopyrightListener)