Package ucar.unidata.view.sounding
Class SoundingSet
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.CompositeDisplayable
ucar.unidata.view.sounding.SoundingSet
Provides support for a CompositeDisplayable of Sounding-s. For purposes of
PropertyChangeEvent-s, the last-added Sounding is the active one.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StringThe name of the active sounding property.static StringThe name of the dew-point property.static StringThe name of the presure property.static StringThe name of the temperature property.Fields inherited from class ucar.visad.display.CompositeDisplayable
cnt, labelFields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSounding(int index, Sounding sounding) Adds a sounding to this set.voidaddSounding(Sounding sounding) Adds a sounding to this set.voidclear()Clears this composite of all children.Returns the active sounding.Returns the dew-point property.Returns the set of types of the dew-points.Returns the pressure property.Returns the set of types of the pressures.Returns the temperature property.Returns the set of types of the temperatures.voidremoveSounding(int index) Removes a sounding from this set.voidsetActiveSounding(int index) Sets the active sounding.protected voidsetActiveSounding(Sounding sounding) Sets the active sounding property.voidsetConstrainProfiles(boolean yes) Sets the constrainProfiles property.voidsetLineStyle(int style, int index) _more_voidsetLinesWidth(float width, int lowerIndex, int upperIndex) _more_voidsetOriginalProfiles(int index) Reset the profiles at the given indexvoidsetPressure(Real pressure) Sets the pressure property.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, setManipulable, setPointMode, setPointSize, setSelectedRange, setUseFastRendering, setUseTimesInAnimation, setVisible, setVisible, setVisible, toFront, toStringMethods inherited from class ucar.visad.display.Displayable
addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getData, getDestroyed, 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
-
Field Details
-
PRESSURE
The name of the presure property. -
TEMPERATURE
The name of the temperature property. -
DEW_POINT
The name of the dew-point property. -
ACTIVE_SOUNDING
The name of the active sounding property.
-
-
Constructor Details
-
SoundingSet
Constructs from a VisAD display. The value of the constrainProfiles property is initiallytrue.- Parameters:
display- The VisAD display.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
-
Method Details
-
addSounding
Adds a sounding to this set. The sounding's constrainProfiles property is set to the value of this instance's constrainProfiles property. The sounding will be add to the end of the set.- Parameters:
sounding- The sounding to be added.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
addSounding
Adds a sounding to this set. The sounding's constrainProfiles property is set to the value of this instance's constrainProfiles property.- Parameters:
index- The index of the sounding.sounding- The sounding to be added.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
removeSounding
public void removeSounding(int index) throws IndexOutOfBoundsException, RemoteException, VisADException Removes a sounding from this set.- Parameters:
index- The index of the sounding.- Throws:
IndexOutOfBoundsException- The index is out of range.VisADException- VisAD failure.RemoteException- Java RMI failure.
-
setOriginalProfiles
Reset the profiles at the given index- Parameters:
index- index of profile- Throws:
RemoteException- Java RMI exceptionVisADException- VisAD problem
-
setConstrainProfiles
Sets the constrainProfiles property. When this property is set, profile temperatures are constrained to be equal to or greater than their corresponding profile dew-points. This method sets the constrainProfiles property in all Sounding children to match the given value.- Parameters:
yes- Whether or not to constrain temperatures to be equal to or greater than corresponding dew-points.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
setPressure
Sets the pressure property.- Parameters:
pressure- The pressure property.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
getPressure
Returns the pressure property.- Returns:
- The pressure property.
-
getTemperature
Returns the temperature property.- Returns:
- The temperature property.
-
getDewPoint
Returns the dew-point property.- Returns:
- The dew-point property.
-
getPressureRealTypeSet
Returns the set of types of the pressures.- Returns:
- The set of types of the pressures.
- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
getTemperatureRealTypeSet
Returns the set of types of the temperatures.- Returns:
- The set of types of the temperatures.
- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
getDewPointRealTypeSet
Returns the set of types of the dew-points.- Returns:
- The set of types of the dew-points.
- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
clear
Clears this composite of all children.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
setActiveSounding
Sets the active sounding.- Parameters:
index- The index of the active sounding. A value of -1 means that there is to be no active sounding.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
setActiveSounding
Sets the active sounding property.- Parameters:
sounding- The new values.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
getActiveSounding
Returns the active sounding. NB: Does not reaturn a copy.- Returns:
- The active sounding.
-
setLinesWidth
public void setLinesWidth(float width, int lowerIndex, int upperIndex) throws RemoteException, VisADException _more_- Parameters:
width- _more_lowerIndex- _more_upperIndex- _more_- Throws:
RemoteException- _more_VisADException- _more_
-
setLineStyle
_more_- Parameters:
style- _more_index- _more_- Throws:
RemoteException- _more_VisADException- _more_
-