ucar.unidata.view.sounding
Class AerologicalDisplay.DisplayablePseudoAdiabaticTrajectory

java.lang.Object
  extended by ucar.visad.display.Displayable
      extended by ucar.visad.display.CompositeDisplayable
          extended by ucar.unidata.view.sounding.AerologicalDisplay.DisplayablePseudoAdiabaticTrajectory
Enclosing class:
AerologicalDisplay

protected class AerologicalDisplay.DisplayablePseudoAdiabaticTrajectory
extends CompositeDisplayable

Provides support for displaying the trajectory of a lifted parcel.


Field Summary
 
Fields inherited from class ucar.visad.display.CompositeDisplayable
cnt, label
 
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
 
Constructor Summary
AerologicalDisplay.DisplayablePseudoAdiabaticTrajectory(LocalDisplay display, DisplayRealType displayPressureType, DisplayRealType displayTemperatureType)
          Constructs from a VisAD display and the display types.
 
Method Summary
 void clear()
          Clears this displayable.
 RealType getPressureType()
          Returns the type of the pressure.
 RealType getTemperatureType()
          Returns the type of the temperature.
 boolean isEnabled()
          Indicates whether or not computation of the trajectory is enabled.
 void recompute()
          Computes the trajectory of the lifted parcel.
 void setEnabled(boolean enable)
          Enable or disable computation of the trajectory.
 
Methods inherited from class ucar.visad.display.CompositeDisplayable
addConstantMap, addDisplayable, addListDataListener, clearDisplayables, cloneForDisplay, debug, destroy, destroyAll, displayableCount, fireListDataContentsChanged, fireListDataIntervalAdded, fireListDataIntervalRemoved, getAnimationSet, getDisplayable, indexOf, iterator, lastDisplayable, myAddDataReferences, myRemoveDataReferences, removeDisplayable, removeDisplayable, removeListDataListener, setAdjustFlow, setColor, setColorPalette, setColorUnit, setConstantPosition, setDisplay, setDisplayable, setDisplayMaster, setDisplayUnit, setLineWidth, setPointMode, setPointSize, setSelectedRange, setUseFastRendering, setUseTimesInAnimation, setVisible, setVisible, setVisible, toFront, toString
 
Methods inherited from class ucar.visad.display.Displayable
addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getData, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, hasDataObject, isActive, isUnitCompatible, isVisible, logException, myAddConstantMaps, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setColorPalette, setContourInfo, setDisplayActive, setDisplayInactive, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AerologicalDisplay.DisplayablePseudoAdiabaticTrajectory

public AerologicalDisplay.DisplayablePseudoAdiabaticTrajectory(LocalDisplay display,
                                                               DisplayRealType displayPressureType,
                                                               DisplayRealType displayTemperatureType)
                                                        throws VisADException,
                                                               RemoteException
Constructs from a VisAD display and the display types.

Parameters:
display - The VisAD display.
displayPressureType - The display pressure type.
displayTemperatureType - The display temperature type.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.
Method Detail

setEnabled

public void setEnabled(boolean enable)
                throws VisADException,
                       RemoteException
Enable or disable computation of the trajectory.

Parameters:
enable - Whether or not to enable computation of the trajectory.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

isEnabled

public boolean isEnabled()
Indicates whether or not computation of the trajectory is enabled.

Returns:
true if and only if computation of the trajectory is enabled.

getPressureType

public RealType getPressureType()
Returns the type of the pressure.

Returns:
The type of the pressure.

getTemperatureType

public RealType getTemperatureType()
Returns the type of the temperature.

Returns:
The type of the temperature.

clear

public void clear()
           throws VisADException,
                  RemoteException
Clears this displayable.

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

recompute

public void recompute()
               throws TypeException,
                      RemoteException,
                      VisADException
Computes the trajectory of the lifted parcel.

Throws:
TypeException - Something has the wrong type.
VisADException - VisAD failure.
RemoteException - Java RMI failure.