Package ucar.unidata.view.sounding
Class Trajectory
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.LineDrawing
ucar.unidata.view.sounding.Trajectory
- Direct Known Subclasses:
DryTrajectory
,MixingRatioTrajectory
,SaturationTrajectory
Provides support for displaying a parcel's trajectory.
- Version:
- $Id: Trajectory.java,v 1.20 2005/05/13 18:33:39 jeffmc Exp $
- Author:
- Steven R. Emmerson
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.visad.display.DisplayableData
DisplayableData.DragAdapter
-
Field Summary
FieldsFields inherited from class ucar.visad.display.LineDrawing
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE
Fields inherited from class ucar.visad.display.DisplayableData
MANIPULABLE, renderer, VISIBLE
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Trajectory
(String name, TemperatureCalculatorFactory factory) Constructs from a name and a factory for creating a temperature calculator.protected
Trajectory
(String name, TemperatureCalculatorFactory factory, boolean descending) Constructs from a name, a factory for creating a temperature calculator, and whether or not the trajectory is a descending one.protected
Trajectory
(Trajectory that) Constructs from another instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears the trajectory.Returns the type of the pressure quantity.Returns the type of the temperature quantity.Returns the trajectory.protected void
setTrajectory
(FlatField trajectory) Sets the parcel's trajectory.void
setTrajectory
(Real startPressure, Real startTemperature, Real endPressure) Sets the parcel's trajectory from the starting pressre and temperature, and the ending pressure.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, setDragAdapter, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, showme, toString
Methods inherited from class ucar.visad.display.Displayable
addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDestroyed, 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, setDisplayUnit, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setSelectedRange, setUseTimesInAnimation, toFront
-
Field Details
-
TRAJECTORY
The name of the trajectory property.
-
-
Constructor Details
-
Trajectory
protected Trajectory(String name, TemperatureCalculatorFactory factory) throws RemoteException, VisADException Constructs from a name and a factory for creating a temperature calculator. The trajectory is assumed to be an ascending one.- Parameters:
name
- The name for the displayable.factory
- The factory for creating a temperature calculator.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
Trajectory
protected Trajectory(String name, TemperatureCalculatorFactory factory, boolean descending) throws RemoteException, VisADException Constructs from a name, a factory for creating a temperature calculator, and whether or not the trajectory is a descending one.- Parameters:
name
- The name for the displayable.factory
- The factory for creating a temperature calculator.descending
- Whether or not the trajectory is a descending one (i.e towards higher pressures).- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
Trajectory
Constructs from another instance.- Parameters:
that
- The other instance.- Throws:
VisADException
- if a core VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
-
Method Details
-
setTrajectory
public void setTrajectory(Real startPressure, Real startTemperature, Real endPressure) throws TypeException, VisADException, RemoteException Sets the parcel's trajectory from the starting pressre and temperature, and the ending pressure.- Parameters:
startPressure
- The starting pressure.startTemperature
- The starting temperature.endPressure
- The ending pressure.- Throws:
TypeException
- An argument has the wrong type.VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
clear
Clears the trajectory.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getTrajectory
Returns the trajectory. NB: Does not return a copy.- Returns:
- The parcel's (p -> T) trajectory.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getPressureType
Returns the type of the pressure quantity.- Returns:
- The type of the pressure quantity.
-
getTemperatureType
Returns the type of the temperature quantity.- Returns:
- The type of the temperature quantity.
-
setTrajectory
Sets the parcel's trajectory.- Parameters:
trajectory
- The parcel's (p -> T) trajectory.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-