ucar.unidata.view.sounding
Class BackgroundContours

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
Direct Known Subclasses:
DryAdiabats, Isobars, Isotherms, SaturationAdiabats, SaturationMixingRatioContours

public abstract class BackgroundContours
extends ContourLines

Supports background contours on a thermodynamic diagram.

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

Field Summary
protected  Field field
          The field of values to be contoured.
 
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
protected BackgroundContours(BackgroundContours that)
          Constructs from another instance.
protected BackgroundContours(String name, ContourLevels initialContours, RealType rangeType)
          Constructs from a name for the displayable, the contour levels, and the type of the contoured quantity.
 
Method Summary
protected abstract  void coordinateSystemChange(AerologicalCoordinateSystem coordinateSystem)
          Handle a change to the coordinate system transformation.
 boolean equals(Object obj)
          Indicates if this instance is semantically identical to another object.
 int hashCode()
          Gets the hash code of this instance.
 void setCoordinateSystem(AerologicalCoordinateSystem coordinateSystem)
          Sets the associated coordinate system transformation.
 
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, cloneForDisplay, 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
 

Field Detail

field

protected Field field
The field of values to be contoured. This field must be set by the subclass.

Constructor Detail

BackgroundContours

protected BackgroundContours(String name,
                             ContourLevels initialContours,
                             RealType rangeType)
                      throws VisADException,
                             RemoteException
Constructs from a name for the displayable, the contour levels, and the type of the contoured quantity.

Parameters:
name - The name for the displayable.
initialContours - The initial contours.
rangeType - The type of the contoured quantity.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

BackgroundContours

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

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

setCoordinateSystem

public final void setCoordinateSystem(AerologicalCoordinateSystem coordinateSystem)
                               throws VisADException
Sets the associated coordinate system transformation.

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

equals

public final boolean equals(Object obj)
Indicates if this instance is semantically identical to another object.

Overrides:
equals in class Object
Parameters:
obj - The other object.
Returns:
true if and only if this instance is semantically equal to the other object.

hashCode

public final int hashCode()
Gets the hash code of this instance.

Overrides:
hashCode in class Object
Returns:
The hash code of this instance.

coordinateSystemChange

protected abstract void coordinateSystemChange(AerologicalCoordinateSystem coordinateSystem)
                                        throws TypeException,
                                               RemoteException,
                                               VisADException
Handle a change to the coordinate system transformation.

Parameters:
coordinateSystem - The new (p,T) <-> (x,y) transformation.
Throws:
TypeException - Something has the wrong type.
VisADException - VisAD failure.
RemoteException - Java RMI failure.