|
||||||||||
| 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.GridDisplayControl
ucar.unidata.idv.control.CrossSectionControl
ucar.unidata.idv.control.ColorCrossSectionControl
ucar.unidata.idv.control.ColorRhiControl
public class ColorRhiControl
Class to make displays and controls for a pseudo-RHI plot of WSR-88D Level II data. Also makes a control, a JFrame with gui controls of the RHI, and with a 2D display of the same RHI.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
protected boolean |
autorotateOn
flag for auto rotations |
protected float |
beamAz
the beam azimuth |
protected JLabel |
stationLabel
the station label |
| Fields inherited from class ucar.unidata.idv.control.CrossSectionControl |
|---|
coordTrans, crossSectionView, csSelector, dataIs3D, displayIs3D, endCoord, endLocation, SHARE_XSLINE, sizeX, sizeY, startCoord, startLocation, vcsDisplay, xsDisplay |
| Fields inherited from class ucar.unidata.idv.control.GridDisplayControl |
|---|
CMD_CONTOURDIALOG, CMD_SETLEVELS, gridDataInstance, INITIAL_PROBE_EARTHLOCATION, log_, settingLevel |
| Fields inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, contourWidget, controlContext, ctw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayListUsesColor, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, noteTextArea, noteWrapper, paramName, requestProperties, selectRangeWidget, settingVisibility, sharables, showNoteText, skipSlider, version, viewManagers, ZFUDGE |
| 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, RASTERMODE_SHOWALL, RASTERMODE_SHOWNONRASTER, RASTERMODE_SHOWRASTER, SIDE_LEGEND |
| Constructor Summary | |
|---|---|
ColorRhiControl()
Default constructor. |
|
| Method Summary | |
|---|---|
protected void |
autorotateLine()
argument to runAuto ensures each thread has an id |
protected void |
centerLinePosition()
Put one end of the rhi control line on the radar position (centered); leave other end where it is. |
protected void |
createCrossSectionSelector()
make a Selector line which shows and controls where RHI position is; uses current value of beam azimuth. |
protected DisplayableData |
createVCSDisplay()
Create the DisplayableData that will be used
to depict the data in the control's display. |
protected DisplayableData |
createXSDisplay()
Create the DisplayableData that will be used
to depict the data in the main display. |
void |
crossSectionChanged()
Load or reload data for a RHI selector line which has moved. |
boolean |
getAllowAutoScale()
Get whether we can autoscale the vertical scale |
boolean |
getAllowSmoothing()
Get whether we can smooth this display |
boolean |
getAutorotateOn()
get whether the rhi is in autorotate mode |
boolean |
getAutoScaleYAxis()
Get whether we should autoscale the Y Axis. |
float |
getBeamAzimuth()
Get the azimuth of the rhi from radar location, 360 degrees, cw from N |
String |
getColorWidgetLabel()
set label for button controling color of the selector line to "line color:" |
void |
getControlWidgets(List controlWidgets)
Add any specialized control widgets for this control to the list. |
protected String |
getCrossSectionViewLabel()
Get the label for the CrossSectionView |
protected String |
getDataProjectionLabel()
Get the data projection label |
protected JComponent |
getDisplayTabComponent_old()
Create the component that goes into the 'Display' tab |
protected JComponent |
getDisplayTabComponent()
_more_ |
void |
getLegendLabels(List labels,
int legendType)
Override the base class method to include the station name, "moment" (data type as reflectivity) and and the RHI azimuth in the legend label; |
protected Hashtable |
getRequestProperties()
Get (and make if necessary) the requester Hastable of properties that is carried along with the data instance |
void |
initDone()
Called after all initialization is finished. |
protected void |
loadDataFromLine()
Create and loads a 2D FieldImpl from the existing getGridDataInstance() at the position indicated by the controlling Selector line end points; |
protected FieldImpl |
make2DData(FieldImpl inputfieldImpl)
Make a FieldImpl suitable for the 2D RHI display; of form (time -> (integer_index->(x,altitude) -> parm)); x axis positions are in distance along cross section from one end. |
void |
propertyChange(PropertyChangeEvent evt)
Handle property change |
void |
receiveShareData(Sharable from,
Object dataId,
Object[] data)
using incoming shared RHI data, reset this display to match |
void |
resetBeamAz(float c)
Shift the azimuth of the RHI from radar location, 360 degrees, clockwise from N |
void |
setAutorotateOn(boolean v)
Set whether the rhi is in autorotate mode Used by XML persistence. |
void |
setBeamAz(float az)
Deprecated. use setBeamAzimuth |
void |
setBeamAzimuth(float az)
Set the value of the azimuth of the RHI from radar location, 360 degrees, cw from N. |
protected boolean |
setData(DataChoice choice)
Set the data in the control |
protected void |
setRequestProperties()
Make the requester Hastable of properties that is carried along with the data instance |
protected void |
updateCenterPoint()
Update the center point location |
protected void |
updateLegendLabel()
Method to update the legend label when the RHI position changes. |
| Methods inherited from class ucar.unidata.idv.control.ColorCrossSectionControl |
|---|
getIsRaster, getSmoothed, setAllowSmoothing, setSmoothed |
| Methods inherited from class ucar.unidata.idv.control.DisplayControlBase |
|---|
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getLabeledReal, getLevelReal, getScreenCenter, getSelectedStation, getTmpProperty, isLeftButtonDown, logException, logException, makeEarthLocation, putTmpProperty, removeTmpProperty, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessage |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, 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.idv.DisplayControl |
|---|
getTmpProperty, putTmpProperty, removeTmpProperty |
| Methods inherited from interface ucar.unidata.collab.Sharable |
|---|
getReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTime |
| Field Detail |
|---|
protected float beamAz
protected boolean autorotateOn
protected JLabel stationLabel
| Constructor Detail |
|---|
public ColorRhiControl()
| Method Detail |
|---|
public void initDone()
initDone in class CrossSectionControlpublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpropertyChange in class CrossSectionControlevt - The event
protected boolean setData(DataChoice choice)
throws VisADException,
RemoteException
setData in class CrossSectionControlchoice - choice representing the data
RemoteException - Java RMI error
VisADException - VisAD errorprotected String getCrossSectionViewLabel()
getCrossSectionViewLabel in class CrossSectionControl
protected void updateCenterPoint()
throws VisADException,
RemoteException
RemoteException - Java RMI error
VisADException - VisAD errorpublic void crossSectionChanged()
crossSectionChanged in class CrossSectionControl
protected void centerLinePosition()
throws VisADException,
RemoteException
RemoteException - Java RMI error
VisADException - VisAD errorprotected void autorotateLine()
public void resetBeamAz(float c)
c - the azimuth of the RHI from radar location,
360 degrees, cw from N
protected DisplayableData createXSDisplay()
throws VisADException,
RemoteException
DisplayableData that will be used
to depict the data in the main display.
createXSDisplay in class ColorCrossSectionControlVisADException - unable to create depictor
RemoteException - unable to create depictor (shouldn't happen)
protected DisplayableData createVCSDisplay()
throws VisADException,
RemoteException
DisplayableData that will be used
to depict the data in the control's display.
createVCSDisplay in class ColorCrossSectionControlVisADException - unable to create depictor
RemoteException - unable to create depictor (shouldn't happen)public String getColorWidgetLabel()
getColorWidgetLabel in class DisplayControlImpl
public void getControlWidgets(List controlWidgets)
throws VisADException,
RemoteException
getControlWidgets in class ColorCrossSectionControlcontrolWidgets - List to add to.
VisADException - unable to create controls
RemoteException - unable to create controls (shouldn't happen)protected JComponent getDisplayTabComponent_old()
protected JComponent getDisplayTabComponent()
getDisplayTabComponent in class CrossSectionControlpublic void setAutorotateOn(boolean v)
v - boolean true is rotatingpublic boolean getAutorotateOn()
public void setBeamAz(float az)
az - the azimuth of the RHI from radar location,
360 degrees, cw from Npublic void setBeamAzimuth(float az)
az - the azimuth of the RHI from radar location, 360 degrees,
cw from Npublic float getBeamAzimuth()
protected void createCrossSectionSelector()
throws VisADException,
RemoteException
createCrossSectionSelector in class CrossSectionControlRemoteException - Java RMI error
VisADException - VisAD error
public void receiveShareData(Sharable from,
Object dataId,
Object[] data)
receiveShareData in interface SharablereceiveShareData in class CrossSectionControlfrom - source of data to be shareddataId - id of sharable datadata - sharable data
public void getLegendLabels(List labels,
int legendType)
getLegendLabels in class DisplayControlImpllabels - List of labelslegendType - The type of legend, BOTTOM_LEGEND or SIDE_LEGENDprotected void updateLegendLabel()
updateLegendLabel in class DisplayControlImpl
protected void loadDataFromLine()
throws VisADException,
RemoteException
loadDataFromLine in class CrossSectionControlVisADException - VisAD failure.
RemoteException - Java RMI failure.protected Hashtable getRequestProperties()
getRequestProperties in class DisplayControlImplprotected void setRequestProperties()
protected FieldImpl make2DData(FieldImpl inputfieldImpl)
throws VisADException,
RemoteException
make2DData in class CrossSectionControlinputfieldImpl - The data as a Field
RemoteException - Java RMI error
VisADException - VisAD errorpublic boolean getAllowSmoothing()
getAllowSmoothing in class ColorCrossSectionControlpublic boolean getAllowAutoScale()
getAllowAutoScale in class CrossSectionControlpublic boolean getAutoScaleYAxis()
getAutoScaleYAxis in class CrossSectionControlprotected String getDataProjectionLabel()
getDataProjectionLabel in class DisplayControlImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||