|
||||||||||
| 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.RadarRhiControl
public class RadarRhiControl
Created by IntelliJ IDEA. User: yuanho Date: Apr 15, 2009 Time: 1:56:43 PM To change this template use File | Settings | File Templates.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
protected float |
currentAngle
the azimuth |
protected Object |
currentLevel
Load or reload data for a RHI selector line which has moved. |
static String |
SHARE_ANGLE
identified when sharing the rhi angle |
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 | |
|---|---|
RadarRhiControl()
Default constructor. |
|
| Method Summary | |
|---|---|
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()
_more_ |
boolean |
getAllowAutoScale()
Get whether we can autoscale the vertical scale |
boolean |
getAllowSmoothing()
Get whether we can smooth this display |
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)
_more_ |
protected String |
getCrossSectionViewLabel()
Get the label for the CrossSectionView |
void |
getCurrentAngle(float az)
Set the value of the azimuth of the RHI from radar location, 360 degrees, cw from N. |
protected String |
getDataProjectionLabel()
Get the data projection label |
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 |
boolean |
getUse3D()
Get the Use3D property. |
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 |
receiveShareData(Sharable from,
Object dataId,
Object[] data)
using incoming shared RHI data, reset this display to match |
void |
setCurrentAngle(float az)
Deprecated. use setBeamAzimuth |
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 |
void |
setUse3D(boolean value)
Set the Use3D property. |
protected void |
updateLegendLabel()
Method to update the legend label when the RHI position changes. |
protected boolean |
useZPosition()
add the zposition slider |
| 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 |
|---|
public static final String SHARE_ANGLE
protected float currentAngle
protected JLabel stationLabel
protected Object currentLevel
| Constructor Detail |
|---|
public RadarRhiControl()
| Method Detail |
|---|
protected boolean useZPosition()
useZPosition in class DisplayControlImplpublic void initDone()
initDone in class CrossSectionControl
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 CrossSectionControlpublic void setUse3D(boolean value)
value - The new value for Use3Dpublic boolean getUse3D()
public void crossSectionChanged()
crossSectionChanged in class CrossSectionControl
protected void centerLinePosition()
throws VisADException,
RemoteException
RemoteException - Java RMI error
VisADException - VisAD error
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 - _more_
RemoteException - _more_
VisADException - _more_protected JComponent getDisplayTabComponent()
getDisplayTabComponent in class CrossSectionControlpublic void setCurrentAngle(float az)
az - the azimuth of the RHI from radar location,
360 degrees, cw from Npublic void getCurrentAngle(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 | |||||||||