Class NavigatedDisplayCursorReadout

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class NavigatedDisplayCursorReadout extends JPanel
A readout of the lat/lon/alt position of the cursor in a NavigatedDisplay.
Version:
$Revision
Author:
Unidata development team
See Also:
  • Constructor Details

    • NavigatedDisplayCursorReadout

      protected NavigatedDisplayCursorReadout()
      Default bean constructor
    • NavigatedDisplayCursorReadout

      public NavigatedDisplayCursorReadout(NavigatedDisplay navDisplay)
      Create a new readout for the specified display
      Parameters:
      navDisplay - display to listen to
    • NavigatedDisplayCursorReadout

      public NavigatedDisplayCursorReadout(NavigatedDisplay navDisplay, JLabel label)
      Create a new readout and update the specified label.
      Parameters:
      navDisplay - display to listen to
      label - label to update (may be null)
  • Method Details

    • destroy

      public void destroy()
      We're not used anymore. Clean up, remove listeners
    • setNavigatedDisplay

      public void setNavigatedDisplay(NavigatedDisplay navDisplay)
      Set the navigated display that this panel listens to
      Parameters:
      navDisplay - navigated display
    • setValueDisplay

      public void setValueDisplay(JLabel label)
      Use the label to show the readout
      Parameters:
      label - Label to use
    • getValueDisplay

      protected JLabel getValueDisplay()
      get the readout label
      Returns:
      The readout label
    • setActive

      public void setActive(boolean value)
      Set that readout active/inactive
      Parameters:
      value - true to set active
    • getActive

      public boolean getActive()
      Get whether this panel is active or not.
      Returns:
      active state (true if active)
    • setFormatPattern

      public void setFormatPattern(String pattern)
      Set the format pattern for this readout
      Parameters:
      pattern - decimal format pattern