ucar.unidata.view.sounding
Class SaturationAdiabats

java.lang.Object
  extended by ucar.visad.display.Displayable
      extended by ucar.visad.display.DisplayableData
          extended by ucar.visad.display.LineDrawing
              extended by ucar.visad.display.ContourLines
                  extended by ucar.unidata.view.sounding.BackgroundContours
                      extended by ucar.unidata.view.sounding.SaturationAdiabats

public final class SaturationAdiabats
extends BackgroundContours

Supports background saturation adiabats on a thermodynamic diagram.

Version:
$Id: SaturationAdiabats.java,v 1.18 2005/05/13 18:33:36 jeffmc Exp $
Author:
Steven R. Emmerson

Field Summary
 
Fields inherited from class ucar.unidata.view.sounding.BackgroundContours
field
 
Fields inherited from class ucar.visad.display.ContourLines
COLOR_FILL, CONTOUR_LEVELS, CONTOUR_REAL_TYPE, LABELING
 
Fields inherited from class ucar.visad.display.LineDrawing
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE
 
Fields inherited from class ucar.visad.display.DisplayableData
MANIPULABLE, VISIBLE
 
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
 
Constructor Summary
  SaturationAdiabats()
          Constructs from nothing.
  SaturationAdiabats(AerologicalCoordinateSystem coordinateSystem)
          Constructs from a (p,T) <-> (x,y) coordinate system transformation.
protected SaturationAdiabats(SaturationAdiabats that)
          Constructs from another instance.
 
Method Summary
 Displayable cloneForDisplay()
          Returns a clone of this instance suitable for another VisAD display.
protected  void coordinateSystemChange(AerologicalCoordinateSystem coordinateSystem)
          Handles a change to the (p,T) <-> (x,y) coordinate system transformation.
protected  float getRangeMaximum()
          Returns the maximum value of the range.
protected  float getRangeMinimum()
          Returns the minimum value of the range.
 Real getTemperature(Real airPressure, Real satEquivPotTem)
          Returns the air temperature given air pressure and saturation equivalent potential temperature.
 
Methods inherited from class ucar.unidata.view.sounding.BackgroundContours
equals, hashCode, setCoordinateSystem
 
Methods inherited from class ucar.visad.display.ContourLines
getColorFillEnabled, getContourLevels, getContourRealType, getContourValues, isLabeling, setColorFill, setContourInterval, setContourInterval, setContourLevels, setContourRealType, setDisplayUnit, setLabeling, setRange, setScalarMaps
 
Methods inherited from class ucar.visad.display.LineDrawing
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBA
 
Methods inherited from class ucar.visad.display.DisplayableData
addAction, dataChange, destroy, getActive, getAnimationSet, getData, getDataRenderer, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, toString
 
Methods inherited from class ucar.visad.display.Displayable
addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setAdjustFlow, setColorPalette, setColorPalette, setColorUnit, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setSelectedRange, setUseTimesInAnimation, toFront
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SaturationAdiabats

public SaturationAdiabats()
                   throws VisADException,
                          RemoteException
Constructs from nothing.

Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

SaturationAdiabats

public SaturationAdiabats(AerologicalCoordinateSystem coordinateSystem)
                   throws VisADException,
                          RemoteException
Constructs from a (p,T) <-> (x,y) coordinate system transformation.

Parameters:
coordinateSystem - The (p,T) <-> (x,y) transformation.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

SaturationAdiabats

protected SaturationAdiabats(SaturationAdiabats that)
                      throws RemoteException,
                             VisADException
Constructs from another instance.

Parameters:
that - The other instance.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.
Method Detail

coordinateSystemChange

protected void coordinateSystemChange(AerologicalCoordinateSystem coordinateSystem)
                               throws TypeException,
                                      RemoteException,
                                      VisADException
Handles a change to the (p,T) <-> (x,y) coordinate system transformation.

Specified by:
coordinateSystemChange in class BackgroundContours
Parameters:
coordinateSystem - The new (p,T) <-> (x,y) transformation.
Throws:
TypeException - Somthing's type is incorrect.
VisADException - VisAD failure.
RemoteException - Java RMI failure.

getRangeMinimum

protected float getRangeMinimum()
Returns the minimum value of the range.

Returns:
The minimum value of the range.

getRangeMaximum

protected float getRangeMaximum()
Returns the maximum value of the range.

Returns:
The maximum value of the range.

getTemperature

public Real getTemperature(Real airPressure,
                           Real satEquivPotTem)
                    throws VisADException
Returns the air temperature given air pressure and saturation equivalent potential temperature.

Parameters:
airPressure - The air pressure.
satEquivPotTem - The saturation equivalent potential temperature.
Returns:
Air temperature.
Throws:
VisADException - VisAD failure.

cloneForDisplay

public Displayable cloneForDisplay()
                            throws VisADException,
                                   RemoteException
Returns a clone of this instance suitable for another VisAD display. Underlying data objects are not cloned.

Overrides:
cloneForDisplay in class DisplayableData
Returns:
A clone of this instance.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.