ucar.unidata.idv.control
Class ColorRhiControl

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.ColorRhiControl
All Implemented Interfaces:
ActionListener, ItemListener, PropertyChangeListener, EventListener, HyperlinkListener, Sharable, DataChangeListener, DisplayControl, Prototypable, DisplayableData.DragAdapter, ControlListener, DisplayListener

public class ColorRhiControl
extends ColorCrossSectionControl

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.

Version:
$Revision: 1.64 $
Author:
IDV Development Team

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 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
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.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, 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, useZPosition, 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

beamAz

protected float beamAz
the beam azimuth


autorotateOn

protected boolean autorotateOn
flag for auto rotations


stationLabel

protected JLabel stationLabel
the station label

Constructor Detail

ColorRhiControl

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

Method Detail

initDone

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

Overrides:
initDone in class CrossSectionControl

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Handle property change

Specified by:
propertyChange in interface PropertyChangeListener
Overrides:
propertyChange in class CrossSectionControl
Parameters:
evt - The event

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

updateCenterPoint

protected void updateCenterPoint()
                          throws VisADException,
                                 RemoteException
Update the center point location

Throws:
RemoteException - Java RMI error
VisADException - VisAD error

crossSectionChanged

public void crossSectionChanged()
Load or reload data for a RHI selector line which has moved.

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

autorotateLine

protected void autorotateLine()
argument to runAuto ensures each thread has an id


resetBeamAz

public void resetBeamAz(float c)
Shift the azimuth of the RHI from radar location, 360 degrees, clockwise from N

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

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
Add any specialized control widgets for this control to the list.

Overrides:
getControlWidgets in class ColorCrossSectionControl
Parameters:
controlWidgets - List to add to.
Throws:
VisADException - unable to create controls
RemoteException - unable to create controls (shouldn't happen)

getDisplayTabComponent_old

protected JComponent getDisplayTabComponent_old()
Create the component that goes into the 'Display' tab

Returns:
Display tab component

getDisplayTabComponent

protected JComponent getDisplayTabComponent()
_more_

Overrides:
getDisplayTabComponent in class CrossSectionControl
Returns:
_more_

setAutorotateOn

public void setAutorotateOn(boolean v)
Set whether the rhi is in autorotate mode Used by XML persistence.

Parameters:
v - boolean true is rotating

getAutorotateOn

public boolean getAutorotateOn()
get whether the rhi is in autorotate mode

Returns:
true if rotating

setBeamAz

public void setBeamAz(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

setBeamAzimuth

public void setBeamAzimuth(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