|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.DisplayMaster
ucar.unidata.view.sounding.WindProfileDisplay
public abstract class WindProfileDisplay
Provides support for displaying vertical profiles of the horizontal wind.
| Field Summary | |
|---|---|
static String |
ACTIVE_MEAN_WIND
The name of the active mean-wind property. |
static String |
ACTIVE_PROFILE
The name of the active profile property. |
static String |
GEOPOTENTIAL_ALTITUDE
The name of the geopotential altitude property. |
static String |
PROFILE_DIRECTION
The name of the profile wind-direction property. |
static String |
PROFILE_SPEED
The name of the profile wind-speed property. |
| Fields inherited from class ucar.visad.display.DisplayMaster |
|---|
behavior, defaultMouseFunctions, log_, POINT_MODE |
| Constructor Summary | |
|---|---|
protected |
WindProfileDisplay(DisplayImpl displayImpl,
Real minZ,
Real maxZ,
int displayableCount,
DisplayRealType verticalDisplayRealType)
Constructs with limits on min and max geopotential altitudes. |
| Method Summary | |
|---|---|
void |
addProfile(int index,
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. |
Unit |
getAltitudeUnit()
Returns the displayed, altitude unit. |
double[] |
getCursorPosition()
Returns the cursor position. |
protected static Real |
getDefaultMaxAltitude()
Returns the default, maximum altitude. |
protected static Real |
getDefaultMinAltitude()
Returns the default, minimum altitude. |
Real |
getGeopotentialAltitude()
Returns the geopotential altitude property. |
Real |
getMaxDisplayAltitude()
Returns the maximum, display altitude. |
Real |
getMaxProfileAltitude()
Returns the maximum profile altitude. |
Real |
getMinDisplayAltitude()
Returns the minimum, display altitude. |
Real |
getMinProfileAltitude()
Returns the minimum profile altitude. |
protected Real |
getProfileDirection()
Returns the profile-wind-direction property. |
protected Real |
getProfileSpeed()
Returns the profile-wind-speed property. |
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(DataReference meanWindRef)
Returns a MeanWind Displayable corresponding to a mean-wind Tuple. |
protected abstract Displayable |
newMeanWind(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(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(RealTuple extent)
Sets the extent of the displayed altitudes. |
void |
setGeopotentialAltitude(Real geoAlt)
Sets the geopotential altitude property. |
void |
setMeanWind(int index,
DataReference meanWindRef)
Sets the mean wind. |
void |
setMeanWind(int index,
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String GEOPOTENTIAL_ALTITUDE
public static String PROFILE_SPEED
public static String PROFILE_DIRECTION
public static String ACTIVE_PROFILE
public static String ACTIVE_MEAN_WIND
| Constructor Detail |
|---|
protected WindProfileDisplay(DisplayImpl displayImpl,
Real minZ,
Real maxZ,
int displayableCount,
DisplayRealType verticalDisplayRealType)
throws VisADException,
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.
VisADException - VisAD failure.
RemoteException - Java RMI failure.| Method Detail |
|---|
protected static Real getDefaultMinAltitude()
protected static 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,
Field field)
throws VisADException,
RemoteException
index - The index of the profile.field - The wind profile.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void removeProfile(int index)
throws IndexOutOfBoundsException,
RemoteException,
VisADException
index - The index of the profile to be removed.
IndexOutOfBoundsException - The index was out of range.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setActiveWindProfile(int index)
throws VisADException,
RemoteException
index - The index of the active wind profile.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setProfileVisible(int index,
boolean visible)
throws VisADException,
RemoteException
index - The wind profile index.visible - Whether or not the wind profile is to be
visible.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected abstract WindProfile newWindProfile()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public Field getWindProfile()
throws RemoteException,
VisADException
VisADException - VisAD failure.
RemoteException - Java RMI failure.CartesianHorizontalWindOfGeopotentialAltitude
public void setMeanWind(int index,
Tuple meanWind)
throws VisADException,
RemoteException
index - Which mean wind.meanWind - The mean wind.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setMeanWind(int index,
DataReference meanWindRef)
throws VisADException,
RemoteException
index - The index of the mean wind.meanWindRef - The data reference for the mean wind.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void removeMeanWind(int index)
throws IndexOutOfBoundsException,
VisADException,
RemoteException
index - The index of the mean-wind to be removed.
IndexOutOfBoundsException - The index was out of range.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setMeanWindVisible(int index,
boolean visible)
throws VisADException,
RemoteException
index - The index of the mean wind.visible - Whether or not the mean wind is to be visible.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setActiveMeanWind(int index)
throws VisADException,
RemoteException
index - The index of the active mean-wind.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void clear()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public Real getMinProfileAltitude()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public Real getMaxProfileAltitude()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setGeopotentialAltitude(Real geoAlt)
throws VisADException,
RemoteException
geoAlt - The new value.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public Real getGeopotentialAltitude()
protected Real getProfileSpeed()
protected Real getProfileDirection()
public void setBackgroundVisible(boolean b)
throws VisADException,
RemoteException
b - display background if true, otherwise hide the background
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setAltitudeScaleVisible(boolean visible)
throws VisADException,
RemoteException
visible - Whether or not the altitude scale should be
visible.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected double computeIncrement(double extent,
int maxCount)
extent - The extent.maxCount - The maximum number of intervals.
protected void setAltitudeMapRange()
throws RemoteException,
VisADException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected void setAltitudeColorMapRange()
throws RemoteException,
VisADException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected void setDisplayAltitudeExtent()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setDisplayAltitudeExtent(RealTuple extent)
throws VisADException,
RemoteException
extent - The extent of the displayed altitudes.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected abstract void displayAltitudeExtentChange()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public Real getMinDisplayAltitude()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public Real getMaxDisplayAltitude()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setAltitudeUnit(Unit geoAltUnit)
throws UnitException,
VisADException,
RemoteException
geoAltUnit - The displayed, altitude unit.
UnitException - Argument has incompatible unit.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public Unit getAltitudeUnit()
protected abstract void setCursorPosition(double[] position)
throws VisADException,
RemoteException
position - The cursor position.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public double[] getCursorPosition()
protected abstract Displayable newMeanWind(Tuple meanWind)
throws VisADException,
RemoteException
meanWind - the mean-wind Tuple
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected abstract Displayable newMeanWind(DataReference meanWindRef)
throws VisADException,
RemoteException
meanWindRef - The data reference for the mean-wind Tuple
VisADException - VisAD failure.
RemoteException - Java RMI failure.protected abstract Displayable newMeanWind()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||