Class EarthDataAnalysisPanel

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

public class EarthDataAnalysisPanel extends JPanel implements TabComponent, RequestHandler
The EarthDataAnalysisPanel groups together a variety of earth data view and chooser components into one main panel that may be used to display the contents of a EarthDataReader object. The grouped components are:
  1. an EarthDataViewPanel that shows a data enhancement view of 2D variable data,
  2. a VariableChooser that allows the user to select which variable from the file to look at,
  3. an EarthDataViewPanel.TrackBar that shows the current mouse cursor position in image and geographic coordinates, and
  4. a number of chooser panels that select the view properties of the currently displayed variable data, such as the palette, enhancement function, overlays, etc.
Since:
3.1.7
Author:
Peter Hollemans
See Also:
  • Constructor Details

    • EarthDataAnalysisPanel

      public EarthDataAnalysisPanel(EarthDataReader reader, List<String> variableList)
      Creates a new analysis panel from the specified reader. The analysis panel is initially set up to show the first variable in the specified list.
      Parameters:
      reader - the reader to use.
      variableList - the list of variable names to make available.
  • Method Details

    • getToolBarButtons

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

      public void resetView()
    • actualSizeView

      public void actualSizeView()
    • fillWindowView

      public void fillWindowView()
    • magnifyView

      public void magnifyView()
    • shrinkView

      public void shrinkView()
    • zoomSelectionView

      public void zoomSelectionView()
    • panView

      public void panView()
    • handleRequest

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

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

      public void setTabbedPaneVisible(boolean isVisible)
      Shows or hides the view controls tabs in this panel.
      Parameters:
      isVisible - the visiblity flag, true to show the tabbed pane or false to hide it.
    • getViewPanelSize

      public Dimension getViewPanelSize()
      Gets the current view panel size.
      Returns:
      the view panel size.
    • setViewPanelSize

      public void setViewPanelSize(Dimension panelSize)
      Sets the current view panel size.
      Parameters:
      panelSize - the new view panel size.
    • showFullScreen

      public void showFullScreen()
      Shows this analysis panel in a full screen mode.
    • getReader

      public EarthDataReader getReader()
      Gets the reader used by this panel.
      Returns:
      the reader object.
    • getView

      public EarthDataView getView()
      Gets the earth data view from the view panel.
      Returns:
      the data view.
    • showNavAnalysisDialog

      public void showNavAnalysisDialog()
      Shows the navigation analysis dialog.
    • dispose

      public void dispose()
      Disposes of any resources used by this panel.
    • resetInteraction

      public void resetInteraction()
      Resets the controller interaction mode.
    • 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.
    • 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.
    • loadProfile

      public void loadProfile(File file) throws IOException, ClassNotFoundException
      Loads a set of overlays and enhancement functions.
      Parameters:
      file - the file to load overlays and enhancements from.
      Throws:
      IOException - if there was an error reading from the specified file.
      ClassNotFoundException - if the classes in the file are unknown to the JVM.
    • saveProfile

      public void saveProfile(File file) throws IOException
      Saves a set of overlays and enhancement functions.
      Parameters:
      file - the file to create.
      Throws:
      IOException - if there was an error writing to the specified file.
    • main

      public static void main(String[] argv)
      Tests this class.
      Parameters:
      argv - the array of command line parameters.