Class MapDisplayControl.LatLonLabelState

java.lang.Object
ucar.unidata.gis.maps.LatLonLabelData
ucar.unidata.idv.control.MapDisplayControl.LatLonLabelState
Enclosing class:
MapDisplayControl

public static class MapDisplayControl.LatLonLabelState extends LatLonLabelData
This class holds the state associated with a given lat/lon
  • Constructor Details

    • LatLonLabelState

      public LatLonLabelState()
      Parameterless ctor
    • LatLonLabelState

      public LatLonLabelState(LatLonLabelData that)
      Ctor for creating from a LatLonData
      Parameters:
      that - The object to copy from
    • LatLonLabelState

      public LatLonLabelState(boolean isLatitude, float spacing)
      The ctor
      Parameters:
      isLatitude - Is this latitude or longitude
      spacing - Line spacing
  • Method Details

    • init

      protected void init(MapDisplayControl mapDisplayControl)
      Set the MapDisplayControl
      Parameters:
      mapDisplayControl - The display I am part of
    • initWith

      public void initWith(LatLonLabelData that)
      Copy the state from the given LatLonData
      Overrides:
      initWith in class LatLonLabelData
      Parameters:
      that - The LatLonData to copy from
    • setColor

      public void setColor(Color value)
      Set the color
      Overrides:
      setColor in class LatLonLabelData
      Parameters:
      value - the new Color
    • setVisible

      public void setVisible(boolean value)
      Set the visibility
      Overrides:
      setVisible in class LatLonLabelData
      Parameters:
      value - true to be visible
    • setFastRendering

      public void setFastRendering(boolean value)
      Set the fast rendering flag
      Overrides:
      setFastRendering in class LatLonLabelData
      Parameters:
      value - true to turn on fast rendering
    • setLabelLines

      public void setLabelLines(float[] values)
      Set the label lines of the lines
      Overrides:
      setLabelLines in class LatLonLabelData
      Parameters:
      values - the label lines
    • setInterval

      public void setInterval(float value)
      Set the spacing of the lines
      Overrides:
      setInterval in class LatLonLabelData
      Parameters:
      value - the line spacing
    • setBaseValue

      public void setBaseValue(float value)
      Set the base
      Overrides:
      setBaseValue in class LatLonLabelData
      Parameters:
      value - the line width
    • setFont

      public void setFont(Object value)
      Set the font
      Overrides:
      setFont in class LatLonLabelData
      Parameters:
      value - the label font
    • setAlignment

      public void setAlignment(String value)
      Set the alignment point
      Overrides:
      setAlignment in class LatLonLabelData
      Parameters:
      value - the alignment point
    • setLabelFormat

      public void setLabelFormat(String value)
      Set the label format
      Overrides:
      setLabelFormat in class LatLonLabelData
      Parameters:
      value - the label format
    • setSphere

      public void setSphere(boolean value)
      Set the sphere flag
      Overrides:
      setSphere in class LatLonLabelData
      Parameters:
      value - the sphere flag
    • setUse360

      public void setUse360(boolean value)
      Set the use360 property
      Overrides:
      setUse360 in class LatLonLabelData
      Parameters:
      value - true to use 0-360 for longitudes
    • checkVisibility

      protected void checkVisibility()
      Apply the visibility to the myLatLon
    • getRealVisibility

      protected boolean getRealVisibility()
      Overwrite the base class method to take into account the display's visibility
      Overrides:
      getRealVisibility in class LatLonLabelData
      Returns:
      THe actual visibility to use
    • stateChanged

      public void stateChanged()
      Called by the base class when one of the latlon values have changed.
      Overrides:
      stateChanged in class LatLonLabelData
    • toString

      public String toString()
      to string
      Overrides:
      toString in class Object
      Returns:
      to string