ucar.unidata.idv.control
Class MapDisplayControl.LatLonState

java.lang.Object
  extended by ucar.unidata.gis.maps.LatLonData
      extended by ucar.unidata.idv.control.MapDisplayControl.LatLonState
Enclosing class:
MapDisplayControl

public static class MapDisplayControl.LatLonState
extends LatLonData

This class holds the state associated with a given lat/lon


Field Summary
 
Fields inherited from class ucar.unidata.gis.maps.LatLonData
fastRendering, myLatLon
 
Constructor Summary
MapDisplayControl.LatLonState()
          Parameterless ctor
MapDisplayControl.LatLonState(boolean isLatitude, Color color, float spacing, float lineWidth, int lineStyle)
          The ctor
MapDisplayControl.LatLonState(LatLonData that)
          Ctor for creating from a LatLonData
 
Method Summary
protected  void checkVisibility()
          Apply the visibility to the myLatLon
protected  boolean getRealVisibility()
          Overwrite the base class method to take into account the display's visibility
protected  void init(MapDisplayControl mapDisplayControl)
          Set the MapDisplayControl
 void initWith(LatLonData that)
          Copy the state from the given LatLonData
 void setColor(Color value)
          _more_
 void setFastRendering(boolean value)
          _more_
 void setLineStyle(int value)
          _more_
 void setLineWidth(float value)
          _more_
 void setSpacing(float value)
          _more_
 void setVisible(boolean value)
          _more_
 void stateChanged()
          Called by the base class when one of the latlon values have changed.
 String toString()
          to string
 
Methods inherited from class ucar.unidata.gis.maps.LatLonData
getColor, getFastRendering, getIsLatitude, getLatLonLines, getLineStyle, getLineWidth, getMaxValue, getMinValue, getSpacing, getVisible, setIsLatitude, setMaxValue, setMinValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapDisplayControl.LatLonState

public MapDisplayControl.LatLonState()
Parameterless ctor


MapDisplayControl.LatLonState

public MapDisplayControl.LatLonState(LatLonData that)
Ctor for creating from a LatLonData

Parameters:
that - The object to copy from

MapDisplayControl.LatLonState

public MapDisplayControl.LatLonState(boolean isLatitude,
                                     Color color,
                                     float spacing,
                                     float lineWidth,
                                     int lineStyle)
The ctor

Parameters:
isLatitude - Is this latitude or longitude
color - Line color
spacing - Line spacing
lineWidth - Line width
lineStyle - Line style
Method Detail

init

protected void init(MapDisplayControl mapDisplayControl)
Set the MapDisplayControl

Parameters:
mapDisplayControl - The display I am part of

initWith

public void initWith(LatLonData that)
Copy the state from the given LatLonData

Overrides:
initWith in class LatLonData
Parameters:
that - The LatLonData to copy from

setColor

public void setColor(Color value)
_more_

Overrides:
setColor in class LatLonData
Parameters:
value - _more_

setVisible

public void setVisible(boolean value)
_more_

Overrides:
setVisible in class LatLonData
Parameters:
value - _more_

setFastRendering

public void setFastRendering(boolean value)
_more_

Overrides:
setFastRendering in class LatLonData
Parameters:
value - _more_

setLineStyle

public void setLineStyle(int value)
_more_

Overrides:
setLineStyle in class LatLonData
Parameters:
value - _more_

setSpacing

public void setSpacing(float value)
_more_

Overrides:
setSpacing in class LatLonData
Parameters:
value - _more_

setLineWidth

public void setLineWidth(float value)
_more_

Overrides:
setLineWidth in class LatLonData
Parameters:
value - _more_

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 LatLonData
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 LatLonData

toString

public String toString()
to string

Overrides:
toString in class Object
Returns:
to string