ucar.unidata.idv.control
Class RadarRhiControl

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.idv.control.DisplayControlBase
          extended by ucar.unidata.idv.control.DisplayControlImpl
              extended by ucar.unidata.idv.control.GridDisplayControl
                  extended by ucar.unidata.idv.control.CrossSectionControl
                      extended by ucar.unidata.idv.control.ColorCrossSectionControl
                          extended by ucar.unidata.idv.control.RadarRhiControl
All Implemented Interfaces:
ActionListener, ItemListener, PropertyChangeListener, EventListener, HyperlinkListener, Sharable, DataChangeListener, DisplayControl, Prototypable, DisplayableData.DragAdapter, ControlListener, DisplayListener

public class RadarRhiControl
extends ColorCrossSectionControl

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 class ucar.unidata.idv.control.DisplayControlBase
CMD_BARBSIZE, CMD_COLORS, CMD_COLORTABLE, CMD_INTERVAL, CMD_LEVEL, CMD_LINEWIDTH, CMD_POPUP, CMD_REMOVE, DEFAULT_POINT_SIZE, DEFAULT_SAMPLING_MODE, FIND_ALL, FIND_CATEGORY, FIND_CLASS, FIND_SPECIAL, FIND_THIS, FIND_WITHDATA, FIND_WITHTHISDATA, FIND_WITHTHISFIELD, FIND_WITHTHISVIEW, FLAG_COLOR, FLAG_COLORTABLE, FLAG_COLORUNIT, FLAG_CONTOUR, FLAG_DATACONTROL, FLAG_DISPLAYUNIT, FLAG_GRIDTRAJECTORY, FLAG_LINEWIDTH, FLAG_NONE, FLAG_SELECTRANGE, FLAG_SKIPFACTOR, FLAG_SMOOTHING, FLAG_TEXTUREQUALITY, FLAG_TIMERANGE, FLAG_ZPOSITION, GRID_INSETS, ICON_LOCK, ICON_REMOVE, ICON_UNLOCK, LABEL_NONE, MACRO_DATASOURCENAME, MACRO_DISPLAYNAME, MACRO_DISPLAYUNIT, MACRO_FHOUR, MACRO_LONGNAME, MACRO_POSITION, MACRO_SHORTNAME, MACRO_STATION, MACRO_TIMESTAMP, MACRO_VALUE, NEAREST_NEIGHBOR, PREF_DISPLAYLIST_TEMPLATE, PREF_EXTRALABEL_TEMPLATE, PREF_LEGENDLABEL_TEMPLATE, PROP_REMOVED, SETTINGS_GROUP_DISPLAY, SETTINGS_GROUP_FLAGS, SHARE_CHOICES, SHARE_COLOR, SHARE_COLORSCALE, SHARE_COLORTABLE, SHARE_DISPLAYUNIT, SHARE_POSITION, SHARE_SELECTRANGE, SHARE_SKIPVALUE, SHARE_TRANSECT, SHARE_VISIBILITY, WEIGHTED_AVERAGE
 
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.CrossSectionControl
addDisplaySettings, addLabelMacros, addPropertiesComponents, addTopographyMap, applyPreferences, applySmoothing, applyZPosition, boxToEarth, canExportData, constrainDragPoint, convertToDisplay, createCrossSectionSelector, createXFromLatLon, doApplyProperties, doExport, doMakeContents, doRemove, getAnimationInfo, getAutoUpdate, getCrossSectionSelector, getCrossSectionView, getCrossSectionViewManager, getCursorReadoutInner, getDataProjection, getDisplayedData, getEditMenuItems, getEndPoint, getGridDisplayable, getInitialZPosition, getLineCoords, getLineVisible, getMacroNames, getSelectorAltitude, getSelectorAttributeFlags, getStartPoint, getVerticalAxisRange, getVerticalCSDisplay, getViewManagerForCapture, getViewMenuItems, getXSDisplay, getZPositionSliderLabel, handleAddPoint, handleDragDirect, init, initAfterUnPersistence, load2DData, loadData, make2DDomainSet, projectionChanged, propertyChange, reScale, setAllowAutoScale, setAnimationInfo, setAutoScaleYAxis, setAutoUpdate, setBackground, setCrossSectionView, setDisplayMatrix, setEndCoord, setEndPoint, setForeground, setInitAlt, setInitLat1, setInitLat2, setInitLon1, setInitLon2, setLineVisible, setPosition, setStartCoord, setStartPoint, setVerticalAxisRange, setYAxisRange, shouldAddControlListener, transectChanged, updateLocationLabel, updateViewParameters, viewpointChanged
 
