Class ViewPanelImpl

All Implemented Interfaces:
ActionListener, EventListener, IdvConstants, ViewPanel

public class ViewPanelImpl extends IdvManager implements ViewPanel
Manages the user interface for the IDV
Author:
IDV development team
  • Field Details

    • ICON_MAP

      public static ImageIcon ICON_MAP
      icon for map views
    • ICON_TRANSECT

      public static ImageIcon ICON_TRANSECT
      icon for transect views
    • ICON_GLOBE

      public static ImageIcon ICON_GLOBE
      icon for globe views
    • ICON_DEFAULT

      public static ImageIcon ICON_DEFAULT
      default icon
    • headerPanelBorder

      public static Border headerPanelBorder
      The border for the header panel
    • headerPanelHighlightBorder

      public static Border headerPanelHighlightBorder
      highlight border for view infos
  • Constructor Details

    • ViewPanelImpl

      public ViewPanelImpl(IntegratedDataViewer idv)
      Create me with the IDV
      Parameters:
      idv - The IDV
  • Method Details

    • getContents

      public JComponent getContents()
      Make, if needed, and return the contents
      Specified by:
      getContents in interface ViewPanel
      Overrides:
      getContents in class WindowHolder
      Returns:
      the gui contents
    • addDisplayControl

      public void addDisplayControl(DisplayControl control)
      Add the given display control
      Specified by:
      addDisplayControl in interface ViewPanel
      Parameters:
      control - display control
    • viewManagerAdded

      public void viewManagerAdded(ViewManager viewManager)
      Be notified of the addition of a VM
      Specified by:
      viewManagerAdded in interface ViewPanel
      Parameters:
      viewManager - The VM
    • viewManagerDestroyed

      public void viewManagerDestroyed(ViewManager viewManager)
      Called when the ViewManager is removed. If we are showing legends in a separate window then we remove the tab
      Specified by:
      viewManagerDestroyed in interface ViewPanel
      Parameters:
      viewManager - The ViewManager that was destroyed
    • viewManagerChanged

      public void viewManagerChanged(ViewManager viewManager)
      Called when the ViewManager is changed. If we are showing legends in a separate window then we update the tab label
      Specified by:
      viewManagerChanged in interface ViewPanel
      Parameters:
      viewManager - The ViewManager that was changed
    • displayControlChanged

      public void displayControlChanged(DisplayControl control)
      Called by the IDV when there has been a change to the display controls.
      Specified by:
      displayControlChanged in interface ViewPanel
      Parameters:
      control - The control that changed
    • removeDisplayControl

      public void removeDisplayControl(DisplayControl control)
      Specified by:
      removeDisplayControl in interface ViewPanel
      Parameters:
      control - The removed control
    • removeControlTab

      public void removeControlTab(DisplayControl control)
      Remove the control from the control tab if we are doing control tabs This calls removeControlTabInThread in the Swing thread
      Parameters:
      control - The control
    • removeControlTab

      public void removeControlTab(DisplayControl control, boolean inSwingThread)
      _more_
      Parameters:
      control - _more_
      inSwingThread - _more_
    • addViewMenuItems

      public void addViewMenuItems(DisplayControl control, List items)
      Add view menu items for the display control
      Specified by:
      addViewMenuItems in interface ViewPanel
      Parameters:
      control - the display control
      items - List of menu items
    • expandControl

      public void expandControl(DisplayControl control)
      Expand the control's gui in the tabs
      Parameters:
      control - The control
    • dockControl

      public void dockControl(DisplayControl control)
      Reinserts the control into the control tabs
      Parameters:
      control - the control
    • undockControl

      public void undockControl(DisplayControl control)
      Remove the control from the tabs
      Parameters:
      control - The control
    • controlMoved

      public void controlMoved(DisplayControl control)
      Handle a control moved
      Specified by:
      controlMoved in interface ViewPanel
      Parameters:
      control - the moved control
    • initButtonState

      protected static void initButtonState(IntegratedDataViewer idv)
      Initialize the button state
      Parameters:
      idv - the idv