Package ucar.unidata.view.sounding
Class WindProfileSet
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.CompositeDisplayable
ucar.unidata.view.sounding.WindProfileSet
Provides support for a CompositeDisplayable of WindProfile-s.
- Version:
- $Id: WindProfileSet.java,v 1.24 2005/05/13 18:33:42 jeffmc Exp $
- Author:
- Steven R. Emmerson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
The name of the active wind profile property.static String
The name of the wind direction property.static String
The name of the geopotential altitude property.static String
The name of the geopotential altitude extent property.static String
The name of the maximum wind speed property.static String
The name of the pressure property.static String
The name of the wind speed property.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
ConstructorsConstructorDescriptionWindProfileSet
(WindProfile missingWindProfile, LocalDisplay display) Constructs with a given missing wind profile and VisAD display. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addWindProfile
(int index, WindProfile windProfile) Sets a wind profile of this composite.void
addWindProfile
(WindProfile windProfile) Adds a wind profile to this composite.void
clear()
Clears the wind profiles from this composite.Returns the active wind profile property.Returns the profile wind direction property.Returns the geopotential altitude property.Returns the geopotential altitude extent property.Returns the type of the geopotential altitude quantity.Returns the maximum profile wind speed property.Returns the type of the southerly wind quantity.getSpeed()
Returns the profile wind speed property.Returns the type of the westerly wind quantity.void
removeWindProfile
(int index) Removes a wind profile from this composite.void
setActiveWindProfile
(int index) Sets the index of the active wind-profile.protected void
setActiveWindProfile
(WindProfile profile) Sets the active wind profile property.protected void
setDirection
(Real dir) Sets the profile wind direction property.void
setGeopotentialAltitude
(Real geoAlt) Sets the geopotential altitude property.protected void
Sets the geopotential altitude extent property.protected void
Sets the geopotential altitude extent property.protected void
setMaximumSpeed
(Real speed) Sets the maximum profile wind speed property.void
setOriginalProfile
(int index) Reset the profile at the given indexvoid
setPressure
(Real pressure) Sets the pressure property.protected void
Sets the profile wind speed property.void
setWindLevels
(Gridded1DSet levels) Set the levels of the wind profile to display.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, toString
Methods 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
-
ACTIVE_WIND_PROFILE
The name of the active wind profile property. -
GEOPOTENTIAL_ALTITUDE
The name of the geopotential altitude property. -
PRESSURE
The name of the pressure property. -
SPEED
The name of the wind speed property. -
DIRECTION
The name of the wind direction property. -
GEOPOTENTIAL_ALTITUDE_EXTENT
The name of the geopotential altitude extent property. -
MAXIMUM_SPEED
The name of the maximum wind speed property.
-
-
Constructor Details
-
WindProfileSet
public WindProfileSet(WindProfile missingWindProfile, LocalDisplay display) throws VisADException, RemoteException Constructs with a given missing wind profile and VisAD display.- Parameters:
missingWindProfile
- The missing wind profile.display
- The VisAD display.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
-
Method Details
-
addWindProfile
Adds a wind profile to this composite.- Parameters:
windProfile
- The wind profile to be added.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
addWindProfile
public void addWindProfile(int index, WindProfile windProfile) throws RemoteException, VisADException Sets a wind profile of this composite.- Parameters:
index
- The index of the wind profile.windProfile
- The wind profile value.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
removeWindProfile
public void removeWindProfile(int index) throws IndexOutOfBoundsException, RemoteException, VisADException Removes a wind profile from this composite.- Parameters:
index
- The index of the wind profile.- Throws:
IndexOutOfBoundsException
- The index is out of range.VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setActiveWindProfile
Sets the index of the active wind-profile.- Parameters:
index
- The index of the active wind profile. A value of -1 means that there is to be no active wind profile.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setActiveWindProfile
Sets the active wind profile property.- Parameters:
profile
- The new value.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getActiveWindProfile
Returns the active wind profile property.- Returns:
- The active wind profile property.
-
setOriginalProfile
Reset the profile at the given index- Parameters:
index
- index of profile- Throws:
RemoteException
- Java RMI problemVisADException
- VisAD problem
-
setGeopotentialAltitude
Sets the geopotential altitude property.- Parameters:
geoAlt
- The new value.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getGeopotentialAltitude
Returns the geopotential altitude property.- Returns:
- The geopotential altitude property.
-
setGeopotentialAltitudeExtent
Sets the geopotential altitude extent property.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setGeopotentialAltitudeExtent
Sets the geopotential altitude extent property.- Parameters:
extent
- The new value.
-
getGeopotentialAltitudeExtent
Returns the geopotential altitude extent property.- Returns:
- The geopotential altitude extent property.
-
setWindLevels
Set the levels of the wind profile to display.- Parameters:
levels
- the set of levels (if null, display all);- 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.
-
setSpeed
Sets the profile wind speed property.- Parameters:
spd
- The new value.
-
getSpeed
Returns the profile wind speed property.- Returns:
- The profile wind speed property.
-
setDirection
Sets the profile wind direction property.- Parameters:
dir
- The new value.
-
getDirection
Returns the profile wind direction property.- Returns:
- The profile wind direction property.
-
getGeopotentialAltitudeRealType
Returns the type of the geopotential altitude quantity.- Returns:
- The type of the geopotential altitude quantity.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setMaximumSpeed
Sets the maximum profile wind speed property.- Parameters:
speed
- The new value.
-
getMaximumSpeed
Returns the maximum profile wind speed property.- Returns:
- The maximum profile wind speed property.
-
getWesterlyWindRealType
Returns the type of the westerly wind quantity.- Returns:
- The type of the westerly wind quantity.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
getSoutherlyWindRealType
Returns the type of the southerly wind quantity.- Returns:
- The type of the southerly wind quantity.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
clear
Clears the wind profiles from this composite.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-