Class TLcyLayerControlAddOn

java.lang.Object
com.luciad.lucy.addons.ALcyAddOn
com.luciad.lucy.addons.ALcyPreferencesAddOn
com.luciad.lucy.addons.layercontrol.TLcyLayerControlAddOn

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.

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 Details

    • TLcyLayerControlAddOn

      public TLcyLayerControlAddOn()
      Default constructor
  • Method Details

    • createApplicationPaneTool

      protected ALcyApplicationPaneTool 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

      public void plugInto(ILcyLucyEnv aLucyEnv)
      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

      public ALcyApplicationPaneTool getApplicationPaneTool()
      Returns the tool that creates the add-on's application pane. See createApplicationPaneTool() 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

      public void unplugFrom(ILcyLucyEnv aLucyEnv)
      Unplugs the add-on's format, preferences tool and application pane tool.
      Overrides:
      unplugFrom in class ALcyPreferencesAddOn
      Parameters:
      aLucyEnv - the Lucy environment
      See Also: