Class TLcyLspMapLayerControl

All Implemented Interfaces:
ILcyMapLayerControl, ImageObserver, MenuContainer, Serializable, Accessible

public class TLcyLspMapLayerControl extends JPanel implements ILcyMapLayerControl

This is an implementation of ILcyMapLayerControl that does not contain any user interface elements. It is merely a container for other things, e.g. several ILcyActionBars and an ILcyPopupMenu.

It is up to the user of this class however to set such an ILcyActionBar and to add user interface components to this TLcyLspMapLayerControl. The accelerator keys registered to the actions of that ILcyActionBar are automatically respected.

TLcyLspMapLayerControl instances are typically created by a TLcyLspMapLayerControlFactory. The creation process can be modified by extending this factory.

Since:
2012.0
See Also:
  • Constructor Details

    • TLcyLspMapLayerControl

      public TLcyLspMapLayerControl(ILcyLspMapComponent aMapComponent)
      Creates a new TLcyLspMapLayerControl according to the given construction options.
      Parameters:
      aMapComponent - The ILcyLspMapComponent this layer control works with.
  • Method Details

    • setMapComponent

      public void setMapComponent(ILcyLspMapComponent aMapComponent)
      Sets the map component this layer control operates on.
      Parameters:
      aMapComponent - The map component this layer control operates on.
    • getMapComponent

      public ILcyLspMapComponent getMapComponent()
      Returns the map component this layer control operates on.
      Returns:
      the map component this layer control operates on.
    • getComponent

      public Component getComponent()
      Description copied from interface: ILcyMapLayerControl
      Returns the visual representation of the map layer control. Can never return null.
      Specified by:
      getComponent in interface ILcyMapLayerControl
      Returns:
      the visual representation of the map layer control.
    • getActionBar

      public ILcyActionBar getActionBar()
      Description copied from interface: ILcyMapLayerControl
      Returns the action bar containing the layer actions.
      Specified by:
      getActionBar in interface ILcyMapLayerControl
      Returns:
      the action bar containing the layer actions.
    • setActionBar

      public void setActionBar(ILcyActionBar aActionBar)
      Sets the action bar that is associated with this layer control.
      Parameters:
      aActionBar - The action bar
      See Also:
    • getPopupMenu

      public ILcyPopupMenu getPopupMenu()
      Returns the pop up menu that is associated with this layer control.
      Returns:
      the pop up menu that is associated with this layer control.
    • setPopupMenu

      public void setPopupMenu(ILcyPopupMenu aPopupMenu)
      Sets the pop up menu that is associated with this layer control.
      Parameters:
      aPopupMenu - the pop up menu that is associated with this layer control.
    • getOrderActionBar

      public ILcyActionBar getOrderActionBar()
      Returns the order action bar associated to this layer control.
      Returns:
      the order action bar associated to this layer control.
      See Also:
    • setOrderActionBar

      public void setOrderActionBar(ILcyActionBar aOrderActionBar)
      Set the order action bar associated to this layer control.
      Parameters:
      aOrderActionBar - the order action bar
      See Also: