public abstract class WindProfileDisplay extends DisplayMaster
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTIVE_MEAN_WIND
The name of the active mean-wind property.
|
static java.lang.String |
ACTIVE_PROFILE
The name of the active profile property.
|
static java.lang.String |
GEOPOTENTIAL_ALTITUDE
The name of the geopotential altitude property.
|
static java.lang.String |
PROFILE_DIRECTION
The name of the profile wind-direction property.
|
static java.lang.String |
PROFILE_SPEED
The name of the profile wind-speed property.
|
behavior, defaultMouseFunctions, log_, POINT_MODE| Modifier | Constructor and Description |
|---|---|
protected |
WindProfileDisplay(visad.DisplayImpl displayImpl,
visad.Real minZ,
visad.Real maxZ,
int displayableCount,
visad.DisplayRealType verticalDisplayRealType)
Constructs with limits on min and max geopotential altitudes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProfile(int index,
visad.Field field)
Adds a wind profile.
|
void |
clear()
Clears the wind data.
|
protected double |
computeIncrement(double extent,
int maxCount)
Computes the increment for displaying an extent.
|
protected abstract void |
displayAltitudeExtentChange()
Handles a change to the extent of the displayed altitudes.
|
visad.Unit |
getAltitudeUnit()
Returns the displayed, altitude unit.
|
double[] |
getCursorPosition()
Returns the cursor position.
|
protected static visad.Real |
getDefaultMaxAltitude()
Returns the default, maximum altitude.
|
protected static visad.Real |
getDefaultMinAltitude()
Returns the default, minimum altitude.
|
visad.Real |
getGeopotentialAltitude()
Returns the geopotential altitude property.
|
visad.Real |
getMaxDisplayAltitude()
Returns the maximum, display altitude.
|
visad.Real |
getMaxProfileAltitude()
Returns the maximum profile altitude.
|
visad.Real |
getMinDisplayAltitude()
Returns the minimum, display altitude.
|
visad.Real |
getMinProfileAltitude()
Returns the minimum profile altitude.
|
protected visad.Real |
getProfileDirection()
Returns the profile-wind-direction property.
|
protected visad.Real |
getProfileSpeed()
Returns the profile-wind-speed property.
|
visad.Field |
getWindProfile()
Gets the currently active wind profile.
|
protected WindProfileSet |
getWindProfileSet()
Returns the set of wind profiles.
|
boolean |
isAutoscaleAltitude()
Gets the state of automatic altitude-scaling.
|
protected abstract Displayable |
newMeanWind()
Returns the MeanWind Displayable with a missing mean-wind.
|
protected abstract Displayable |
newMeanWind(visad.DataReference meanWindRef)
Returns a MeanWind Displayable corresponding to a mean-wind Tuple.
|
protected abstract Displayable |
newMeanWind(visad.Tuple meanWind)
Returns a MeanWind Displayable corresponding to a mean-wind Tuple.
|
protected abstract WindProfile |
newWindProfile()
Creates the displayable WindProfile appropriate to this instance.
|
void |
removeMeanWind(int index)
Removes a given mean-wind.
|
void |
removeProfile(int index)
Removes a given wind profile.
|
void |
setActiveMeanWind(int index)
Sets the active mean-wind.
|
void |
setActiveWindProfile(int index)
Sets the active wind profile.
|
protected void |
setAltitudeColorMapRange()
Scales the altitude-color ScalarMap.
|
protected void |
setAltitudeMapRange()
Scales the altitude ScalarMap.
|
void |
setAltitudeScaleVisible(boolean visible)
Sets the visiblity of the altitude scale.
|
void |
setAltitudeUnit(visad.Unit geoAltUnit)
Sets the displayed, altitude unit.
|
void |
setAutoscaleAltitude(boolean value)
Toggles automatic altitude-scaling.
|
void |
setBackgroundVisible(boolean b)
Display or hide the background
|
protected abstract void |
setCursorPosition(double[] position)
Sets the cursor position.
|
protected void |
setDisplayAltitudeExtent()
Sets the extent of the displayed altitudes.
|
void |
setDisplayAltitudeExtent(visad.RealTuple extent)
Sets the extent of the displayed altitudes.
|
void |
setGeopotentialAltitude(visad.Real geoAlt)
Sets the geopotential altitude property.
|
void |
setMeanWind(int index,
visad.DataReference meanWindRef)
Sets the mean wind.
|
void |
setMeanWind(int index,
visad.Tuple meanWind)
Sets the mean wind.
|
void |
setMeanWindVisible(int index,
boolean visible)
Sets the visibility of a given mean wind.
|
void |
setProfileVisible(int index,
boolean visible)
Sets the visibility of a given wind profile.
|
addDisplayable, addDisplayListener, addKeyboardBehavior, addPropertyChangeListener, addPropertyChangeListener, addScalarMap, addScalarMaps, addVetoableChangeListener, addVetoableChangeListener, buildAnimationSet, dataChange, destroy, draw, ensureInactive, equals, finalize, 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, 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, zoompublic static java.lang.String GEOPOTENTIAL_ALTITUDE
public static java.lang.String PROFILE_SPEED
public static java.lang.String PROFILE_DIRECTION
public static java.lang.String ACTIVE_PROFILE
public static java.lang.String ACTIVE_MEAN_WIND
protected WindProfileDisplay(visad.DisplayImpl displayImpl,
visad.Real minZ,
visad.Real maxZ,
int displayableCount,
visad.DisplayRealType verticalDisplayRealType)
throws visad.VisADException,
java.rmi.RemoteException
displayImpl - The VisAD display.minZ - The minimum altitude.maxZ - The maximum altitude.displayableCount - The anticipated numer of Displayable-s.verticalDisplayRealType - The type of the display vertical dimension.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected static visad.Real getDefaultMinAltitude()
protected static visad.Real getDefaultMaxAltitude()
protected WindProfileSet getWindProfileSet()
public void setAutoscaleAltitude(boolean value)
value - Autoscale altitude if true, otherwise keep altitude scale
the same.public boolean isAutoscaleAltitude()
public void addProfile(int index,
visad.Field field)
throws visad.VisADException,
java.rmi.RemoteException
index - The index of the profile.field - The wind profile.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void removeProfile(int index)
throws java.lang.IndexOutOfBoundsException,
java.rmi.RemoteException,
visad.VisADException
index - The index of the profile to be removed.java.lang.IndexOutOfBoundsException - The index was out of range.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setActiveWindProfile(int index)
throws visad.VisADException,
java.rmi.RemoteException
index - The index of the active wind profile.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setProfileVisible(int index,
boolean visible)
throws visad.VisADException,
java.rmi.RemoteException
index - The wind profile index.visible - Whether or not the wind profile is to be
visible.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected abstract WindProfile newWindProfile() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public visad.Field getWindProfile()
throws java.rmi.RemoteException,
visad.VisADException
visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.CartesianHorizontalWindOfGeopotentialAltitudepublic void setMeanWind(int index,
visad.Tuple meanWind)
throws visad.VisADException,
java.rmi.RemoteException
index - Which mean wind.meanWind - The mean wind.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setMeanWind(int index,
visad.DataReference meanWindRef)
throws visad.VisADException,
java.rmi.RemoteException
index - The index of the mean wind.meanWindRef - The data reference for the mean wind.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void removeMeanWind(int index)
throws java.lang.IndexOutOfBoundsException,
visad.VisADException,
java.rmi.RemoteException
index - The index of the mean-wind to be removed.java.lang.IndexOutOfBoundsException - The index was out of range.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setMeanWindVisible(int index,
boolean visible)
throws visad.VisADException,
java.rmi.RemoteException
index - The index of the mean wind.visible - Whether or not the mean wind is to be visible.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setActiveMeanWind(int index)
throws visad.VisADException,
java.rmi.RemoteException
index - The index of the active mean-wind.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void clear()
throws visad.VisADException,
java.rmi.RemoteException
visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public visad.Real getMinProfileAltitude()
throws visad.VisADException,
java.rmi.RemoteException
visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public visad.Real getMaxProfileAltitude()
throws visad.VisADException,
java.rmi.RemoteException
visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setGeopotentialAltitude(visad.Real geoAlt)
throws visad.VisADException,
java.rmi.RemoteException
geoAlt - The new value.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public visad.Real getGeopotentialAltitude()
protected visad.Real getProfileSpeed()
protected visad.Real getProfileDirection()
public void setBackgroundVisible(boolean b)
throws visad.VisADException,
java.rmi.RemoteException
b - display background if true, otherwise hide the backgroundvisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setAltitudeScaleVisible(boolean visible)
throws visad.VisADException,
java.rmi.RemoteException
visible - Whether or not the altitude scale should be
visible.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected double computeIncrement(double extent,
int maxCount)
extent - The extent.maxCount - The maximum number of intervals.protected void setAltitudeMapRange()
throws java.rmi.RemoteException,
visad.VisADException
visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected void setAltitudeColorMapRange()
throws java.rmi.RemoteException,
visad.VisADException
visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected void setDisplayAltitudeExtent()
throws visad.VisADException,
java.rmi.RemoteException
visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setDisplayAltitudeExtent(visad.RealTuple extent)
throws visad.VisADException,
java.rmi.RemoteException
extent - The extent of the displayed altitudes.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected abstract void displayAltitudeExtentChange()
throws visad.VisADException,
java.rmi.RemoteException
visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public visad.Real getMinDisplayAltitude()
throws visad.VisADException,
java.rmi.RemoteException
visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public visad.Real getMaxDisplayAltitude()
throws visad.VisADException,
java.rmi.RemoteException
visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setAltitudeUnit(visad.Unit geoAltUnit)
throws visad.UnitException,
visad.VisADException,
java.rmi.RemoteException
geoAltUnit - The displayed, altitude unit.visad.UnitException - Argument has incompatible unit.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public visad.Unit getAltitudeUnit()
protected abstract void setCursorPosition(double[] position)
throws visad.VisADException,
java.rmi.RemoteException
position - The cursor position.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public double[] getCursorPosition()
protected abstract Displayable newMeanWind(visad.Tuple meanWind) throws visad.VisADException, java.rmi.RemoteException
meanWind - the mean-wind Tuplevisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected abstract Displayable newMeanWind(visad.DataReference meanWindRef) throws visad.VisADException, java.rmi.RemoteException
meanWindRef - The data reference for the mean-wind Tuplevisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected abstract Displayable newMeanWind()