Methods inherited from class ucar.unidata.idv.control.GridDisplayControl
actionPerformed, addTopographyMap, convertColorRange, doMakeContourLevelControl, doMakeDataInstance, doMakeLevelControl, doMakeLevelControl, exportDisplayedData, getColorParamName, getColorRangeFromData, getColorRangeIndex, getColorUnit, getContourInfo, getCursorReadoutData, getDataRangeInColorUnits, getDefaultContourInfo, getDisplayUnit, getGridDataInstance, getInitialColorTable, getInitialRange, getRawDataUnit, haveMultipleFields, initializeDefaultContourInfo, isDisplayUnitAlsoColorUnit, setLevel, setLevel, setLevelFromUser
 
Methods inherited from class ucar.unidata.idv.control.DisplayControlImpl
activateDisplays, addAttributedDisplayable, addAttributedDisplayable, addAttributedDisplayable, addAttributeFlags, addCheckBoxSettings, addDataChoice, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayMaster, addNewData, addNoteText, addPropertyChangeListener, addRemovable, addSharable, addTimeModeWidget, addToControlContext, addToRangeMenu, addToRangeMenu, addToRangeMenu, addViewManager, appendDataChoices, applyAttributesToDisplayables, applyColor, applyColorScaleInfo, applyColorTable, applyColorUnit, applyContourInfo, applyDisplaySetting, applyDisplayUnit, applyLineWidth, applyProperties, applyProperties, applyPropertyValues, applyRange, applySelectRange, applySkipFactor, applyTextureQuality, applyTimeRange, boundsClose, canBeDocked, canSaveDataInCache, captureWindow, centerOnDisplay, changeColorUnit, changeDisplayUnit, checkFlag, checkIfDataOk, checkImageSize, clearDataInstance, clearPrototype, clearViewManagers, close, colorUnitChanged, controlChanged, convertColorRange, convertRange, createDisplayListDisplayable, createIdvWindow, dataChanged, deactivateDisplays, debug, displayableToFront, displayChanged, displayControlFailed, displayUnitChanged, doInitialUpdateLegendAndList, doMakeBottomLegendComponent, doMakeChangeColorMenu, doMakeChangeColorMenu, doMakeChangeParameterMenuItem, doMakeColorControl, doMakeColorControl, doMakeColorScales, doMakeMenuBar, doMakeMenuBarMenus, doMakePointSizeWidget, doMakeRemoveControl, doMakeSideLegendComponent, doMakeSkipFactorSlider, doMakeTextureSlider, doMakeVisibilityControl, doMakeWidgetComponent, doMakeWindow, doMakeZPositionSlider, findDisplayInfo, findDisplays, findDisplays, firePropertyChangeEvent, firstFrameDone, formatForCursorReadout, getActive, getAnimation, getAnimation, getAnimation, getAnimation, getAnimationWidget, getAttributeFlags, getCachedData, getCanDoRemoveAll, getCategories, getChangeParameterLabel, getCollapseLegend, getColor, getColorDimness, getColorScaleInfo, getColorTable, getColorTableForDisplayable, getColorTableToApply, getColorTableWidget, getColorUnitName, getComponentHolder, getContents, getControlChangeSleepTime, getControlContext, getControlMenus, getCursorReadout, getCursorReadoutInner, getData, getDataChoice, getDataChoices, getDataForDisplayList, getDataInstance, getDataInstance, getDataProjectionForMenu, getDataSelection, getDataSources, getDataTimeRange, getDataTimeRange, getDataTimeSet, getDebugDetails, getDefaultColorScaleInfo, getDefaultDisplayListTemplate, getDefaultDistanceUnit, getDefaultFastRendering, getDefaultSamplingMode, getDefaultSamplingModeValue, getDefaultView, getDefaultViewDescriptor, getDefaultViewManager, getDetailsContents, getDisplayAltitudeType, getDisplayCategory, getDisplayCenter, getDisplayConventions, getDisplayId, getDisplayInfos, getDisplayListColor, getDisplayListData, getDisplayListDisplayable, getDisplayListTemplate, getDisplayMaster, getDisplayName, getDisplayScale, getDisplayUnit, getDisplayUnitName, getDisplayVisibility, getDoCursorReadout, getEditMenuItems, getExpandedInTabs, getExtraLabelTemplate, getExtraLegendComponent, getExtraMenus, getFileMenuItems, getFileMenuItems, getGraphicsConfiguration, getGrid, getGrid, getHadDataChoices, getHaveInitialized, getHelpIds, getHelpMenuItems, getId, getIdv, getImage, getImage, getInitDataChoices, getInitialFastRendering, getInternalAnimation, getInternalAnimation, getIsTimeDriver, getLabel, getLastFileMenuItems, getLegendButtons, getLegendComponent, getLegendLabel, getLegendLabelTemplate, getLegendToolTip, getLineWidth, getLineWidthWidget, getLineWidthWidgetLabel, getLockVisibilityToggle, getLongParamName, getMainPanel, getMainPanelSize, getMakeWindow, getMapDisplay, getMapViewManager, getMapViewProjection, getMenuLabel, getMyDataChoices, getNavigatedDisplay, getNoteText, getObjectStore, getOkToFireEvents, getOldColorTableOrInitialColorTable, getOriginalDataChoicesLabel, getOuterContents, getPointSize, getProperty, getProperty, getPropertyDisplayName, getRange, getRangeForColorTable, getRangeToApply, getSamplingModeName, getSamplingModeValue, getSamplingModeValue, getSaveMenuItems, getSelectRange, getSelectRangeEnabled, getSelectRangeWidget, getSettingsPanel, getShortParamName, getShowInDisplayList, getShowInLegend, getShowInTabs, getShowNoteText, getSkipValue, getSkipWidgetLabel, getSmoothingFactor, getSmoothingType, getSomeAnimation, getStore, getTemplateName, getTextureQuality, getTextureQualityLabel, getTimeSet, getTitle, getTransientProperty, getUnitForColor, getUseFastRendering, getUsesTimeDriver, getUseTimesInAnimation, getVersion, getVerticalValue, getViewAnimation, getViewContext, getViewer, getViewManager, getViewManager, getViewManager, getViewManagerClassNames, getViewManagers, getViewMenuItems, getVisbilityAnimationPause, getWasUnPersisted, getWindow, getWindowSize, getWindowVisible, getWindowX, getWindowY, getZPosition, guiExported, guiImported, handleDisplayChanged, handleWindowClosing, hasMapProjection, hasTimeMacro, haveDataTimes, haveParameterDefaults, hide, hyperlinkUpdate, inGlobeDisplay, init, init, init, initAfterUnPersistence, initAsPrototype, initAsTemplate, initBasic, initializeWithNewData, initWindow, isDisplay3D, isGuiShown, isInitDone, isInTransectView, isInViewManager, itemStateChanged, makeChangeColorMenuItems, makeLegendLabel, makeLockButton, makeRemoveButton, moveTo, notifyViewManagersOfChange, parseProperties, popup, popupDataDialog, popupDataDialog, popupDataDialog, processRequestProperties, putTransientProperty, reallySetAttributeFlags, redoGuiLayout, reloadDataSource, reloadDataSourceInThread, removeDataChoice, removeDisplayable, removeDisplayables, removeDisplayables, removeOnWindowClose, removePropertyChangeListener, resetData, resetDimness, resetViewManager, revertToDefaultColorTable, revertToDefaultColorTable, revertToDefaultRange, revertToDefaultRange, saveAsFavorite, saveAsParameterDefaults, saveAsPrototype, saveAsTemplate, saveDataChoiceInCache, saveImage, selectDataChoices, setAnimationSet, setAttributeFlags, setCachedData, setCanDoRemoveAll, setCategories, setCollapseLegend, setColor, setColorBrighter, setColorDimmer, setColorDimness, setColorScaleInfo, setColorScaleVisible, setColorTable, setColorTable, setColorTableName, setColorUnit, setColorUnitName, setComponentHolder, setContents, setContourInfo, setContourInfoParams, setData, setDataChoices, setDataInstance, setDataInstances, setDataSelection, setDataTimeRange, setDefaultSamplingMode, setDefaultView, setDisplayableVisibility, setDisplayableVisiblity, setDisplayActive, setDisplayCategory, setDisplayId, setDisplayInactive, setDisplayListColor, setDisplayListColor, setDisplayListProperties, setDisplayListTemplate, setDisplayName, setDisplayUnit, setDisplayUnitName, setDisplayVisibility, setDoCursorReadout, setExpandedInTabs, setExtraLabelTemplate, setHadDataChoices, setHelpUrl, setId, setInitDataChoices, setInitialSettings, setInitialViewManager, setIsRaster, setIsTimeDriver, setLabelAsPreference, setLegendBackground, setLegendForeground, setLegendLabel, setLegendLabelTemplate, setLineWidth, setLockVisibilityToggle, setMainPanelDimensions, setMainPanelSize, setMakeWindow, setName, setNameFromUser, setNewColorUnit, setNewDisplayUnit, setNoteText, setOkToFireEvents, setOriginalDataChoicesLabel, setParamName, setPersistedVisadData, setPointSize, setProjectionInView, setProjectionInView, setProperty, setRange, setRange, setSelectRange, setSelectRangeEnabled, setSettingsDisplayUnit, setSharedColorScaleInfo, setShowInDisplayList, setShowInLegend, setShowInTabs, setShowNoteText, setSkipValue, setSmoothingFactor, setSmoothingType, setTemplateName, setTextureQuality, setTitle, setUnitForColor, setUseFastRendering, setUsesTimeDriver, setUseTimesInAnimation, setVersion, setViewer, setViewManagerClassNames, setVisbilityAnimationPause, setWindowSize, setWindowVisible, setWindowX, setWindowY, setZPosition, setZPosition, shouldAddAnimationListener, shouldAddDisplayListener, shouldApplyFastRendering, shouldBeDocked, shouldWindowBeVisible, show, showColorControlWidget, showColorDialog, showColorDialog, showColorScaleDialog, showColorScales, showColorSwatches, showContourPropertiesDialog, showDetails, showDisplaySettingsDialog, showHelp, showLegendMenu, showNormalCursor, showProperties, showTimeRangeDialog, showWaitCursor, timeChanged, toFront, toggleNoteTextArea, toggleVisibilityForVectorGraphicsRendering, toggleWindow, toString, updateAnimation, updateDataInstance, updateDataSelection, updateDisplayList, updateGridDataInstance, updateLegendAndList, updateLockButton, useSmoothingFactor, viewManagerChanged, viewManagerDestroyed, writeTestArchive, xxxsetDisplayActive, zSliderChanged
 
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

