Package ucar.unidata.view.sounding
Class WindStaffDisplay
java.lang.Object
ucar.visad.display.DisplayMaster
ucar.unidata.view.sounding.WindProfileDisplay
ucar.unidata.view.sounding.WindStaffDisplay
Provides support for a display comprising a wind staff.
- Version:
- $Id: WindStaffDisplay.java,v 1.21 2005/05/13 18:33:42 jeffmc Exp $
- Author:
- Don Murray, Steven R. Emmerson
-
Field Summary
Fields inherited from class ucar.unidata.view.sounding.WindProfileDisplay
ACTIVE_MEAN_WIND, ACTIVE_PROFILE, GEOPOTENTIAL_ALTITUDE, PROFILE_DIRECTION, PROFILE_SPEEDFields inherited from class ucar.visad.display.DisplayMaster
behavior, defaultMouseFunctions, log_, POINT_MODE -
Constructor Summary
ConstructorsConstructorDescriptionConstructs from nothing.WindStaffDisplay(Real minZ, Real maxZ) Constructs with a given altitude extent. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds the set of ScalarMap-s specific to this instance.protected voidHandles a change to the displayed altitude extentstatic voidTests this class.protected DisplayableReturns the MeanWind Displayable with a missing mean-wind.protected DisplayablenewMeanWind(DataReference meanWindRef) Returns a MeanWind Displayable corresponding to a data reference for a mean-wind Tuple.protected DisplayablenewMeanWind(Tuple meanWind) Returns a MeanWind Displayable corresponding to a mean-wind Tuple.protected WindProfileReturns the displayableWindProfileappropriate to this instance.voidsetBackgroundVisible(boolean visable) Display or hide the backgroundprotected voidSets the extent of the center pole.voidsetCenterPoleVisible(boolean visible) Sets the visibility of the center pole.protected voidsetCursorPosition(double[] position) Sets the cursor position.Methods inherited from class ucar.unidata.view.sounding.WindProfileDisplay
addProfile, clear, computeIncrement, getAltitudeUnit, getCursorPosition, getDefaultMaxAltitude, getDefaultMinAltitude, getGeopotentialAltitude, getMaxDisplayAltitude, getMaxProfileAltitude, getMinDisplayAltitude, getMinProfileAltitude, getProfileDirection, getProfileSpeed, getWindProfile, getWindProfileSet, isAutoscaleAltitude, removeMeanWind, removeProfile, setActiveMeanWind, setActiveWindProfile, setAltitudeColorMapRange, setAltitudeMapRange, setAltitudeScaleVisible, setAltitudeUnit, setAutoscaleAltitude, setDisplayAltitudeExtent, setDisplayAltitudeExtent, setGeopotentialAltitude, setMeanWind, setMeanWind, setMeanWindVisible, setProfileVisibleMethods inherited from class ucar.visad.display.DisplayMaster
addDisplayable, addDisplayListener, addKeyboardBehavior, addPropertyChangeListener, addPropertyChangeListener, addScalarMap, addScalarMaps, addVetoableChangeListener, addVetoableChangeListener, buildAnimationSet, dataChange, destroy, draw, ensureInactive, equals, firePropertyChange, firePropertyChange, getAnimationSetFromDisplayables, getAnimationStringVisible, getBackground, getComponent, getDestroyed, getDisplay, getDisplayableCount, getDisplayables, getDisplayables, getDisplayAspect, getDisplayComponent, getDisplayScale, getForeground, getImage, getMouseBehavior, getMouseFunctionMap, getOffscreenDimension, getProjectionMatrix, getRotation, getSavedProjectionMatrix, getScale, getScreenBounds, getStereoAvailable, getWaitMessageVisible, handleMouseWheelMoved, hashCode, indexOf, init, is3D, isActive, isPointMode, printMatrix, printMe, rebuild, rebuildDisplay, reDisplayAll, removeDisplayable, removeDisplayables, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, removeScalarMaps, removeVetoableChangeListener, removeVetoableChangeListener, replaceScalarMap, reScale, resetClipDistance, resetMouseFunctions, resetProjection, rotate, rotateX, rotateY, rotateZ, saveCurrentDisplay, saveCurrentDisplay, saveCurrentDisplay, saveProjection, setActive, setAnimation, setAnimationStringVisible, setBackground, setDefaultMouseFunctions, setDisplayables, setDisplayables, setDisplayActive, setDisplayAspect, setDisplayInactive, setEyePosition, setForeground, setKeyboardBehavior, setKeyboardEventMap, setKeyboardEventMap, setMouseFunctions, setOffscreenDimension, setPointMode, setProjectionMatrix, setRebuildNecessary, setWaitMessageVisible, setWheelEventMap, translate, zoom, zoom
-
Constructor Details
-
WindStaffDisplay
Constructs from nothing. Uses default min, max geopotential altitudes.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
WindStaffDisplay
Constructs with a given altitude extent.- Parameters:
minZ- The minimum geopotential altitude.maxZ- The maximum geopotential altitude.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
-
Method Details
-
newWindProfile
Returns the displayableWindProfileappropriate to this instance. This is a template method.- Specified by:
newWindProfilein classWindProfileDisplay- Returns:
- The displayable WindProfile appropriate to this instance.
- Throws:
VisADException- if a core VisAD failure occurs.RemoteException- if a Java RMI failure occurs.
-
addScalarMaps
Adds the set of ScalarMap-s specific to this instance.- Throws:
VisADException- VisAD failure.
-
displayAltitudeExtentChange
Handles a change to the displayed altitude extent- Specified by:
displayAltitudeExtentChangein classWindProfileDisplay- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
setCenterPoleExtent
Sets the extent of the center pole.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
setCursorPosition
Sets the cursor position.- Specified by:
setCursorPositionin classWindProfileDisplay- Parameters:
position- The cursor position.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
setBackgroundVisible
Display or hide the background- Overrides:
setBackgroundVisiblein classWindProfileDisplay- Parameters:
visable- Display background if true, otherwise hide the background- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
setCenterPoleVisible
Sets the visibility of the center pole.- Parameters:
visible- Whether or not the center pole should be visible.- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
newMeanWind
Returns a MeanWind Displayable corresponding to a mean-wind Tuple.- Specified by:
newMeanWindin classWindProfileDisplay- Parameters:
meanWind- the mean-wind Tuple- Returns:
- The MeanWind Displayable corresponding to the input mean-wind.
- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
newMeanWind
Returns a MeanWind Displayable corresponding to a data reference for a mean-wind Tuple.- Specified by:
newMeanWindin classWindProfileDisplay- Parameters:
meanWindRef- The data reference for the mean-wind Tuple.- Returns:
- The MeanWind Displayable corresponding to the input mean-wind.
- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
newMeanWind
Returns the MeanWind Displayable with a missing mean-wind.- Specified by:
newMeanWindin classWindProfileDisplay- Returns:
- The MeanWind Displayable with a missing mean-wind.
-
main
Tests this class.- Parameters:
args- Test arguments. Ignored.- Throws:
Exception- Something went wrong.
-