ucar.unidata.view.sounding
Class MeanWindSet

java.lang.Object
  extended by ucar.visad.display.Displayable
      extended by ucar.visad.display.CompositeDisplayable
          extended by ucar.unidata.view.sounding.MeanWindSet

public class MeanWindSet
extends CompositeDisplayable

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
static String ACTIVE_MEAN_WIND
          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
MeanWindSet(Displayable missingMeanWind, LocalDisplay display)
          Constructs from a prototype Displayable with a missing value and a VisAD display.
 
Method Summary
 void clear()
          Clears the mean-wind Displayable-s from this composite.
 Displayable getActiveMeanWind()
          Returns the active mean-wind property.
 Displayable removeMeanWind(int index)
          Removes a mean-wind Displayable from this composite.
protected  void setActiveMeanWind(Displayable meanWind)
          Sets the active mean-wind property.
 void setActiveMeanWind(int index)
          Sets the active mean-wind Displayable.
 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, 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
 

Field Detail

ACTIVE_MEAN_WIND

public static String ACTIVE_MEAN_WIND
The name of the active mean-wind Displayable property.

Constructor Detail

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 Detail

setMeanWind

public void setMeanWind(int index,
                        Displayable meanWind)
                 throws RemoteException,
                        VisADException
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

public void setActiveMeanWind(int index)
                       throws RemoteException,
                              VisADException
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

protected void setActiveMeanWind(Displayable meanWind)
Sets the active mean-wind property.

Parameters:
meanWind - The new value.

getActiveMeanWind

public Displayable getActiveMeanWind()
Returns the active mean-wind property.

Returns:
The active mean-wind property.

clear

public void clear()
           throws VisADException,
                  RemoteException
Clears the mean-wind Displayable-s from this composite.

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