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 stateChanged()
          Called by the base class when one of the latlon values have changed.
 
Methods inherited from class ucar.unidata.gis.maps.LatLonData
getColor, getFastRendering, getIsLatitude, getLatLonLines, getLineStyle, getLineWidth, getMaxValue, getMinValue, getSpacing, getVisible, setColor, setFastRendering, setIsLatitude, setLineStyle, setLineWidth, setMaxValue, setMinValue, setSpacing, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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

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