Class TLcyBingMapsAddOn
This add-on provides support for Bing maps data on a 2D map.
- Since:
- 11.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ALcyFormatReturns a new data format for this add-on.createCopyrightComponent(ILcdGXYView aGXYView) Returns a component representing the copyright information of the Bing map layers contained inaGXYViewwhich will be added on the map.protected final ALcyFormatcreateFormatWrapper(ALcyFormat aBaseFormat) Returns a new data format wrapper for this add-on.createLogoComponent(ILcdGXYView aGXYView) Returns a component representing the logo of the Bing map layers contained inaGXYViewwhich will be added on the map.voidplugInto(ILcyLucyEnv aLucyEnv) Creates and plugs in the add-on's format.Methods inherited from class com.luciad.lucy.addons.ALcyFormatAddOn
createFormatTool, getFormat, unplugFromMethods inherited from class com.luciad.lucy.addons.ALcyPreferencesAddOn
createPreferencesTool, getLongPrefix, getLucyEnv, getPreferences, getPreferencesTool, getShortPrefixMethods inherited from class com.luciad.lucy.addons.ALcyAddOn
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
-
Constructor Details
-
TLcyBingMapsAddOn
public TLcyBingMapsAddOn()Default constructor
-
-
Method Details
-
plugInto
Description copied from class:ALcyFormatAddOnCreates and plugs in the add-on's format.
- Overrides:
plugIntoin classALcyFormatAddOn- Parameters:
aLucyEnv- the Lucy environment to plug into- See Also:
-
createBaseFormat
Returns a new data format for this add-on. Override this method to extend the default format with new functionality.
For example, to alter the icon of the layers of this format, you can decorate the layer factory created in the format:
@Override protected ALcyFormat createBaseFormat() { return new ALcyFormatWrapper(super.createBaseFormat()){ @Override protected ILcdGXYLayerFactory createGXYLayerFactory(){ final ILcdGXYLayerFactory delegate = super.createGXYLayerFactory(); return new ILcdGXYLayerFactory(){ @Override public ILcdGXYLayer createGXYLayer(ILcdModel aModel){ ILcdGXYLayer layer = delegate.createGXYLayer(aModel); if (layer != null){ ILcdIcon icon = ...; layer.setIcon(icon); } return layer; } } } } }When overriding this method, it might be required to override
createCopyrightComponent(com.luciad.view.gxy.ILcdGXYView)as well.- Specified by:
createBaseFormatin classALcyFormatAddOn- Returns:
- a new format for this add-on
- See Also:
-
createFormatWrapper
Description copied from class:ALcyFormatAddOnReturns a new data format wrapper for this add-on. A format wrapper extends the base format with aspects such as asynchronous painting, mutable file behavior, safe guarding, etc.
Overriding this method of an existing add-on should be done with extreme care as add-ons typically rely on the wrappers that should be present (e.g. a safe guard).
- Specified by:
createFormatWrapperin classALcyFormatAddOn- Parameters:
aBaseFormat- the base format to wrap- Returns:
- a new format for this add-on
- See Also:
-
createCopyrightComponent
Returns a component representing the copyright information of the Bing map layers contained in
aGXYViewwhich will be added on the map.This method will be called once for the view of each created
ILcyMapComponent. It is up to the returned component to keep its state in sync with the state ofaGXYView. E.g. when a Bing layer is added, the component should contain the relevant copyright information. When the scale of the view changes, the copyright info in the component should be updated, ... .The default implementation of this method relies on the default implementation of the created
ALcyFormat. When customizing thatALcyFormat, it might be required to override this method as well.- Parameters:
aGXYView- The view- Returns:
- a self-updating component representing the copyright information of the Bing map layers
contained in
aGXYView
-
createLogoComponent
Returns a component representing the logo of the Bing map layers contained in
aGXYViewwhich will be added on the map.This method will be called once for the view of each created
ILcyMapComponent. It is up to the returned component to keep its state in sync with the state ofaGXYView. E.g. when a Bing layer is added, the component should contain the relevant logo.The default implementation of this method relies on the default implementation of the created
ALcyFormat. When customizing thatALcyFormat, it might be required to override this method as well.- Parameters:
aGXYView- The view- Returns:
- a self-updating component representing the logo of the Bing map layers contained in
aGXYView
-