|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.idv.control.DisplayControlBase
ucar.unidata.idv.control.DisplayControlImpl
ucar.unidata.idv.control.ProfilerControl
ucar.unidata.idv.control.ProfilerMultiStationControl
public class ProfilerMultiStationControl
Given an earth-located VisAD Field of multi-station NOAA Profiler data, make a mapped wind data display, and make related controls. Uses FieldImpl with VisAD function (Time -> ((LAT,LON,Z) -> (DIR, SPD)) where time values are VisAD Datetime objects, Z has RealType RealType.Altitude, DIR and SPD have RealType Display.Flow1Azimuth and Display.Flow1Radial, The data display is in the main IDV 3D view manager.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.idv.control.ProfilerControl |
|---|
flowScaleValue, scaleFactor, verticalIntervalValue |
| Fields inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, controlContext, ctw, cw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, noteTextArea, noteWrapper, paramName, requestProperties, settingVisibility, sharables, showNoteText, skipSlider, srw, version, viewManagers |
| Fields inherited from interface ucar.unidata.idv.DisplayControl |
|---|
BOTTOM_LEGEND, DEFAULT_PROBEFORMAT, PREF_PREFIX, PREF_PROBEFORMAT, PREF_REMOVEONWINDOWCLOSE, PREF_SAMPLING_MODE, PREF_STANDALONE_REMOVEONCLOSE, PREF_STANDALONE_REMOVEONCLOSE_ASK, PROP_LEGENDICON, SIDE_LEGEND |
| Constructor Summary | |
|---|---|
ProfilerMultiStationControl()
Default constructor; does nothing. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Override the base class method to catch any events. |
protected DataInstance |
doMakeDataInstance(DataChoice dataChoice)
Creates and returns the GridDataInstance
corresponding to a DataChoice. |
protected JComponent |
doMakeExtraComponent()
Make extra component for UI |
MapProjection |
getDataProjection()
Get the MapProjection for this data; if have a single point data object make synthetic map projection for location |
GridDataInstance |
getGridDataInstance()
A utility to cast the getDataInstance as a GridDataInstance |
protected Range |
getInitialRange()
Get the initial range for the color table |
boolean |
getIsPlanView()
Get the IsPlanView property. |
float |
getLevel()
Get the value of the level. |
boolean |
init(DataChoice dataChoice)
Construct the Displayable and controls; get and load data in display. |
void |
loadData()
Load the data |
void |
resetDataVerticalLocation(Real verticalInt,
float zlevel,
boolean use3D)
Sample the data grid for values at the vertical interval or spacing set by input value; load that possibly-reduced data in the displayable. |
protected boolean |
setData(DataChoice dataChoice)
Get FieldImpl with data to display, from the DataChoice. |
void |
setFlowScale(float value)
Set the length of the wind barb |
void |
setIsPlanView(boolean value)
Set the IsPlanView property. |
void |
setLevel(float value)
Set the value of the level. |
void |
setVerticalInterval(float value)
Change vertical separation of wind barbs in meters, to a different vertical interval. |
| Methods inherited from class ucar.unidata.idv.control.ProfilerControl |
|---|
doMakeVerticalIntervalComponent, getControlWidgets, getFlowScale, getVerticalInterval, initDone |
| Methods inherited from class ucar.unidata.idv.control.DisplayControlBase |
|---|
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getScreenCenter, getSelectedStation, isLeftButtonDown, logException, logException, makeEarthLocation, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessage |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.collab.Sharable |
|---|
getShareGroup, getSharing, getUniqueId |
| Constructor Detail |
|---|
public ProfilerMultiStationControl()
| Method Detail |
|---|
public boolean init(DataChoice dataChoice)
throws VisADException,
RemoteException
init in class DisplayControlImpldataChoice - the DataChoice to use
RemoteException - Java RMI error
VisADException - VisAD Error
public void loadData()
throws VisADException,
RemoteException
RemoteException - Java RMI error
VisADException - error loading datapublic GridDataInstance getGridDataInstance()
protected DataInstance doMakeDataInstance(DataChoice dataChoice)
throws RemoteException,
VisADException
GridDataInstance
corresponding to a DataChoice. Returns
null if the DataInstance was
somehow invalid.
doMakeDataInstance in class DisplayControlImpldataChoice - The DataChoice
from which to create a
DataInstance.
DataInstance or
null.
VisADException - if a VisAD Failure occurs.
RemoteException - if a Java RMI failure occurs.
protected boolean setData(DataChoice dataChoice)
throws VisADException,
RemoteException
setData in class DisplayControlImpldataChoice - the DataChoice to use
RemoteException - Java RMI error
VisADException - VisAD Errorprotected JComponent doMakeExtraComponent()
doMakeExtraComponent in class ProfilerControlpublic void setIsPlanView(boolean value)
value - The new value for IsPlanViewpublic boolean getIsPlanView()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListeneractionPerformed in class ProfilerControle - The action event.public void setLevel(float value)
value - the level.public float getLevel()
public void setVerticalInterval(float value)
setVerticalInterval in class ProfilerControlvalue - a float the vertical separation in meters
public void resetDataVerticalLocation(Real verticalInt,
float zlevel,
boolean use3D)
throws VisADException,
RemoteException
verticalInt - sampling interval such as 500 m; IF use3D==truezlevel - - plan view level of winds from Profiler; IF use3D falseuse3D - boolean true for all data in 3d; false for plan view
at one level above MSL only.
RemoteException - Java RMI error
VisADException - VisAD Errorpublic void setFlowScale(float value)
setFlowScale in class ProfilerControlvalue - the length of the wind barb
protected Range getInitialRange()
throws RemoteException,
VisADException
getInitialRange in class DisplayControlImplRemoteException - Java RMI error
VisADException - VisAD Errorpublic MapProjection getDataProjection()
getDataProjection in interface DisplayControlgetDataProjection in class DisplayControlImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||