public class TLcyLayerControlAddOn extends ALcyPreferencesAddOn
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.
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
.
TLcyCombinedMapManager.getActiveMapComponent()
Constructor and Description |
---|
TLcyLayerControlAddOn()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected ALcyApplicationPaneTool |
createApplicationPaneTool()
Creates the add-on's application pane tool.
|
ALcyApplicationPaneTool |
getApplicationPaneTool()
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.
|
createPreferencesTool, getLongPrefix, getLucyEnv, getPreferences, getPreferencesTool, getShortPrefix
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
protected ALcyApplicationPaneTool createApplicationPaneTool()
public void plugInto(ILcyLucyEnv aLucyEnv)
aLucyEnv
- the Lucy environment to plug intoALcyAddOn.unplugFrom(com.luciad.lucy.ILcyLucyEnv)
public ALcyApplicationPaneTool getApplicationPaneTool()
createApplicationPaneTool()
if you want to override or extend the add-on's application pane tool.public void unplugFrom(ILcyLucyEnv aLucyEnv)
unplugFrom
in class ALcyPreferencesAddOn
aLucyEnv
- the Lucy environmentALcyAddOn.plugInto(com.luciad.lucy.ILcyLucyEnv)