public class TLspBingMapsCopyrightProvider extends Object
This class informs its listeners of copyright updates for all Bing Maps layers in an ILspView
.
Based on the current visible bounds of the view, it selects the relevant TLcdBingMapsCopyrightHolders
from the
model.
ILcdBingMapsCopyrightListener
,
TLcdBingMapsCopyrightHolder
Constructor and Description |
---|
TLspBingMapsCopyrightProvider(ILspView aView)
Constructs a new copyright provider, initialized using
aView |
TLspBingMapsCopyrightProvider(ILspView aView,
ILcdBingMapsCopyrightListener aListener)
Constructs a new copyright provider, initialized using
aView |
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 TLspBingMapsCopyrightProvider(ILspView aView)
aView
aView
- The view the Bing Maps layers are visualized in. Must not be null
public TLspBingMapsCopyrightProvider(ILspView aView, ILcdBingMapsCopyrightListener aListener)
aView
aView
- The view the Bing Maps layers are visualized in. Must not 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)