SHARE_ANGLE

public static final String SHARE_ANGLE
identified when sharing the rhi angle

See Also:
Constant Field Values

currentAngle

protected float currentAngle
the azimuth


stationLabel

protected JLabel stationLabel
the station label


currentLevel

protected Object currentLevel
Load or reload data for a RHI selector line which has moved.

Constructor Detail

RadarRhiControl

public RadarRhiControl()
Default constructor. Sets the appropriate attribute flags to determine what gui objects appear in the control window.

Method Detail

useZPosition

protected boolean useZPosition()
add the zposition slider

Overrides:
useZPosition in class DisplayControlImpl
Returns:
_more_

initDone

public void initDone()
Called after all initialization is finished. Labels plot in control window. Loads data in displays.

Overrides:
initDone in class CrossSectionControl

setData

protected boolean setData(DataChoice choice)
                   throws VisADException,
                          RemoteException
Set the data in the control

Overrides:
setData in class CrossSectionControl
Parameters:
choice - choice representing the data
Returns:
true if successful
Throws:
RemoteException - Java RMI error
VisADException - VisAD error

getCrossSectionViewLabel

protected String getCrossSectionViewLabel()
Get the label for the CrossSectionView

Overrides:
getCrossSectionViewLabel in class CrossSectionControl
Returns:
return the name of the cross section view

