Package ucar.unidata.view.sounding
Class MeanWindSet
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.CompositeDisplayable
ucar.unidata.view.sounding.MeanWindSet
Provides support for a CompositeDisplayable of mean winds.
- Version:
- $Id: MeanWindSet.java,v 1.12 2005/05/13 18:33:33 jeffmc Exp $
- Author:
- Steven R. Emmerson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
The name of the active mean-wind Displayable 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
ConstructorsConstructorDescriptionMeanWindSet
(Displayable missingMeanWind, LocalDisplay display) Constructs from a prototype Displayable with a missing value and a VisAD display. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears the mean-wind Displayable-s from this composite.Returns the active mean-wind property.removeMeanWind
(int index) Removes a mean-wind Displayable from this composite.void
setActiveMeanWind
(int index) Sets the active mean-wind Displayable.protected void
setActiveMeanWind
(Displayable meanWind) Sets the active mean-wind property.void
setMeanWind
(int index, Displayable meanWind) Adds a mean-wind Displayable to this composite.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_MEAN_WIND
The name of the active mean-wind Displayable property.
-
-
Constructor Details
-
MeanWindSet
public MeanWindSet(Displayable missingMeanWind, LocalDisplay display) throws VisADException, RemoteException Constructs from a prototype Displayable with a missing value and a VisAD display.- Parameters:
missingMeanWind
- A prototype Displayable with a missing value.display
- The VisAD display.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
-
Method Details
-
setMeanWind
Adds a mean-wind Displayable to this composite.- Parameters:
index
- The index of the mean-wind Displayable.meanWind
- The mean-wind Displayable.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
removeMeanWind
public Displayable removeMeanWind(int index) throws RemoteException, VisADException, IndexOutOfBoundsException Removes a mean-wind Displayable from this composite.- Parameters:
index
- The index of the mean-wind Displayable.- Returns:
- The mean-wind Displayable that was removed.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.IndexOutOfBoundsException
- The index was out of range.
-
setActiveMeanWind
Sets the active mean-wind Displayable.- Parameters:
index
- The index of the active mean-wind Displayable. If the index is out of range, then the active mean-wind is set the the missing mean-wind Displayable.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setActiveMeanWind
Sets the active mean-wind property.- Parameters:
meanWind
- The new value.
-
getActiveMeanWind
Returns the active mean-wind property.- Returns:
- The active mean-wind property.
-
clear
Clears the mean-wind Displayable-s from this composite.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-