Class TLcyLayerControlAddOn
java.lang.Object
com.luciad.lucy.addons.ALcyAddOn
com.luciad.lucy.addons.ALcyPreferencesAddOn
com.luciad.lucy.addons.layercontrol.TLcyLayerControlAddOn
It is the responsibility of this addon to keep the layer control in sync with the active map
component of the Lucy application. The layer control component is retrieved from a map component
by calling ILcyGenericMapComponent.getLayerControlComponent()
.
It will also keep the name of the layer control in sync with the name of the map.
Combination with the TLcyMapAddOn
When using this add-on, the layer control panel becomes the responsibility of this add-on.
This must be indicated in the configuration file of the TLcyMapAddOn
, since normally that add-on takes care of the layer control.
Therefore, when not using this add-on, make sure the mapLayerControl.insert
property in map_addon_layer_control.cfg
is set to true
.
- Since:
- 9.1
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ALcyApplicationPaneTool
Creates the add-on's application pane tool.Returns the tool that creates the add-on's application pane.void
plugInto
(ILcyLucyEnv aLucyEnv) Creates and plugs in the add-on's format, preferences tool and application pane tool.void
unplugFrom
(ILcyLucyEnv aLucyEnv) Unplugs the add-on's format, preferences tool and application pane tool.Methods inherited from class com.luciad.lucy.addons.ALcyPreferencesAddOn
createPreferencesTool, getLongPrefix, getLucyEnv, getPreferences, getPreferencesTool, getShortPrefix
Methods inherited from class com.luciad.lucy.addons.ALcyAddOn
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
-
Constructor Details
-
TLcyLayerControlAddOn
public TLcyLayerControlAddOn()Default constructor
-
-
Method Details
-
createApplicationPaneTool
Creates the add-on's application pane tool. Override this method to add to the default application pane tool's functionality.- Returns:
- the add-on's application pane tool
-
plugInto
Creates and plugs in the add-on's format, preferences tool and application pane tool.- Parameters:
aLucyEnv
- the Lucy environment to plug into- See Also:
-
getApplicationPaneTool
Returns the tool that creates the add-on's application pane. SeecreateApplicationPaneTool()
if you want to override or extend the add-on's application pane tool.- Returns:
- the tool that creates the add-on's application pane
-
unplugFrom
Unplugs the add-on's format, preferences tool and application pane tool.- Overrides:
unplugFrom
in classALcyPreferencesAddOn
- Parameters:
aLucyEnv
- the Lucy environment- See Also:
-