|
||||||||||
| 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
ucar.unidata.view.sounding.Hodograph3DDisplay
public class Hodograph3DDisplay
Provides support for displaying a 3D wind hodograph.
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.view.sounding.WindProfileDisplay |
|---|
ACTIVE_MEAN_WIND, ACTIVE_PROFILE, GEOPOTENTIAL_ALTITUDE, PROFILE_DIRECTION, PROFILE_SPEED |
| Fields inherited from class ucar.visad.display.DisplayMaster |
|---|
behavior, defaultMouseFunctions, log_, POINT_MODE |
| Constructor Summary | |
|---|---|
Hodograph3DDisplay()
Default constructor. |
|
Hodograph3DDisplay(Real minZ,
Real maxZ,
Real maxW)
Constructs with given altitude extent and maximum wind speed. |
|
| Method Summary | |
|---|---|
protected void |
displayAltitudeExtentChange()
Handles a change to the extent of the displayed altitude. |
static Real |
getDefaultMaxSpeed()
Returns the default, maximum displayed wind speed. |
Real |
getMaxDisplaySpeed()
Returns the maximum, displayed, wind speed. |
Real |
getMaxProfileSpeed()
Returns the maximum profile wind speed. |
Real |
getRingIncrement()
Returns the speed increment between rings. |
Linear1DSet |
getRingSpeeds()
Returns the set of ring speeds. |
Unit |
getSpeedUnit()
Returns the displayed, speed unit. |
boolean |
isAutoscaleSpeed()
Get the state of automatic speed-scaling. |
static void |
main(String[] args)
Tests this class. |
protected Displayable |
newMeanWind()
Returns the MeanWind Displayable with a missing mean-wind. |
protected Displayable |
newMeanWind(DataReference meanWindRef)
Returns a MeanWind Displayable corresponding to a data reference for a mean-wind Tuple. |
protected Displayable |
newMeanWind(Tuple meanWind)
Returns a MeanWind Displayable corresponding to a mean-wind Tuple. |
protected WindProfile |
newWindProfile()
Constructs the displayable WindProfile appropriate to this WindProfileDisplay. |
void |
setAutoscaleSpeed(boolean value)
Toggle automatic speed-scaling. |
void |
setBackgroundVisible(boolean b)
Display or hide the background |
protected void |
setCenterPoleExtent()
Sets the extent of the center pole |
void |
setCenterPoleVisible(boolean visible)
Sets the visiblity of the center pole. |
void |
setCompassLabelsVisible(boolean visible)
Sets the visiblity of the compass labels. |
protected void |
setCrossHairs()
Sets the cross hairs. |
void |
setCrossHairsVisible(boolean visible)
Sets the visiblity of the cross hairs. |
protected void |
setCursorPosition(double[] position)
Sets the cursor position. |
protected void |
setDisplayAltitudes()
Sets the displayed altitudes. |
protected void |
setDisplayAltitudes(Gridded1DSet altitudes)
Sets the displayed altitudes. |
void |
setIntermediateRingsVisible(boolean visible)
Sets the visiblity of the intermediate-level rings. |
protected void |
setMaxDisplaySpeed()
Sets the maximum, displayed, wind speed. |
void |
setMaxDisplaySpeed(Real speed)
Sets the maximum, displayed, wind speed from a Real. |
protected void |
setRingIncrement()
Sets the speed increment between rings. |
void |
setRingIncrement(Real increment)
Sets the speed increment between rings. |
protected void |
setRingSpeeds()
Sets the ring speeds. |
void |
setRingSpeeds(Linear1DSet speeds)
Sets the ring speeds from a set of speeds. |
void |
setRingsVisible(boolean visible)
Sets the visiblity of the upper and lower rings. |
protected void |
setSpeedLabels()
Sets the speed labels. |
void |
setSpeedLabelsVisible(boolean visible)
Sets the visiblity of the speed labels. |
protected void |
setSpeedRings()
Sets the speed-rings for the background based on the maximum wind speed for the display and the display speed unit. |
void |
setSpeedUnit(Unit unit)
Sets the displayed, speed unit. |
protected void |
setWindScalarMapRanges()
Sets the extents of the wind ScalarMap-s. |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Hodograph3DDisplay()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public Hodograph3DDisplay(Real minZ,
Real maxZ,
Real maxW)
throws VisADException,
RemoteException
minZ - The minimum displayed altitude.maxZ - The maximum displayed altitude.maxW - The maximum wind speed.
VisADException - VisAD failure.
RemoteException - Java RMI failure.| Method Detail |
|---|
public static Real getDefaultMaxSpeed()
throws VisADException
VisADException - VisAD failure.public void setAutoscaleSpeed(boolean value)
value - Autoscale speed if true, otherwise keep speed scale
the same.public boolean isAutoscaleSpeed()
protected WindProfile newWindProfile()
throws VisADException,
RemoteException
newWindProfile in class WindProfileDisplayVisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setBackgroundVisible(boolean b)
throws VisADException,
RemoteException
setBackgroundVisible in class WindProfileDisplayb - display background if true, otherwise hide the background
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setCompassLabelsVisible(boolean visible)
throws VisADException,
RemoteException
visible - Whether or not the displayable should be
visible.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setSpeedLabelsVisible(boolean visible)
throws VisADException,
RemoteException
visible - Whether or not the displayable should be
visible.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setCrossHairsVisible(boolean visible)
throws VisADException,
RemoteException
visible - Whether or not the displayable should be
visible.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setRingsVisible(boolean visible)
throws VisADException,
RemoteException
visible - Whether or not the displayable should be
visible.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setIntermediateRingsVisible(boolean visible)
throws VisADException,
RemoteException
visible - Whether or not the displayable should be
visible.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setCenterPoleVisible(boolean visible)
throws VisADException,
RemoteException
visible - Whether or not the displayable should be
visible.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected void setDisplayAltitudes(Gridded1DSet altitudes)
throws VisADException,
RemoteException
altitudes - The altitudes to display.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected void setWindScalarMapRanges()
throws RemoteException,
VisADException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected void setCenterPoleExtent()
throws RemoteException,
VisADException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected void setDisplayAltitudes()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected void setRingSpeeds()
throws RemoteException,
VisADException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setRingSpeeds(Linear1DSet speeds)
throws VisADException,
RemoteException
speeds - The set of speeds for the rings.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public Linear1DSet getRingSpeeds()
protected void setSpeedRings()
throws VisADException,
RemoteException
VisADException - necessary VisAD object couldn't be created.
RemoteException - Java RMI Exception
protected void setCrossHairs()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected void setSpeedLabels()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected void displayAltitudeExtentChange()
throws VisADException,
RemoteException
displayAltitudeExtentChange in class WindProfileDisplayVisADException - VisAD failure.
RemoteException - Java RMI failure.public Real getMaxProfileSpeed()
protected void setMaxDisplaySpeed()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setMaxDisplaySpeed(Real speed)
throws VisADException,
RemoteException
speed - the new, maximum, displayed, wind speed.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public Real getMaxDisplaySpeed()
protected void setRingIncrement()
throws VisADException,
RemoteException
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setRingIncrement(Real increment)
throws VisADException,
RemoteException
increment - The speed increment between rings.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public Real getRingIncrement()
public void setSpeedUnit(Unit unit)
throws UnitException,
VisADException,
RemoteException
unit - The displayed, speed unit.
UnitException - Argument has invalid unit.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public Unit getSpeedUnit()
protected void setCursorPosition(double[] position)
throws VisADException,
RemoteException
setCursorPosition in class WindProfileDisplayposition - The (speed,direction,altitude) cursor position
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected Displayable newMeanWind(Tuple meanWind)
throws VisADException,
RemoteException
newMeanWind in class WindProfileDisplaymeanWind - the mean-wind Tuple
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected Displayable newMeanWind(DataReference meanWindRef)
throws VisADException,
RemoteException
newMeanWind in class WindProfileDisplaymeanWindRef - The data reference for the mean-wind Tuple
VisADException - VisAD failure.
RemoteException - Java RMI failure.protected Displayable newMeanWind()
newMeanWind in class WindProfileDisplay
public static void main(String[] args)
throws Exception
args - Test arguments. Ignored.
Exception - Something went wrong.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||