Class NavigationChooser

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

public class NavigationChooser extends JPanel implements TabComponent

The NavigationChooser class allows the user to modify the navigation affine transform for a set of earth data variables. The user may use a visual correction mode, or a manual correction mode.

The chooser signals a change in the visual navigation correction mode by firing a PropertyChangeEvent whose property name is NAVIGATION_MODE_PROPERTY and value is TRANSLATION or ROTATION. The user object should perform a correction of the indicated type.

The chooser signals a manual navigation correction by firing a PropertyChangeEvent whose property name is AFFINE_PROPERTY and value is the affine transform to apply. If the affine transform to apply is null, then the navigation transform for the user-specified list of variables should be reset.

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

  • Constructor Details

    • NavigationChooser

      public NavigationChooser(List variableNames)
      Creates a new navigation chooser panel.
      Parameters:
      variableNames - the list of variable names to make available.
  • Method Details

    • getMode

      public String getMode()
      Gets the navigation mode, or null if no mode is selected.
    • getVariables

      public List getVariables()
      Gets the list of selected variable names.
    • deactivate

      public void deactivate()
      Deactivates the navigation so that no navigation mode is selected.
    • getIcon

      public Icon getIcon()
      Gets the navigation chooser 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()
      Gets the navigation chooser 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()
      Gets the navigation chooser 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.