|
||||||||||
| 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.AerologicalDisplay
public class AerologicalDisplay
Provides a 2-D VisAD display for an aerological ( meteorological thermodynamic) diagram.
| Nested Class Summary | |
|---|---|
protected class |
AerologicalDisplay.DisplayablePseudoAdiabaticTrajectory
Provides support for displaying the trajectory of a lifted parcel. |
protected static class |
AerologicalDisplay.LeftPressureAxisLabels
Provides support for the left pressure-axis labels. |
protected static class |
AerologicalDisplay.LowerTemperatureAxisLabels
Provides support for the lower temperature labels. |
protected class |
AerologicalDisplay.MyWetTemperatureCalculator
Provides support for calculating the saturated portion of a lifted parcel's trajectory. |
protected class |
AerologicalDisplay.MyWetTemperatureCalculatorFactory
Provides support for creating calculators of the saturated portion of a lifted parcel's trajectory. |
protected class |
AerologicalDisplay.MyWindStaff
Internal class for displaying a wind staff |
protected static class |
AerologicalDisplay.PressureAxisLabels
Provides support for labels for the pressure axis. |
protected static class |
AerologicalDisplay.RightPressureAxisLabels
Provides support for the left pressure-axis labels. |
protected static class |
AerologicalDisplay.TemperatureAxisLabels
Provides support for labels on the temperature axis. |
protected static class |
AerologicalDisplay.UpperTemperatureAxisLabels
Provides support for the lower temperature labels. |
| Field Summary | |
|---|---|
static String |
ACTIVE_SOUNDING
The name of the active sounding property. |
static String |
ACTIVE_WIND_PROFILE
The name of the active wind profile property. |
static String |
CAPE
The name of the CAPE property. |
static String |
CURSOR_PRESSURE
The name of the VisAD-cursor pressure property. |
static String |
CURSOR_TEMPERATURE
The name of the VisAD-cursor temperature property. |
static String |
POINTER_PRESSURE
The name of the mouse-pointer pressure property. |
static String |
POINTER_TEMPERATURE
The name of the mouse-pointer temperature property. |
static String |
PROFILE_DEW_POINT
The name of the profile dew-point property. |
static String |
PROFILE_TEMPERATURE
The name of the profile temperature property. |
static String |
PROFILE_WIND_DIRECTION
The name of the profile wind direction property. |
static String |
PROFILE_WIND_SPEED
The name of the profile wind speed property. |
| Fields inherited from class ucar.visad.display.DisplayMaster |
|---|
behavior, defaultMouseFunctions, log_, POINT_MODE |
| Fields inherited from interface ucar.unidata.view.sounding.AerologicalDisplayConstants |
|---|
EMAGRAM_DISPLAY, SKEWT_DISPLAY, STUVE_DISPLAY |
| Constructor Summary | |
|---|---|
|
AerologicalDisplay(AerologicalCoordinateSystem acs)
Create a new AerologicalDisplay and use the coordinate system for all transforms |
|
AerologicalDisplay(AerologicalCoordinateSystem acs,
GraphicsConfiguration gc)
Create a new AerologicalDisplay and use the coordinate system for all transforms |
protected |
AerologicalDisplay(DisplayImpl display,
int initialCapacity,
DisplayRealType displayPressureType,
DisplayRealType displayTemperatureType,
AerologicalCoordinateSystem coordinateSystem)
Constructs. |
| Method Summary | |
|---|---|
void |
addProfile(Field temperature,
Field dewPoint)
Adds a temperature and dew-point sounding to the display. |
void |
addProfile(Field temperature,
Field dewPoint,
Field windProfile)
Adds a temperature, dew-point, and wind sounding to the display. |
void |
addProfile(int index,
Field temperature,
Field dewPoint,
Field windProfile)
Adds a temperature, dew-point and wind sounding to the display. |
void |
clearProfiles()
Removes all soundings from the display. |
void |
clearPseudoAdiabaticTrajectory()
Clears the pseudo-adiabatic-trajectory property. |
protected void |
coordinateSystemChange(AerologicalCoordinateSystem acs)
Handle a change to the coordinate system. |
Sounding |
getActiveSounding()
Get the active sounding. |
int |
getBarbOrientation()
Get the barb orientation being used (NH or SH style). |
int |
getBarbScale()
Get the barb scaling |
AerologicalCoordinateSystem |
getCoordinateSystem()
Gets the (p,T) <-> (x,y) coordinate system transformation associated with this display. |
Real |
getCursorPressure()
Gets the VisAD-cursor pressure property. |
Real |
getCursorTemperature()
Gets the cursor temperature property. |
boolean |
getDryAdiabatVisibility()
Get the visibility of the background dry adiabats. |
static AerologicalDisplay |
getInstance(AerologicalCoordinateSystem acs,
GraphicsConfiguration gc)
Create a new AerologicalDisplay with the specified CoordinateSystem |
static AerologicalDisplay |
getInstance(String type)
Create a new AerologicalDisplay of the given type |
static AerologicalDisplay |
getInstance(String type,
GraphicsConfiguration gc)
Create a new AerologicalDisplay of the given type |
Real |
getMaximumPressure()
Returns the maximum pressure of this display. |
Real |
getMaximumTemperature()
Returns the maximum temperature of this display. |
Real |
getMinimumPressure()
Returns the minimum pressure of this display. |
Real |
getMinimumTemperature()
Returns the minimum temperature of this display. |
Real |
getPointerPressure()
Gets the mouse-pointer pressure property. |
Real |
getPointerTemperature()
Gets the pointer temperature property. |
Real |
getProfileDewPoint()
Gets the profile dew-point property. |
Real |
getProfileTemperature()
Gets the profile temperature property. |
Real |
getProfileWindDirection()
Gets the profile wind direction property. |
Real |
getProfileWindSpeed()
Gets the profile wind speed property. |
boolean |
getSaturationAdiabatVisibility()
Get the visibility of the background saturation adiabats. |
boolean |
getSaturationMixingRatioVisibility()
Get the visibility of the background saturation adiabats. |
boolean |
getWindStaffVisibility()
Get the visibility of the wind barb staff |
protected void |
initializeClass()
Initialize the class |
boolean |
isPseudoAdiabaticTrajectoryEnabled()
Gets the pseudo-adiabatic-trajectory-on property. |
boolean |
isPseudoAdiabaticTrajectoryVisible()
Returns the visibility of the pseudoadiabatic trajectory. |
int |
profileCount()
Returns the number of profiles in the display. |
void |
removeProfile(int index)
Removes a given sounding from the display. |
void |
removeProfiles()
Removes all soundings from the display. |
void |
setActiveSounding(int index)
Sets the "active" sounding. |
void |
setBackgroundLineColor(Color color)
Set the background line colors |
void |
setBarbOrientation(int orient)
Set the barb orientation. |
void |
setBarbScale(int size)
Set the barb scaling. |
void |
setConstrainProfiles(boolean yes)
Sets the constrainProfiles property. |
void |
setCoordinateSystem(AerologicalCoordinateSystem acs)
Sets the (p,T) <-> (x,y) coordinate system transformation associated with this display. |
void |
setCoordinateSystem(String type)
Set the CoordinateSystem for this display to the default for the type. |
void |
setCursorPressure(Real pressure)
Sets the VisAD-cursor pressure property. |
protected void |
setCursorTemperature(Real temperature)
Sets the VisAD-cursor temperature property. |
protected void |
setDisplayScalarMaps()
Set up the DisplayScalarMaps for this display. |
void |
setDryAdiabatVisibility(boolean on)
Sets the visibility of the background dry adiabats. |
void |
setForeground(Color color)
Sets the "foreground" color of this VisAD display |
void |
setLabelColor(Color color)
Set the label color |
void |
setOriginalProfiles(int index)
Resets the original sounding in the specified sounding. |
void |
setPointerPressure(Real pressure)
Sets the mouse-pointer pressure property. |
protected void |
setPointerTemperature(Real temperature)
Sets the mouse-pointer temperature property. |
void |
setProfileVisible(int index,
boolean visible)
Sets the visibility of a given sounding. |
void |
setPseudoAdiabaticTrajectoryEnabled(boolean enable)
Sets the pseudo-adiabatic-trajectory-on property. |
void |
setPseudoAdiabaticTrajectoryVisible(boolean visible)
Sets the visibility of the pseudoadiabatic trajectory. |
void |
setSaturationAdiabatVisibility(boolean on)
Sets the visibility of the background saturation adiabats. |
void |
setSaturationMixingRatioVisibility(boolean on)
Sets the visibility of the background saturation adiabats. |
void |
setWindColor(Color color)
Set the wind flag color |
void |
setWindLevels(Gridded1DSet levels)
Set the levels of the wind profile to display. |
void |
setWindStaffVisibility(boolean on)
Sets the visibility of the wind barb staff. |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CURSOR_PRESSURE
public static final String POINTER_PRESSURE
public static final String CURSOR_TEMPERATURE
public static final String POINTER_TEMPERATURE
public static final String ACTIVE_SOUNDING
public static final String ACTIVE_WIND_PROFILE
public static final String PROFILE_TEMPERATURE
public static final String PROFILE_DEW_POINT
public static final String PROFILE_WIND_SPEED
public static final String PROFILE_WIND_DIRECTION
public static final String CAPE
| Constructor Detail |
|---|
protected AerologicalDisplay(DisplayImpl display,
int initialCapacity,
DisplayRealType displayPressureType,
DisplayRealType displayTemperatureType,
AerologicalCoordinateSystem coordinateSystem)
throws VisADException,
RemoteException
true.
display - The VisAD display.initialCapacity - The anticipated number of displayables.displayPressureType - The display pressure type.displayTemperatureType - The display temperature type.coordinateSystem - The (p,T) <-> (x,y) transformation.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public AerologicalDisplay(AerologicalCoordinateSystem acs)
throws VisADException,
RemoteException
acs - AerologicalCoordinateSystem for transforms
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public AerologicalDisplay(AerologicalCoordinateSystem acs,
GraphicsConfiguration gc)
throws VisADException,
RemoteException
acs - AerologicalCoordinateSystem for transformsgc - GraphicsConfiguration
VisADException - VisAD failure.
RemoteException - Java RMI failure.| Method Detail |
|---|
protected void initializeClass()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected void setDisplayScalarMaps()
throws VisADException,
RemoteException
RemoteException - Java RMI exception
VisADException - VisAD problempublic AerologicalCoordinateSystem getCoordinateSystem()
public void setCoordinateSystem(String type)
throws VisADException,
RemoteException
type - type of display (from AerologicalDisplayConstants
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setCoordinateSystem(AerologicalCoordinateSystem acs)
throws VisADException,
RemoteException
acs - the new (p,T) <-> (x,y) coordinate system transformation
associated with this display
RemoteException - Java RMI Exception
VisADException - problem creating VisAD object
protected void coordinateSystemChange(AerologicalCoordinateSystem acs)
throws VisADException,
RemoteException
acs - the new (p,T) <-> (x,y) coordinate system transformation
associated with this display
RemoteException - Java RMI Exception
VisADException - problem creating VisAD object
public void addProfile(Field temperature,
Field dewPoint)
throws VisADException,
RemoteException
temperature - The temperature sounding. Must be Pressure ->
Temperature.dewPoint - The dew-point sounding. Must be Pressure ->
DewPoint.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void addProfile(Field temperature,
Field dewPoint,
Field windProfile)
throws VisADException,
RemoteException
temperature - The temperature sounding. Must be Pressure ->
Temperature.dewPoint - The dew-point sounding. Must be Pressure ->
DewPoint.windProfile - The wind profile. Must be Pressure -> Wind
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void addProfile(int index,
Field temperature,
Field dewPoint,
Field windProfile)
throws VisADException,
RemoteException
index - The index of the sounding.temperature - The temperature sounding. Must be Pressure ->
Temperature.dewPoint - The dew-point sounding. Must be Pressure ->
DewPoint.windProfile - The wind profile. Must be Pressure -> Wind
VisADException - VisAD failure.
RemoteException - Java RMI failure.public int profileCount()
public void removeProfiles()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void removeProfile(int index)
throws VisADException,
RemoteException
index - The index of the sounding.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setProfileVisible(int index,
boolean visible)
throws VisADException,
RemoteException
index - The sounding index.visible - Whether or not the sounding should be visible.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setActiveSounding(int index)
throws VisADException,
RemoteException
index - The index of the "active" sounding. A value of
-1 means that there is no active sounding.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setOriginalProfiles(int index)
throws VisADException,
RemoteException
index - The index of the sounding.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void clearProfiles()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setConstrainProfiles(boolean yes)
throws VisADException,
RemoteException
yes - Whether or not to constrain temperatures
to be equal to or greater than
corresponding dew-points.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public final void setCursorPressure(Real pressure)
throws UnitException,
VisADException,
RemoteException
pressure - The pressure at the VisAD cursor.
UnitException - Inappropriate pressure unit.
VisADException - if a core VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.
public final void setPointerPressure(Real pressure)
throws UnitException,
VisADException,
RemoteException
pressure - The pressure at the mouse pointer.
UnitException - Inappropriate pressure unit.
VisADException - if a core VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.public Real getCursorPressure()
null.public Real getPointerPressure()
null.
protected final void setCursorTemperature(Real temperature)
throws UnitException,
VisADException,
RemoteException
temperature - The cursor temperature.
UnitException - Inappropriate unit.
VisADException - if a core VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.
protected final void setPointerTemperature(Real temperature)
throws UnitException,
VisADException,
RemoteException
temperature - The pointer temperature.
UnitException - Inappropriate unit.
VisADException - if a core VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.public Real getCursorTemperature()
null.public Real getPointerTemperature()
null.public Real getProfileTemperature()
null.public Real getProfileDewPoint()
null.public Real getProfileWindSpeed()
null.public Real getProfileWindDirection()
null.
public void setPseudoAdiabaticTrajectoryEnabled(boolean enable)
throws VisADException,
RemoteException
enable - Whether or not showing of the pseudo adiabatic
trajectory is enabled.
VisADException - VisAD failure.
RemoteException - Java RMI failure.setActiveSounding(int)public boolean isPseudoAdiabaticTrajectoryEnabled()
public void setPseudoAdiabaticTrajectoryVisible(boolean visible)
throws VisADException,
RemoteException
visible - If and only if true, then the
trajectory will be visible if it exists.
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.public boolean isPseudoAdiabaticTrajectoryVisible()
public void clearPseudoAdiabaticTrajectory()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.public Real getMinimumPressure()
public Real getMaximumPressure()
public Real getMinimumTemperature()
public Real getMaximumTemperature()
public void setDryAdiabatVisibility(boolean on)
throws VisADException,
RemoteException
on - Whether the background dry adiabats should be
visible.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public boolean getDryAdiabatVisibility()
public void setSaturationAdiabatVisibility(boolean on)
throws VisADException,
RemoteException
on - Whether the background saturation adiabats
should be visible.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public boolean getSaturationAdiabatVisibility()
public void setWindStaffVisibility(boolean on)
throws VisADException,
RemoteException
on - Whether the wind barb staff
should be visible.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public boolean getWindStaffVisibility()
public void setWindLevels(Gridded1DSet levels)
throws VisADException,
RemoteException
levels - the set of levels (if null, display all);
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setSaturationMixingRatioVisibility(boolean on)
throws VisADException,
RemoteException
on - Whether the background saturation adiabats
should be visible.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public boolean getSaturationMixingRatioVisibility()
public void setBarbOrientation(int orient)
orient - orientation.public int getBarbOrientation()
public void setBarbScale(int size)
size - scaling of barbs (2 = default);public int getBarbScale()
public static AerologicalDisplay getInstance(String type)
throws VisADException,
RemoteException
type - type of display (from AerologicalDisplayConstants
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public static AerologicalDisplay getInstance(String type,
GraphicsConfiguration gc)
throws VisADException,
RemoteException
type - type of display (from AerologicalDisplayConstantsgc - GraphicsConfiguration
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public static AerologicalDisplay getInstance(AerologicalCoordinateSystem acs,
GraphicsConfiguration gc)
throws VisADException,
RemoteException
acs - AerologcialCoordinateSystemgc - The GraphicsConfiguration for the display
VisADException - VisAD failure.
RemoteException - Java RMI failure.public Sounding getActiveSounding()
public void setForeground(Color color)
setForeground in class DisplayMastercolor - color to usepublic void setLabelColor(Color color)
color - label colorpublic void setWindColor(Color color)
color - the colorpublic void setBackgroundLineColor(Color color)
color - the color
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||