Class OverlayListChooser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RequestHandler, TabComponent

public class OverlayListChooser extends JPanel implements TabComponent, RequestHandler

The OverlayListChooser class is a panel that allows the user to manipulate a list of EarthDataOverlay objects. The user may add a new overlay, delete an overlay, edit the overlay properties, and change the overlay layer.

The chooser signals a change in the overlay list by firing a property change event whose property name is given by OVERLAY_LIST_PROPERTY. See the AbstractOverlayListPanel class for details on how the property change events should be interpreted.

Since:
3.1.7
Author:
Peter Hollemans
See Also:
  • Field Details

    • OVERLAY_LIST_PROPERTY

      public static final String OVERLAY_LIST_PROPERTY
      The overlay list property.
  • Constructor Details

    • OverlayListChooser

      public OverlayListChooser(EarthDataReader reader, List variableList)
      Creates a new overlay list chooser.
      Parameters:
      reader - the reader to use for data variables.
      variableList - the list of allowed data variable names.
  • Method Details

    • getToolBarButtons

      public static List<AbstractButton> getToolBarButtons()
      Since:
      3.8.1
    • handleRequest

      public void handleRequest(Request request)
      Specified by:
      handleRequest in interface RequestHandler
    • canHandleRequest

      public boolean canHandleRequest(Request request)
      Specified by:
      canHandleRequest in interface RequestHandler
    • getToolTip

      public String getToolTip()
      Description copied from interface: TabComponent
      Gets the tab tooltip.
      Specified by:
      getToolTip in interface TabComponent
      Returns:
      the tooltip text if the tab is to have an appearing tooltip when the mouse hovers over the tab, or null if no tooltip is required.
    • getTitle

      public String getTitle()
      Description copied from interface: TabComponent
      Gets the tab title.
      Specified by:
      getTitle in interface TabComponent
      Returns:
      the title to be used if the tab is to have a text label as a title, or null if no title is required.
    • getOverlays

      public List getOverlays()
      Gets the list of overlays.
    • addOverlays

      public void addOverlays(List overlays)
      Gets a list of overlays to the chooser.
    • getIcon

      public Icon getIcon()
      Description copied from interface: TabComponent
      Gets the tab icon.
      Specified by:
      getIcon in interface TabComponent
      Returns:
      the icon to be used if the tab is to have an icon beside the title label, or null if no icon is required.
    • addPropertyChangeListener

      public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
      Redirects overlay property listeners to the list panel.
      Overrides:
      addPropertyChangeListener in class Container