Class RangeAndBearingReadout

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class RangeAndBearingReadout extends JPanel
A class for displaying a readout of range and bearing values
Version:
$Revision: 1.8 $
Author:
Unidata development team
See Also:
  • Constructor Details

    • RangeAndBearingReadout

      public RangeAndBearingReadout(MapProjectionDisplay mapDisplay)
      Create a new RangeAndBearingReadout for the given display
      Parameters:
      mapDisplay - display to listen to
    • RangeAndBearingReadout

      public RangeAndBearingReadout(MapProjectionDisplay mapDisplay, JLabel label)
      Create a new RangeAndBearingReadout for the given display and use the supplied label
      Parameters:
      mapDisplay - display to listen to
      label - label to update
    • RangeAndBearingReadout

      public RangeAndBearingReadout(MapProjectionDisplay mapDisplay, String rangeName, String bearingName)
      Create a new RangeAndBearingReadout for the given display and use the supplied labels
      Parameters:
      mapDisplay - display to listen to
      rangeName - name (label) for range values
      bearingName - name (label) for bearing values
    • RangeAndBearingReadout

      public RangeAndBearingReadout(MapProjectionDisplay mapDisplay, JLabel label, String rangeName, String bearingName)
      Create a new RangeAndBearingReadout for the given display and use the supplied label to update with the names
      Parameters:
      mapDisplay - display to listen to
      label - label to update
      rangeName - name (label) for range values
      bearingName - name (label) for bearing values
  • Method Details

    • setMapProjectionDisplay

      public void setMapProjectionDisplay(MapProjectionDisplay mapDisplay)
      Set the display to listen to.
      Parameters:
      mapDisplay - new map display
    • setActive

      public void setActive(boolean value)
      Set this active
      Parameters:
      value - true to be active
    • getActive

      public boolean getActive()
      Get whether this readout is active.
      Returns:
      true if active
    • getRangeName

      public String getRangeName()
      Get the name used for the range label.
      Returns:
      range name
    • setRangeName

      public void setRangeName(String newName)
      Set the range name (label)
      Parameters:
      newName - new range name
    • getBearingName

      public String getBearingName()
      Return the name used for bearing values
      Returns:
      bearing label.
    • setBearingName

      public void setBearingName(String newName)
      Set the name used for bearing values.
      Parameters:
      newName - new bearing name.