Package ucar.unidata.idv.control
Class ProbeControl
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.idv.control.DisplayControlBase
ucar.unidata.idv.control.DisplayControlImpl
ucar.unidata.idv.control.ProbeControl
- All Implemented Interfaces:
ActionListener,ItemListener,PropertyChangeListener,EventListener,HyperlinkListener,Sharable,DataChangeListener,DisplayControl,Prototypable,DisplayableData.DragAdapter,ControlListener,DisplayListener
A widget to display data values at one point in the 2d or 3d data field.
Can show several parameters' values at the point. Can choose method of
field sampling - nearest grid point value or weighted average.
Can change levels.
- Author:
- IDV developers
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassClass LevelEditor, used for selecting levels in table columnclassIf user clicks on the "sampling" column, a popup menu appears with choices for the grid value sampling method.Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl
DisplayControlImpl.SideLegendLabel -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intColumn value propertystatic final intColumn level propertystatic final intColumn name propertystatic final intColumn sampling propertystatic final intColumn value propertyboolean_more_static final intnumber of columnsstatic final StringID for sharing choicesstatic final StringID for sharing levelsstatic final StringID for sharing sampling methodsstatic final StringID for sharing positionFields 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, log_, 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_COLOR, SHARE_COLORSCALE, SHARE_COLORTABLE, SHARE_DISPLAYUNIT, 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 voidAdd display settings for this controlprotected voidaddLabelMacros(String template, List patterns, List values) Add any macro name/value pairs.protected voidaddNewData(List newChoices) Override base class method which is called when the user has selected new data choices.protected voidAdd properties componentsvoidApply the preferences.protected booleanDoes this control support progressive resolution? Subclasses should override.voidchangePointParameter(Object[] param) Change the parameter to usebooleanconstrainDragPoint(float[] position) Constrain the drag pointvoidDecrease the probe sizebooleanApply the propertiesvoidCalled by ISL.Make the UI for this display control.voiddoRemove()Remove this display.voidExport the current time as csvvoidExport all times as csvvoidexportToCsv(Real[] times) Export all times as csvvoidexportToCsv(Real[] times, String filename) intfindClosestPointIdx(FlatField obs, EarthLocation elt) protected StringReturn the appropriate label text for the menu.getChart()Get the chartReturn the label that is to be used for the color widget This allows derived classes to override this and provide their own name,protected ListgetCursorReadoutInner(EarthLocation elt, Real animationValue, int animationStep, List<ReadoutInfo> samples) Return the list of html for doing the cursor readoutgetDataChoiceAtRow(int row) Get the DataChoice associated with the parameter at a particular row.Get the DataTemplate property.protected SetCollect the time animation set from the displayables.protected voidgetEditMenuItems(List items, boolean forMenuBar) Get edit menu itemsprotected JComponentgetExtraLegendComponent(int legendType) Assume that any display controls that have a color table widget will want the color table to show up in the legend.get the image for whatgetInfos()Get the Infos property.booleanGet the KeepProbeAtHeight property.voidgetLegendLabels(List labels, int legendType) Append any label information to the list of labels.Real[]getLevelsAtRow(int row) Get the list of levels for a particular parameter (row)protected StringOverride base class method to use the list of data choices to get the long parameter nameprotected voidgetMacroNames(List names, List labels) Add any macro name/label pairsGet the Marker property.Set the probe position property; used by XML persistence.doubleGet the ProbeRadius property.protected voidgetSaveMenuItems(List items, boolean forMenuBar) Add the relevant file menu items into the listbooleanGet the ShowSunriseSunset property.booleanGet the ShowTable property.booleanGet the ShowTableInLegend property.Get the TimeSeries property.protected voidgetViewMenuItems(List items, boolean forMenuBar) Make the view menu itemsbooleanGet the XFixed property.booleanGet the YFixed property.booleanGet the ZFixed property.booleanhandleAddPoint(float[] x) Handle adding a pointbooleanhandleDragDirect(VisADRay ray, boolean first, int mouseModifiers) Handle the dragboolean_more_booleanhaveLevelsAtRow(int row) see if there are levels assigned to this row (parameter); some data is 2d and has no levels.voidIncrease the probe sizebooleanSet up new probe.voidinitDone()Called after init.protected voidpopupDataDialog(String dialogMessage, Component from, boolean multiples, List categories) Popup the data dialog; override superclass to allow multiple selections.protected voidprocessNewData(List newChoices) Override base class method which is called when the user has selected new data choices.voidRespond to a change in the display's projection.voidProperty change method.voidreceiveShareData(Sharable from, Object dataId, Object[] data) Method called by other classes that share the statevoidrelocateDisplay(ucar.unidata.geoloc.LatLonRect originalBounds, ucar.unidata.geoloc.LatLonRect newBounds, boolean useDataProjection) When we relocate a bundle this gets called to relocate the display This method gets overwritten by the probe and cross section displays so they can move their selection points to a new locationprotected voidOverride base class method to just trigger a redisplay of the data.protected voidresetData(boolean clearCache) Reset the data.voidReset the position of the probe to the center.voidresetProbePosition(double lat, double lon, double alt) Reset the position of the probe to the center.voidsetAltitudes(List l) Set the altitudes property, use for persistencevoidsetChartName(String newName) Set the chart NamevoidsetDataTemplate(String value) Set the DataTemplate property.voidSet the earth locationvoidsetInfos(List<ProbeRowInfo> value) Set the Infos property.voidsetKeepProbeAtHeight(boolean value) Set the KeepProbeAtHeight property.voidGet the list of levels; use by persistencevoidSet the Marker property.voidsetMethods(List l) Get the list of sampling methods for each of the parameters.voidsetPointSize(float value) Set the PointSize property.voidSet the probe position property; used by XML persistence.voidsetProbeRadius(double value) Set the ProbeRadius property.voidsetShowSunriseSunset(boolean value) Set the ShowSunriseSunset property.voidsetShowTable(boolean value) Set the ShowTable property.voidsetShowTableInLegend(boolean value) Set the ShowTableInLegend property.voidsetShowThumbNail(boolean value) Set the ShowThumbNail property.voidSet the list of display sounds for each parameter.voidsetTimeSeries(TimeSeriesChart value) Set the TimeSeries property.voidSet the list of display units for each parameter.voidsetXFixed(boolean value) Set the XFixed property.voidsetYFixed(boolean value) Set the YFixed property.voidsetZFixed(boolean value) Set the ZFixed property.protected booleanA hook to allow derived classes to tell us to add this as an animation listenerprotected booleanA hook to allow derived classes to tell us to add this as a control listenervoidshowLineProperties(ProbeRowInfo rowInfo) Show the properties dialog for the chart linevoidshowSoundDialog(ProbeRowInfo info) Show the sound dialog for the rowprotected voidtimeChanged(Real time) Respond to a timeChange eventprotected voidThis method is called to update the legend labels when some state has changed in this control that is reflected in the labels.voidMake new values in data probe display (readout table) to match chages in location or sampling of data.void_more_Methods inherited from class ucar.unidata.idv.control.DisplayControlImpl
actionPerformed, 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, applyForecastHourMacro, applyLineWidth, applyProperties, applyProperties, applyPropertyValues, applyRange, applySelectRange, applySkipFactor, applySmoothing, applyTextureQuality, applyTimeRange, applyZPosition, boundsClose, canBeDocked, canExportData, 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, doMakeChangeParameterMenuItem, doMakeColorControl, doMakeColorControl, doMakeColorScales, doMakeDataInstance, doMakeMenuBar, doMakeMenuBarMenus, doMakePointSizeWidget, doMakeRemoveControl, doMakeSideLegendComponent, doMakeSkipFactorSlider, doMakeSmoothingWidget, doMakeTextureSlider, doMakeVisibilityControl, doMakeWidgetComponent, doMakeWindow, doMakeZPositionSlider, exportDisplayedData, findDisplayInfo, findDisplays, findDisplays, firePropertyChangeEvent, firstFrameDone, formatForCursorReadout, getActive, getAnimation, getAnimation, getAnimation, getAnimation, getAnimationInfo, getAnimationWidget, getAttributeFlags, getCachedData, getCanDoRemoveAll, getCategories, getCollapseLegend, getColor, getColorDimness, getColorScaleInfo, getColorTable, getColorTableForDisplayable, getColorTableToApply, getColorTableWidget, getColorUnit, getColorUnitName, getComponentHolder, getContents, getContourInfo, getControlChangeSleepTime, getControlContext, getControlMenus, getControlWidgets, getCursorReadout, getCursorReadoutInner, getData, getDataChoice, getDataChoices, getDataForDisplayList, getDataInstance, getDataInstance, getDataProjection, getDataProjectionForMenu, getDataProjectionLabel, getDataSelection, getDataSources, getDataTimeRange, getDataTimeRange, getDebugDetails, getDefaultColorScaleInfo, getDefaultDisplayListTemplate, getDefaultDistanceUnit, getDefaultFastRendering, getDefaultSamplingMode, getDefaultSamplingModeValue, getDefaultView, getDefaultViewDescriptor, getDefaultViewManager, getDetailsContents, getDisplayAltitudeType, getDisplayCategory, getDisplayCenter, getDisplayConventions, getDisplayedData, getDisplayId, getDisplayInfos, getDisplayListColor, getDisplayListData, getDisplayListDisplayable, getDisplayListTemplate, getDisplayMaster, getDisplayName, getDisplayScale, getDisplayUnit, getDisplayUnit, getDisplayUnitName, getDisplayVisibility, getDoCursorReadout, getEditMenuItems, getExpandedInTabs, getExtraLabelTemplate, getExtraMenus, getFileMenuItems, getFileMenuItems, getGraphicsConfiguration, getGrid, getGrid, getHadDataChoices, getHaveInitialized, getHelpIds, getHelpMenuItems, getId, getIdv, getImage, getInitDataChoices, getInitialColorTable, getInitialFastRendering, getInitialRange, getInitialZPosition, getInternalAnimation, getInternalAnimation, getIsProgressiveResolution, getIsRaster, getIsTimeDriver, getLabel, getLastFileMenuItems, getLatLonPoints, getLegendButtons, getLegendComponent, getLegendLabel, getLegendLabelTemplate, getLegendToolTip, getLineWidth, getLineWidthWidget, getLineWidthWidgetLabel, getLockVisibilityToggle, getMainPanel, getMainPanelSize, getMakeWindow, getMapDisplay, getMapViewManager, getMapViewProjection, getMatchDisplayRegion, getMenuLabel, getMyDataChoices, getNavigatedDisplay, getNoteText, getObjectStore, getOkToFireEvents, getOldColorTableOrInitialColorTable, getOriginalDataChoicesLabel, getOuterContents, getPointSize, getProperty, getProperty, getPropertyDisplayName, getRange, getRangeForColorTable, getRangeToApply, getRawDataUnit, getRequestProperties, getSamplingModeName, getSamplingModeValue, getSamplingModeValue, 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, getViewManagerForCapture, getViewManagers, getViewMenuItems, getVisbilityAnimationPause, getWasUnPersisted, getWindow, getWindowSize, getWindowVisible, getWindowX, getWindowY, getZPosition, getZPositionSliderLabel, guiExported, guiImported, handleDisplayChanged, handleWindowClosing, hasForecastHourMacro, hasTimeMacro, haveDataTimes, haveParameterDefaults, hide, hyperlinkUpdate, inGlobeDisplay, init, init, init, initAfterUnPersistence, initAfterUnPersistence, initAsPrototype, initAsTemplate, initBasic, initializeWithNewData, initWindow, isDisplay3D, isDisplayUnitAlsoColorUnit, isGuiShown, isInitDone, isInTransectView, isInViewManager, itemStateChanged, loadDataFromViewBounds, makeChangeColorMenuItems, makeLegendLabel, makeLockButton, makeRemoveButton, moveTo, notifyViewManagersOfChange, parseProperties, popup, popupDataDialog, popupDataDialog, processRequestProperties, putTransientProperty, reallySetAttributeFlags, redoGuiLayout, reloadDataSource, reloadDataSourceInThread, relocateDisplay, removeDataChoice, removeDisplayable, removeDisplayables, removeDisplayables, removeOnWindowClose, removePropertyChangeListener, resetDimness, resetViewManager, revertToDefaultColorTable, revertToDefaultColorTable, revertToDefaultRange, revertToDefaultRange, saveAsFavorite, saveAsParameterDefaults, saveAsPrototype, saveAsTemplate, saveDataChoiceInCache, saveImage, saveProjection, selectDataChoices, setAnimationInfo, setAnimationSet, setAttributeFlags, setCachedData, setCanDoRemoveAll, setCategories, setCollapseLegend, setColor, setColorBrighter, setColorDimmer, setColorDimness, setColorScaleInfo, setColorScaleVisible, setColorTable, setColorTable, setColorTableName, setColorUnit, setColorUnitName, setComponentHolder, setContents, setContourInfo, setContourInfoParams, setData, 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, 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, shouldAddDisplayListener, shouldApplyFastRendering, shouldBeDocked, shouldWindowBeVisible, show, showColorControlWidget, showColorDialog, showColorDialog, showColorScaleDialog, showColorScales, showColorSwatches, showContourPropertiesDialog, showDetails, showDisplaySettingsDialog, showHelp, showLegendMenu, showNormalCursor, showProperties, showTimeRangeDialog, showWaitCursor, toFront, toggleNoteTextArea, toggleVisibilityForVectorGraphicsRendering, toggleWindow, toString, transectChanged, 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
-
SHARE_POSITION
ID for sharing position- See Also:
-
SHARE_CHOICES
ID for sharing choices- See Also:
-
SHARE_METHODS
ID for sharing sampling methods- See Also:
-
SHARE_LEVELS
ID for sharing levels- See Also:
-
COL_NAME
public static final int COL_NAMEColumn name property- See Also:
-
COL_VALUE
public static final int COL_VALUEColumn value property- See Also:
-
COL_EXTRA
public static final int COL_EXTRAColumn value property- See Also:
-
COL_LEVEL
public static final int COL_LEVELColumn level property- See Also:
-
COL_SAMPLING
public static final int COL_SAMPLINGColumn sampling property- See Also:
-
NUM_COLS
public static final int NUM_COLSnumber of columns- See Also:
-
hasLatLon
public boolean hasLatLon_more_
-
-
Constructor Details
-
ProbeControl
public ProbeControl()Cstr; sets flags; see init() for creation actions. needed for bean persistence
-
-
Method Details
-
init
Set up new probe.- Overrides:
initin classDisplayControlImpl- Parameters:
choices- a list of DataChoices- Returns:
- boolean true if succeeded
- Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
initDone
public void initDone()Called after init.- Overrides:
initDonein classDisplayControlImpl
-
addPropertiesComponents
Add properties components- Overrides:
addPropertiesComponentsin classDisplayControlImpl- Parameters:
jtp- the JTabbedPane
-
doApplyProperties
public boolean doApplyProperties()Apply the properties- Overrides:
doApplyPropertiesin classDisplayControlImpl- Returns:
- the properties
-
getColorWidgetLabel
Return the label that is to be used for the color widget This allows derived classes to override this and provide their own name,- Overrides:
getColorWidgetLabelin classDisplayControlImpl- Returns:
- Label used for the color widget
-
getViewMenuItems
Make the view menu items- Overrides:
getViewMenuItemsin classDisplayControlImpl- Parameters:
items- List of menu itemsforMenuBar- forMenuBar
-
shouldAddAnimationListener
protected boolean shouldAddAnimationListener()A hook to allow derived classes to tell us to add this as an animation listener- Overrides:
shouldAddAnimationListenerin classDisplayControlImpl- Returns:
- Add as animation listener
-
setEarthLocation
Set the earth location- Parameters:
el- the earth location
-
relocateDisplay
public void relocateDisplay(ucar.unidata.geoloc.LatLonRect originalBounds, ucar.unidata.geoloc.LatLonRect newBounds, boolean useDataProjection) When we relocate a bundle this gets called to relocate the display This method gets overwritten by the probe and cross section displays so they can move their selection points to a new location- Overrides:
relocateDisplayin classDisplayControlImpl- Parameters:
originalBounds- The original bounds of the datasourcenewBounds- The relocated bounds of the datasource
-
addDisplaySettings
Add display settings for this control- Overrides:
addDisplaySettingsin classDisplayControlImpl- Parameters:
dsd- dialog to add to
-
resetProbePosition
public void resetProbePosition()Reset the position of the probe to the center. -
resetProbePosition
public void resetProbePosition(double lat, double lon, double alt) Reset the position of the probe to the center.- Parameters:
lat- latlon- lonalt- alt
-
getEditMenuItems
Get edit menu items- Overrides:
getEditMenuItemsin classDisplayControlImpl- Parameters:
items- list of menu itemsforMenuBar- true if for the menu bar
-
getLongParamName
Override base class method to use the list of data choices to get the long parameter name- Overrides:
getLongParamNamein classDisplayControlImpl- Returns:
- The String to be used for the long parameter name
-
projectionChanged
public void projectionChanged()Respond to a change in the display's projection. In this case we resample at the new location. (move probe)- Specified by:
projectionChangedin interfaceDisplayControl- Overrides:
projectionChangedin classDisplayControlImpl
-
getMacroNames
Add any macro name/label pairs- Overrides:
getMacroNamesin classDisplayControlImpl- Parameters:
names- List of macro nameslabels- List of macro labels
-
addLabelMacros
Add any macro name/value pairs.- Overrides:
addLabelMacrosin classDisplayControlImpl- Parameters:
template- templatepatterns- The macro namesvalues- The macro values
-
getDataTimeSet
Collect the time animation set from the displayables. If none found then return null.- Overrides:
getDataTimeSetin classDisplayControlImpl- Returns:
- Animation set
- Throws:
RemoteException- On badnessVisADException- On badness
-
resetData
Override base class method to just trigger a redisplay of the data.- Overrides:
resetDatain classDisplayControlImpl- Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
resetData
Reset the data.- Parameters:
clearCache- If true then clear the cached data in the rows- Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
addNewData
Override base class method which is called when the user has selected new data choices.- Overrides:
addNewDatain classDisplayControlImpl- Parameters:
newChoices- new list of choices- Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
processNewData
Override base class method which is called when the user has selected new data choices.- Parameters:
newChoices- new list of choices- Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
getExtraLegendComponent
Assume that any display controls that have a color table widget will want the color table to show up in the legend.- Overrides:
getExtraLegendComponentin classDisplayControlImpl- Parameters:
legendType- type of legend- Returns:
- The extra JComponent to use in legend
-
getLegendLabels
Append any label information to the list of labels.- Overrides:
getLegendLabelsin classDisplayControlImpl- Parameters:
labels- in/out list of labelslegendType- The type of legend, BOTTOM_LEGEND or SIDE_LEGEND
-
setPosition
Set the probe position property; used by XML persistence.- Parameters:
p- probe position
-
getPosition
Set the probe position property; used by XML persistence.- Returns:
- probe position - may be
null. - Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
doRemove
Remove this display.- Specified by:
doRemovein interfaceDisplayControl- Overrides:
doRemovein classDisplayControlImpl- Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
timeChanged
Respond to a timeChange event- Overrides:
timeChangedin classDisplayControlImpl- Parameters:
time- new time
-
getImage
get the image for what- Overrides:
getImagein classDisplayControlImpl- Parameters:
what- the thing to get- Returns:
- an image
- Throws:
Exception- problem (can this be more specific?)
-
handleDragDirect
Handle the drag- Specified by:
handleDragDirectin interfaceDisplayableData.DragAdapter- Parameters:
ray- the VisADRayfirst- whether this is the first time or notmouseModifiers- the mouse modifiers- Returns:
- true
-
handleAddPoint
public boolean handleAddPoint(float[] x) Handle adding a point- Specified by:
handleAddPointin interfaceDisplayableData.DragAdapter- Parameters:
x- the point Coordinates- Returns:
- true
-
constrainDragPoint
public boolean constrainDragPoint(float[] position) Constrain the drag point- Specified by:
constrainDragPointin interfaceDisplayableData.DragAdapter- Parameters:
position- the position- Returns:
- true
-
propertyChange
Property change method.- Specified by:
propertyChangein interfacePropertyChangeListener- Overrides:
propertyChangein classDisplayControlImpl- Parameters:
evt- event to act on
-
getLevelsAtRow
Get the list of levels for a particular parameter (row)- Parameters:
row- row for parameter- Returns:
- list of levels
-
haveLevelsAtRow
public boolean haveLevelsAtRow(int row) see if there are levels assigned to this row (parameter); some data is 2d and has no levels.- Parameters:
row- row to check- Returns:
- true if there are levels assigned to this row (parameter)
-
changePointParameter
Change the parameter to use- Parameters:
param- The parameter
-
doMakeContents
Make the UI for this display control.- Overrides:
doMakeContentsin classDisplayControlImpl- Returns:
- UI contents.
-
popupDataDialog
protected void popupDataDialog(String dialogMessage, Component from, boolean multiples, List categories) Popup the data dialog; override superclass to allow multiple selections.- Overrides:
popupDataDialogin classDisplayControlImpl- Parameters:
dialogMessage- the dialog messagefrom- component to latch on tomultiples- true to support multiple selectionscategories- data categories of params to show
-
showLineProperties
Show the properties dialog for the chart line- Parameters:
rowInfo- The chrt entry to show properties for
-
showSoundDialog
Show the sound dialog for the row- Parameters:
info- the row
-
getDataChoiceAtRow
Get the DataChoice associated with the parameter at a particular row.- Parameters:
row- row index- Returns:
- the associated DataChoice
-
getChangeParameterLabel
Return the appropriate label text for the menu.- Overrides:
getChangeParameterLabelin classDisplayControlImpl- Returns:
- the label text
-
updatePosition
Make new values in data probe display (readout table) to match chages in location or sampling of data.- Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
applyPreferences
public void applyPreferences()Apply the preferences. Used to pick up the date format changes.- Specified by:
applyPreferencesin interfaceDisplayControl- Overrides:
applyPreferencesin classDisplayControlImpl
-
updateLegendLabel
protected void updateLegendLabel()This method is called to update the legend labels when some state has changed in this control that is reflected in the labels.- Overrides:
updateLegendLabelin classDisplayControlImpl
-
findClosestPointIdx
public int findClosestPointIdx(FlatField obs, EarthLocation elt) throws VisADException, RemoteException - Throws:
VisADExceptionRemoteException
-
getCursorReadoutInner
protected List getCursorReadoutInner(EarthLocation elt, Real animationValue, int animationStep, List<ReadoutInfo> samples) throws Exception Return the list of html for doing the cursor readout- Overrides:
getCursorReadoutInnerin classDisplayControlImpl- Parameters:
elt- The locationanimationValue- The time animationanimationStep- Which step in the animationsamples- the samples- Returns:
- List of html to display
- Throws:
Exception- On badness
-
getSaveMenuItems
Add the relevant file menu items into the list- Overrides:
getSaveMenuItemsin classDisplayControlImpl- Parameters:
items- List of menu itemsforMenuBar- Is this for the menu in the window's menu bar or for a popup menu in the legend
-
exportCsv
public void exportCsv()Export the current time as csv -
exportCsvAllTimes
public void exportCsvAllTimes()Export all times as csv -
exportToCsv
Export all times as csv- Parameters:
times- export given times as csv
-
exportToCsv
-
setDataTemplate
Set the DataTemplate property.- Parameters:
value- The new value for DataTemplate
-
getDataTemplate
Get the DataTemplate property.- Returns:
- The DataTemplate
-
setXFixed
public void setXFixed(boolean value) Set the XFixed property.- Parameters:
value- The new value for XFixed
-
getXFixed
public boolean getXFixed()Get the XFixed property.- Returns:
- The XFixed
-
setYFixed
public void setYFixed(boolean value) Set the YFixed property.- Parameters:
value- The new value for YFixed
-
getYFixed
public boolean getYFixed()Get the YFixed property.- Returns:
- The YFixed
-
setZFixed
public void setZFixed(boolean value) Set the ZFixed property.- Parameters:
value- The new value for ZFixed
-
getZFixed
public boolean getZFixed()Get the ZFixed property.- Returns:
- The ZFixed
-
setInfos
Set the Infos property.- Parameters:
value- The new value for Infos
-
getInfos
Get the Infos property.- Returns:
- The Infos
-
setAltitudes
Set the altitudes property, use for persistence- Parameters:
l- list of altitudes deprecated Keep around for legacy bundles
-
setLevels
Get the list of levels; use by persistence- Parameters:
l- list of levels for parameters deprecated Keep around for legacy bundles
-
setMethods
Get the list of sampling methods for each of the parameters. Used for persistence- Parameters:
l- list of sampling methods deprecated Keep around for legacy bundles
-
setUnits
Set the list of display units for each parameter. Used by persistence- Parameters:
l- list of units deprecated Keep around for legacy bundles
-
setSounds
Set the list of display sounds for each parameter. Used by persistence- Parameters:
l- list of sounds deprecated Keep around for legacy bundles
-
increaseProbeSize
public void increaseProbeSize()Increase the probe size -
decreaseProbeSize
public void decreaseProbeSize()Decrease the probe size -
setPointSize
public void setPointSize(float value) Set the PointSize property.- Overrides:
setPointSizein classDisplayControlImpl- Parameters:
value- The new value for PointSize
-
setMarker
Set the Marker property.- Parameters:
value- The new value for Marker
-
getMarker
Get the Marker property.- Returns:
- The Marker
-
setTimeSeries
Set the TimeSeries property.- Parameters:
value- The new value for TimeSeries
-
getTimeSeries
Get the TimeSeries property.- Returns:
- The TimeSeries
-
getChart
Get the chart- Returns:
- The chart_
-
setChartName
Set the chart Name- Parameters:
newName- the new chart name
-
setShowThumbNail
public void setShowThumbNail(boolean value) Set the ShowThumbNail property.- Parameters:
value- The new value for ShowThumbNail
-
setShowTable
public void setShowTable(boolean value) Set the ShowTable property.- Parameters:
value- The new value for ShowTable
-
getShowTable
public boolean getShowTable()Get the ShowTable property.- Returns:
- The ShowTable
-
setShowTableInLegend
public void setShowTableInLegend(boolean value) Set the ShowTableInLegend property.- Parameters:
value- The new value for ShowTable
-
getShowTableInLegend
public boolean getShowTableInLegend()Get the ShowTableInLegend property.- Returns:
- The ShowTableInLegend
-
setShowSunriseSunset
public void setShowSunriseSunset(boolean value) Set the ShowSunriseSunset property.- Parameters:
value- The new value for ShowSunriseSunset
-
getShowSunriseSunset
public boolean getShowSunriseSunset()Get the ShowSunriseSunset property.- Returns:
- The ShowSunriseSunset
-
setKeepProbeAtHeight
public void setKeepProbeAtHeight(boolean value) Set the KeepProbeAtHeight property.- Parameters:
value- The new value for KeepProbeAtHeight
-
getKeepProbeAtHeight
public boolean getKeepProbeAtHeight()Get the KeepProbeAtHeight property.- Returns:
- The KeepProbeAtHeight
-
setProbeRadius
public void setProbeRadius(double value) Set the ProbeRadius property.- Parameters:
value- The new value for ProbeRadius
-
getProbeRadius
public double getProbeRadius()Get the ProbeRadius property.- Returns:
- The ProbeRadius
-
canDoProgressiveResolution
protected boolean canDoProgressiveResolution()Description copied from class:DisplayControlImplDoes this control support progressive resolution? Subclasses should override.- Overrides:
canDoProgressiveResolutionin classDisplayControlImpl- Returns:
- _more_
-
shouldAddControlListener
protected boolean shouldAddControlListener()Description copied from class:DisplayControlImplA hook to allow derived classes to tell us to add this as a control listener- Overrides:
shouldAddControlListenerin classDisplayControlImpl- Returns:
- _more_
-
viewpointChanged
public void viewpointChanged()_more_- Overrides:
viewpointChangedin classDisplayControlImpl
-
hasMapProjection
public boolean hasMapProjection()_more_- Overrides:
hasMapProjectionin classDisplayControlImpl- Returns:
- _more_
-
doExport
Called by ISL. Write out some data defined by the what parameter to the given file. This method throws an UnimplementedException. Derived classes need to overwrite this to write out the appropriate data- Overrides:
doExportin classDisplayControlImpl- Parameters:
what- What is to be written outfilename- To what file- Throws:
Exception- problem exporting
-