Class LatLonData

java.lang.Object
ucar.unidata.gis.maps.LatLonData
Direct Known Subclasses:
MapDisplayControl.LatLonState

public class LatLonData extends Object
A data structure to hold display attributes for lat/lon lines
  • Field Details

    • myLatLon

      protected LatLonLines myLatLon
      The lat lon lines. We create this when asked.
    • fastRendering

      protected boolean fastRendering
      fast rendering flag
  • Constructor Details

    • LatLonData

      public LatLonData()
      Default ctor
    • LatLonData

      public LatLonData(boolean isLatitude, Color color, float defaultSpacing, float lineWidth, int lineStyle)
      The ctro
      Parameters:
      isLatitude - Is it lat or lon
      color - The color
      defaultSpacing - The spacing
      lineWidth - The line width
      lineStyle - The line style
    • LatLonData

      public LatLonData(boolean isLatitude, Color color, float defaultSpacing, float lineWidth, int lineStyle, boolean fastRendering)
      The constructor
      Parameters:
      isLatitude - Is it lat or lon
      color - The color
      defaultSpacing - The spacing
      lineWidth - The line width
      lineStyle - The line style
      fastRendering - true to use fast rendering
    • LatLonData

      public LatLonData(boolean isLatitude, Color color, float defaultSpacing, float base, float lineWidth, int lineStyle, boolean fastRendering)
      The constructor
      Parameters:
      isLatitude - Is it lat or lon
      color - The color
      defaultSpacing - The spacing
      base - The base
      lineWidth - The line width
      lineStyle - The line style
      fastRendering - true to use fast rendering
    • LatLonData

      protected LatLonData(LatLonData that)
      Copy constructor
      Parameters:
      that - the other latlondata object
  • Method Details

    • initWith

      public void initWith(LatLonData that)
      Initialize this object with the state from the given LatLonData
      Parameters:
      that - The other object
    • stateChanged

      protected void stateChanged()
      Gets called when any of the state has been changed. Is here so a subclass can be easily notified when something changes.
    • getLatLonLines

      public LatLonLines getLatLonLines() throws VisADException, RemoteException
      Create, if needed, initialize and return the latlonlines object.
      Returns:
      The LatLonLines object
      Throws:
      VisADException - the VisAD exception
      RemoteException - the remote exception
    • getRealVisibility

      protected boolean getRealVisibility()
      Meant to be overwrote by a derived class that needs to determine its own visibility.
      Returns:
      The actual visibility to apply to the lines
    • setColor

      public void setColor(Color value)
      Set the Color property.
      Parameters:
      value - The new value for Color
    • getColor

      public Color getColor()
      Get the Color property.
      Returns:
      The Color
    • setSpacing

      public void setSpacing(float value)
      Set the Spacing property.
      Parameters:
      value - The new value for Spacing
    • getSpacing

      public float getSpacing()
      Get the Spacing property.
      Returns:
      The Spacing
    • setBase

      public void setBase(float value)
      Set the Base property.
      Parameters:
      value - The new value for Base
    • getBase

      public float getBase()
      Get the Base property.
      Returns:
      The Base
    • setLineWidth

      public void setLineWidth(float value)
      Set the LineWidth property.
      Parameters:
      value - The new value for LineWidth
    • getLineWidth

      public float getLineWidth()
      Get the LineWidth property.
      Returns:
      The LineWidth
    • setLineStyle

      public void setLineStyle(int value)
      Set the LineStyle property.
      Parameters:
      value - The new value for LineStyle
    • getLineStyle

      public int getLineStyle()
      Get the LineStyle property.
      Returns:
      The LineStyle
    • setIsLatitude

      public void setIsLatitude(boolean value)
      Set the IsLatitude property.
      Parameters:
      value - The new value for IsLatitude
    • getIsLatitude

      public boolean getIsLatitude()
      Get the IsLatitude property.
      Returns:
      The IsLatitude
    • setMinValue

      public void setMinValue(float value)
      Set the MinValue property.
      Parameters:
      value - The new value for MinValue
    • getMinValue

      public float getMinValue()
      Get the MinValue property.
      Returns:
      The MinValue
    • setMaxValue

      public void setMaxValue(float value)
      Set the MaxValue property.
      Parameters:
      value - The new value for MaxValue
    • getMaxValue

      public float getMaxValue()
      Get the MaxValue property.
      Returns:
      The MaxValue
    • setVisible

      public void setVisible(boolean value)
      Set the Visible property.
      Parameters:
      value - The new value for Visible
    • getVisible

      public boolean getVisible()
      Get the Visible property.
      Returns:
      The Visible
    • setFastRendering

      public void setFastRendering(boolean value)
      Set the FastRendering property.
      Parameters:
      value - The new value for FastRendering
    • getFastRendering

      public boolean getFastRendering()
      Get the FastRendering property.
      Returns:
      The FastRendering