ucar.unidata.gis.maps
Class LatLonData

java.lang.Object
  extended by 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 Summary
protected  boolean fastRendering
          fast rendering flag
protected  LatLonLines myLatLon
          The lat lon lines.
 
Constructor Summary
  LatLonData()
          Default ctor
  LatLonData(boolean isLatitude, Color color, float defaultSpacing, float lineWidth, int lineStyle)
          The ctro
  LatLonData(boolean isLatitude, Color color, float defaultSpacing, float lineWidth, int lineStyle, boolean fastRendering)
          The ctro
protected LatLonData(LatLonData that)
          Copy constructor
 
Method Summary
 Color getColor()
          Get the Color property.
 boolean getFastRendering()
          Get the FastRendering property.
 boolean getIsLatitude()
          Get the IsLatitude property.
 LatLonLines getLatLonLines()
          Create, if needed, initialize and return the latlonlines object
 int getLineStyle()
          Get the LineStyle property.
 float getLineWidth()
          Get the LineWidth property.
 float getMaxValue()
          Get the MaxValue property.
 float getMinValue()
          Get the MinValue property.
protected  boolean getRealVisibility()
          Meant to be overwrote by a derived class that needs to determine its own visibility.
 float getSpacing()
          Get the Spacing property.
 boolean getVisible()
          Get the Visible property.
 void initWith(LatLonData that)
          Initialize this object with the state from the given LatLonData
 void setColor(Color value)
          Set the Color property.
 void setFastRendering(boolean value)
          Set the FastRendering property.
 void setIsLatitude(boolean value)
          Set the IsLatitude property.
 void setLineStyle(int value)
          Set the LineStyle property.
 void setLineWidth(float value)
          Set the LineWidth property.
 void setMaxValue(float value)
          Set the MaxValue property.
 void setMinValue(float value)
          Set the MinValue property.
 void setSpacing(float value)
          Set the Spacing property.
 void setVisible(boolean value)
          Set the Visible property.
protected  void stateChanged()
          Gets called when any of the state has been changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myLatLon

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


fastRendering

protected boolean fastRendering
fast rendering flag

Constructor Detail

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 ctro

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

protected LatLonData(LatLonData that)
Copy constructor

Parameters:
that - the other latlondata object
Method Detail

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:
RemoteException
VisADException

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

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