Package ucar.unidata.idv.control
Class ColorRhiControl
- All Implemented Interfaces:
ActionListener,ItemListener,PropertyChangeListener,EventListener,HyperlinkListener,Sharable,DataChangeListener,DisplayControl,Prototypable,DisplayableData.DragAdapter,ControlListener,DisplayListener
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
FieldsModifier and TypeFieldDescriptionprotected booleanflag for auto rotationsprotected floatthe beam azimuthprotected JLabelthe station labelFields inherited from class ucar.unidata.idv.control.CrossSectionControl
animationInfo, controlPane, coordTrans, crossSectionView, csSelector, dataIs3D, displayIs3D, displayMatrix, endCoord, endLocation, initEndPoint, initStartPoint, levelsList, lineVisible, SHARE_XSLINE, sizeX, sizeY, startCoord, startLocation, vcsDisplay, verticalAxisRange, xsDisplayFields inherited from class ucar.unidata.idv.control.GridDisplayControl
CMD_CONTOURDIALOG, CMD_SETLEVELS, gridDataInstance, INITIAL_PROBE_EARTHLOCATION, log_, settingLevelFields 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, isProgressiveResolution, matchDisplayRegion, noteTextArea, noteWrapper, paramName, reloadFromBounds, requestProperties, resolutionReadout, selectRangeWidget, settingVisibility, sharables, showNoteText, skipSlider, version, viewManagers, ZFUDGEFields inherited from class ucar.unidata.idv.control.DisplayControlBase
APPEARANCE_DARK, APPEARANCE_IDV, APPEARANCE_LIGHT, 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_FHOUR2, MACRO_LONGNAME, MACRO_POSITION, MACRO_RESOLUTION, 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_AVERAGEFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidargument to runAuto ensures each thread has an idprotected booleanDoes this control support progressive resolution? Subclasses should override.protected voidPut one end of the rhi control line on the radar position (centered); leave other end where it is.protected voidmake a Selector line which shows and controls where RHI position is; uses current value of beam azimuth.protected DisplayableDataCreate theDisplayableDatathat will be used to depict the data in the control's display.protected DisplayableDataCreate theDisplayableDatathat will be used to depict the data in the main display.voidLoad or reload data for a RHI selector line which has moved.booleanGet whether we can autoscale the vertical scalebooleanGet whether we can smooth this displaybooleanget whether the rhi is in autorotate modebooleanGet whether we should autoscale the Y Axis.floatGet the azimuth of the rhi from radar location, 360 degrees, cw from Nset label for button controling color of the selector line to "line color:"voidgetControlWidgets(List controlWidgets) Add any specialized control widgets for this control to the list.protected StringGet the label for the CrossSectionViewprotected StringGet the data projection labelprotected JComponent_more_protected JComponentCreate the component that goes into the 'Display' tabvoidgetLegendLabels(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 HashtableGet (and make if necessary) the requester Hastable of properties that is carried along with the data instancevoidinitDone()Called after all initialization is finished.protected voidCreate and loads a 2D FieldImpl from the existing getGridDataInstance() at the position indicated by the controlling Selector line end points;protected FieldImplmake2DData(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.voidHandle property changevoidreceiveShareData(Sharable from, Object dataId, Object[] data) using incoming shared RHI data, reset this display to matchvoidresetBeamAz(float c) Shift the azimuth of the RHI from radar location, 360 degrees, clockwise from NvoidsetAutorotateOn(boolean v) Set whether the rhi is in autorotate mode Used by XML persistence.voidsetBeamAz(float az) Set the azimuth of the RHI from radar location, 360 degrees, cw from NvoidsetBeamAzimuth(float az) Set the value of the azimuth of the RHI from radar location, 360 degrees, cw from N.protected booleansetData(DataChoice choice) Set the data in the controlvoid_more_protected voidMake the requester Hastable of properties that is carried along with the data instanceprotected voidUpdate the center point locationprotected voidMethod to update the legend label when the RHI position changes.Methods inherited from class ucar.unidata.idv.control.ColorCrossSectionControl
getIsRaster, getSmoothed, setAllowSmoothing, setSmoothedMethods inherited from class ucar.unidata.idv.control.CrossSectionControl
addDisplaySettings, addLabelMacros, addNewData, addPropertiesComponents, addTopographyMap, applyPreferences, applySmoothing, applyZPosition, boxToEarth, canExportData, constrainDragPoint, convertToDisplay, createCrossSectionSelector, createCrossSectionSelector1, createXFromLatLon, doApplyProperties, doExport, doMakeChangeParameterMenuItem, doMakeContents, doRemove, getAltUnit, getAnimationInfo, getAutoUpdate, getChangeParameterLabel, getControlList, getCrossSectionSelector, getCrossSectionVerticalRange, getCrossSectionView, getCrossSectionViewManager, getCursorReadoutInner, getDataProjection, getDataVerticalRange, getDefaultVerticalRange, getDisplayedData, getEditMenuItems, getEndPoint, getGridDisplayable, getInitialZPosition, getLineCoords, getLineRange, getLineVisible, getMacroNames, getPressureLabels, getSelectorAltitude, getSelectorAttributeFlags, getStartPoint, getVerticalAxisRange, getVerticalCSDisplay, getViewManagerForCapture, getViewMenuItems, getXSDisplay, getZPositionSliderLabel, handleAddPoint, handleDragDirect, init, initAfterUnPersistence, load2DData, loadData, make2DDomainSet, processNewData, processNewData, processNewDataV, processNewDataV, projectionChanged, relocateDisplay, removeControl, removeDisplayables, reScale, reSetTimeHeightAltitudeUnit, setAllowAutoScale, setAltUnit, setAnimationInfo, setAutoScaleYAxis, setAutoUpdate, setBackground, setControlList, setCrossSectionView, setDisplayMatrix, setEndCoord, setForeground, setInitAlt, setInitLat1, setInitLat2, setInitLon1, setInitLon2, setLineVisible, setPosition, setStartCoord, setStartPoint, setVerticalAxisRange, setYAxisRange, shouldAddControlListener, transectChanged, updateLocationLabel, updateViewParameters, viewpointChangedMethods inherited from class ucar.unidata.idv.control.GridDisplayControl
actionPerformed, addTopographyMap, addTopographyMap, applyForecastHourMacro, convertColorRange, doMakeContourLevelControl, doMakeDataInstance, doMakeLevelControl, doMakeLevelControl, exportDisplayedData, getColorParamName, getColorRangeFromData, getColorRangeIndex, getColorUnit, getContourInfo, getCursorReadoutData, getDataRangeInColorUnits, getDefaultContourInfo, getDisplayUnit, getGridDataInstance, getInitialColorTable, getInitialRange, getRawDataUnit, haveMultipleFields, initializeDefaultContourInfo, isDisplayUnitAlsoColorUnit, normalizeRectangle, setLevel, setLevel, setLevelFromUser, shouldAddDisplayListenerMethods inherited from class ucar.unidata.idv.control.DisplayControlImpl
activateDisplays, addAttributedDisplayable, addAttributedDisplayable, addAttributedDisplayable, addAttributeFlags, addCheckBoxSettings, addDataChoice, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayMaster, 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, checkBoundsChange, checkFlag, checkIfDataOk, checkImageSize, clearDataInstance, clearPrototype, clearViewManagers, close, colorUnitChanged, controlChanged, convertColorRange, convertRange, createDisplayListDisplayable, createIdvWindow, dataChanged, deactivateDisplays, debug, displayableToFront, displayChanged, displayControlFailed, displayUnitChanged, doInitialUpdateLegendAndList, doMakeBottomLegendComponent, doMakeChangeColorMenu, doMakeChangeColorMenu, doMakeColorControl, doMakeColorControl, doMakeColorScales, doMakeMenuBar, doMakeMenuBarMenus, doMakePointSizeWidget, doMakeRemoveControl, doMakeSideLegendComponent, doMakeSkipFactorSlider, doMakeSmoothingWidget, doMakeTextureSlider, doMakeVisibilityControl, doMakeWidgetComponent, doMakeWindow, doMakeZPositionSlider, findDisplayInfo, findDisplays, findDisplays, firePropertyChangeEvent, firstFrameDone, formatForCursorReadout, getActive, getAnimation, getAnimation, getAnimation, getAnimation, getAnimationWidget, getAttributeFlags, getCachedData, getCanDoRemoveAll, getCategories, 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, getIsProgressiveResolution, getIsTimeDriver, getLabel, getLastFileMenuItems, getLatLonPoints, getLegendButtons, getLegendComponent, getLegendLabel, getLegendLabelTemplate, getLegendToolTip, getLineWidth, getLineWidthWidget, getLineWidthWidgetLabel, getLockVisibilityToggle, getLongParamName, getMainPanel, getMainPanelSize, getMakeWindow, getMapDisplay, getMapViewManager, getMapViewProjection, getMatchDisplayRegion, 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, getShoulDoProgressiveResolution, 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, hasForecastHourMacro, hasMapProjection, hasTimeMacro, haveDataTimes, haveParameterDefaults, hide, hyperlinkUpdate, inGlobeDisplay, init, init, init, initAfterUnPersistence, initAsPrototype, initAsTemplate, initBasic, initializeWithNewData, initWindow, isDisplay3D, isGuiShown, isInitDone, isInTransectView, isInViewManager, itemStateChanged, loadDataFromViewBounds, makeChangeColorMenuItems, makeLegendLabel, makeLockButton, makeRemoveButton, moveTo, notifyViewManagersOfChange, parseProperties, popup, popupDataDialog, popupDataDialog, popupDataDialog, processRequestProperties, putTransientProperty, reallySetAttributeFlags, redoGuiLayout, reloadDataSource, reloadDataSourceInThread, relocateDisplay, removeDataChoice, removeDisplayable, removeDisplayables, removeDisplayables, removeOnWindowClose, removePropertyChangeListener, resetData, resetDimness, resetViewManager, revertToDefaultColorTable, revertToDefaultColorTable, revertToDefaultRange, revertToDefaultRange, saveAsFavorite, saveAsParameterDefaults, saveAsPrototype, saveAsTemplate, saveDataChoiceInCache, saveImage, saveProjection, 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, setDisplayAreaSubset, setDisplayCategory, setDisplayId, setDisplayInactive, setDisplayListColor, setDisplayListColor, setDisplayListProperties, setDisplayListTemplate, setDisplayListTimeZone, setDisplayName, setDisplayUnit, setDisplayUnitName, setDisplayVisibility, setDoCursorReadout, setExpandedInTabs, setExtraLabelTemplate, setHadDataChoices, setHelpUrl, setId, setInitDataChoices, setInitialSettings, setInitialViewManager, setIsProgressiveResolution, setIsRaster, setIsTimeDriver, setLabelAsPreference, setLegendBackground, setLegendForeground, setLegendLabel, setLegendLabelTemplate, setLineWidth, setLockVisibilityToggle, setMainPanelDimensions, setMainPanelSize, setMakeWindow, setMatchDisplayRegion, setName, setNameFromUser, setNewColorUnit, setNewDisplayUnit, setNoteText, setOkToFireEvents, setOriginalDataChoicesLabel, setParamName, setPersistedVisadData, setPointSize, setProjectionInView, 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, 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, zSliderChangedMethods 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, userMessageMethods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ucar.unidata.idv.DisplayControl
getTmpProperty, putTmpProperty, removeTmpPropertyMethods inherited from interface ucar.unidata.collab.Sharable
getReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTime
-
Field Details
-
beamAz
protected float beamAzthe beam azimuth -
autorotateOn
protected boolean autorotateOnflag for auto rotations -
stationLabel
the station label
-
-
Constructor Details
-
ColorRhiControl
public ColorRhiControl()Default constructor. Sets the appropriate attribute flags to determine what gui objects appear in the control window.
-
-
Method Details
-
initDone
public void initDone()Called after all initialization is finished. Labels plot in control window. Loads data in displays.- Overrides:
initDonein classCrossSectionControl
-
propertyChange
Handle property change- Specified by:
propertyChangein interfacePropertyChangeListener- Overrides:
propertyChangein classCrossSectionControl- Parameters:
evt- The event
-
setData
Set the data in the control- Overrides:
setDatain classCrossSectionControl- Parameters:
choice- choice representing the data- Returns:
- true if successful
- Throws:
RemoteException- Java RMI errorVisADException- VisAD error
-
getCrossSectionViewLabel
Get the label for the CrossSectionView- Overrides:
getCrossSectionViewLabelin classCrossSectionControl- Returns:
- return the name of the cross section view
-
updateCenterPoint
Update the center point location- Throws:
RemoteException- Java RMI errorVisADException- VisAD error
-
crossSectionChanged
public void crossSectionChanged()Load or reload data for a RHI selector line which has moved.- Overrides:
crossSectionChangedin classCrossSectionControl
-
centerLinePosition
Put one end of the rhi control line on the radar position (centered); leave other end where it is.- Throws:
RemoteException- Java RMI errorVisADException- 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
Create theDisplayableDatathat will be used to depict the data in the main display.- Overrides:
createXSDisplayin classColorCrossSectionControl- Returns:
- depictor for data in main display
- Throws:
VisADException- unable to create depictorRemoteException- unable to create depictor (shouldn't happen)
-
createVCSDisplay
Create theDisplayableDatathat will be used to depict the data in the control's display.- Overrides:
createVCSDisplayin classColorCrossSectionControl- Returns:
- depictor for data in main display
- Throws:
VisADException- unable to create depictorRemoteException- unable to create depictor (shouldn't happen)
-
getColorWidgetLabel
set label for button controling color of the selector line to "line color:"- Overrides:
getColorWidgetLabelin classDisplayControlImpl- Returns:
- the label
-
getControlWidgets
Add any specialized control widgets for this control to the list.- Overrides:
getControlWidgetsin classColorCrossSectionControl- Parameters:
controlWidgets-Listto add to.- Throws:
VisADException- unable to create controlsRemoteException- unable to create controls (shouldn't happen)
-
getDisplayTabComponent_old
Create the component that goes into the 'Display' tab- Returns:
- Display tab component
-
getDisplayTabComponent
_more_- Overrides:
getDisplayTabComponentin classCrossSectionControl- 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) 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 deprecated use setBeamAzimuth
-
setEndPoint
_more_- Overrides:
setEndPointin classCrossSectionControl- Parameters:
p- _more_
-
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
make a Selector line which shows and controls where RHI position is; uses current value of beam azimuth.- Overrides:
createCrossSectionSelectorin classCrossSectionControl- Throws:
RemoteException- Java RMI errorVisADException- VisAD error
-
getLegendLabels
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:
getLegendLabelsin classDisplayControlImpl- Parameters:
labels- List of labelslegendType- 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:
updateLegendLabelin classDisplayControlImpl
-
loadDataFromLine
Create and loads a 2D FieldImpl from the existing getGridDataInstance() at the position indicated by the controlling Selector line end points;- Overrides:
loadDataFromLinein classCrossSectionControl- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
getRequestProperties
Get (and make if necessary) the requester Hastable of properties that is carried along with the data instance- Overrides:
getRequestPropertiesin classDisplayControlImpl- Returns:
- Hashtable of request properties
-
setRequestProperties
protected void setRequestProperties()Make the requester Hastable of properties that is carried along with the data instance -
make2DData
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:
make2DDatain classCrossSectionControl- Parameters:
inputfieldImpl- The data as a Field- Returns:
- a 2D version of the data
- Throws:
RemoteException- Java RMI errorVisADException- VisAD error
-
getAllowSmoothing
public boolean getAllowSmoothing()Get whether we can smooth this display- Overrides:
getAllowSmoothingin classColorCrossSectionControl- Returns:
- false
-
getAllowAutoScale
public boolean getAllowAutoScale()Get whether we can autoscale the vertical scale- Overrides:
getAllowAutoScalein classCrossSectionControl- Returns:
- false
-
getAutoScaleYAxis
public boolean getAutoScaleYAxis()Get whether we should autoscale the Y Axis.- Overrides:
getAutoScaleYAxisin classCrossSectionControl- Returns:
- false
-
getDataProjectionLabel
Get the data projection label- Overrides:
getDataProjectionLabelin classDisplayControlImpl- Returns:
- the data projection label
-
canDoProgressiveResolution
protected boolean canDoProgressiveResolution()Description copied from class:DisplayControlImplDoes this control support progressive resolution? Subclasses should override.- Overrides:
canDoProgressiveResolutionin classGridDisplayControl- Returns:
- _more_
-