setUse3D

public void setUse3D(boolean value)
Set the Use3D property.

Parameters:
value - The new value for Use3D

getUse3D

public boolean getUse3D()
Get the Use3D property.

Returns:
The Use3D

crossSectionChanged

public void crossSectionChanged()
_more_

Overrides:
crossSectionChanged in class CrossSectionControl

centerLinePosition

protected void centerLinePosition()
                           throws VisADException,
                                  RemoteException
Put one end of the rhi control line on the radar position (centered); leave other end where it is.

Throws:
RemoteException - Java RMI error
VisADException - VisAD error

createXSDisplay

protected DisplayableData createXSDisplay()
                                   throws VisADException,
                                          RemoteException
Create the DisplayableData that will be used to depict the data in the main display.

Overrides:
createXSDisplay in class ColorCrossSectionControl
Returns:
depictor for data in main display
Throws:
VisADException - unable to create depictor
RemoteException - unable to create depictor (shouldn't happen)

createVCSDisplay

protected DisplayableData createVCSDisplay()
                                    throws VisADException,
                                           RemoteException
Create the DisplayableData that will be used to depict the data in the control's display.

Overrides:
createVCSDisplay in class ColorCrossSectionControl
Returns:
depictor for data in main display
Throws:
VisADException - unable to create depictor
RemoteException - unable to create depictor (shouldn't happen)

getColorWidgetLabel

public String getColorWidgetLabel()
set label for button controling color of the selector line to "line color:"

Overrides:
getColorWidgetLabel in class DisplayControlImpl
Returns:
the label

getControlWidgets

public void getControlWidgets(List controlWidgets)
                       throws VisADException,
                              RemoteException
_more_

Overrides:
getControlWidgets in class ColorCrossSectionControl
Parameters:
controlWidgets - _more_
Throws:
RemoteException - _more_
VisADException - _more_

getDisplayTabComponent

protected JComponent getDisplayTabComponent()
_more_

Overrides:
getDisplayTabComponent in class CrossSectionControl
Returns:
_more_

setCurrentAngle

public void setCurrentAngle(float az)
Deprecated. use setBeamAzimuth

Set the azimuth of the RHI from radar location, 360 degrees, cw from N

Parameters:
az - the azimuth of the RHI from radar location, 360 degrees, cw from N

getCurrentAngle

public void getCurrentAngle(float az)
Set the value of the azimuth of the RHI from radar location, 360 degrees, cw from N. Does NOT move the beam; this is only for persistence. Use resetBeamAz.

Parameters:
az - the azimuth of the RHI from radar location, 360 degrees, cw from N

getBeamAzimuth

public float getBeamAzimuth()
Get the azimuth of the rhi from radar location, 360 degrees, cw from N

Returns:
beamAz the azimuth of the rhi from radar

createCrossSectionSelector

protected void createCrossSectionSelector()
                                   throws VisADException,
                                          RemoteException
make a Selector line which shows and controls where RHI position is; uses current value of beam azimuth.

Overrides:
createCrossSectionSelector in class CrossSectionControl
Throws:
RemoteException - Java RMI error
VisADException - VisAD error

receiveShareData

public void receiveShareData(Sharable from,
                             Object dataId,
                             Object[] data)
using incoming shared RHI data, reset this display to match

Specified by:
receiveShareData in interface Sharable
Overrides:
receiveShareData in class CrossSectionControl
Parameters:
from - source of data to be shared
dataId - id of sharable data
data - sharable data

getLegendLabels

public 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;

Overrides:
getLegendLabels in class DisplayControlImpl
Parameters:
labels - List of labels
legendType - The type of legend, BOTTOM_LEGEND or SIDE_LEGEND

updateLegendLabel

protected void updateLegendLabel()
Method to update the legend label when the RHI position changes.

Overrides:
updateLegendLabel in class DisplayControlImpl

loadDataFromLine

protected void loadDataFromLine()
                         throws VisADException,
                                RemoteException
Create and loads a 2D FieldImpl from the existing getGridDataInstance() at the position indicated by the controlling Selector line end points;

Overrides:
loadDataFromLine in class CrossSectionControl
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

getRequestProperties

protected Hashtable getRequestProperties()
Get (and make if necessary) the requester Hastable of properties that is carried along with the data instance

Overrides:
getRequestProperties in class DisplayControlImpl
Returns:
Hashtable of request properties

setRequestProperties

protected void setRequestProperties()
Make the requester Hastable of properties that is carried along with the data instance


make2DData

protected FieldImpl make2DData(FieldImpl inputfieldImpl)
                        throws VisADException,
                               RemoteException
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. from FieldImpl (time -> (integer_index->(range,az,elev) -> parm))

Overrides:
make2DData in class CrossSectionControl
Parameters:
inputfieldImpl - The data as a Field
Returns:
a 2D version of the data
Throws:
RemoteException - Java RMI error
VisADException - VisAD error

getAllowSmoothing

public boolean getAllowSmoothing()
Get whether we can smooth this display

Overrides:
getAllowSmoothing in class ColorCrossSectionControl
Returns:
false

getAllowAutoScale

public boolean getAllowAutoScale()
Get whether we can autoscale the vertical scale

Overrides:
getAllowAutoScale in class CrossSectionControl
Returns:
false

getAutoScaleYAxis

public boolean getAutoScaleYAxis()
Get whether we should autoscale the Y Axis.

Overrides:
getAutoScaleYAxis in class CrossSectionControl
Returns:
false

getDataProjectionLabel

protected String getDataProjectionLabel()
Get the data projection label

Overrides:
getDataProjectionLabel in class DisplayControlImpl
Returns:
the data projection label