Package ucar.unidata.idv.control
Class JythonControl
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.idv.control.DisplayControlBase
ucar.unidata.idv.control.DisplayControlImpl
ucar.unidata.idv.control.GridDisplayControl
ucar.unidata.idv.control.JythonControl
- All Implemented Interfaces:
ActionListener,ItemListener,PropertyChangeListener,EventListener,HyperlinkListener,Sharable,DataChangeListener,DisplayControl,Prototypable,ControlListener,DisplayListener
Allows for the creation of a display by an end user through the use of Jython
- Version:
- $Revision: 1.39 $
- Author:
- Jeff McWhirter/Don Murray
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl
DisplayControlImpl.SideLegendLabel -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprobe id for the parameterstatic final Stringcontrol id for the parameterstatic final StringID for the area probestatic final StringID for the level probestatic final String[]list of probe names - does this need to be public?static final StringSymbol for no probestatic final StringID for the point probestatic final StringID for the transect probestatic final StringID for the line probestatic final String[]list of probes - does this need to be public?protected CrossSectionSelectorthe transect probeFields 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 TypeMethodDescriptionvoidHook to allow jython to call to bring up data choice selectorvoidHook to allow jython to call to bring up data choice selectorvoidaddEditMenuItem(String name, String method) Hook to call from jython to add to menuvoidaddFileMenuItem(String name, String method) Hook to call from jython to add to menuvoidaddJythonComponent(Component comp) Add a python componentprotected voidaddNewData(List newChoices) Gets called whne user has chosen new datavoidaddSaveMenuItem(String name, String method) Hook to call from jython to add to menuvoidaddViewMenuItem(String name, String method) Hook to call from jython to add to menuMake some Plan view controls for the UI.voiddoRemove()Remove this control.voidexecJython(String method) Execute the jython methodvoidfixRange()Get current animation time or null of noneGet all animation times or null if noneprotected StringReturn the appropriate label text for the menu.Get the probe being used.Get the CategoryString property.Get the list of DataChoicesbooleanGet the DeveloperMode property.protected voidgetEditMenuItems(List items, boolean forMenuBar) add to menuprotected JComponentgetExtraLegendComponent(int legendType) Return the extra legend componentprotected voidgetFileMenuItems(List items, boolean forMenuBar) add to menuGet the JythonCode property.Get the JythonCode property.Get the DisplayCategory property.Get the MyName property.Return an array that holds the location of the current probe.Get the probe's positionGet the ProbeType property.double[][]Return the current probe position in X/Y space.protected voidgetSaveMenuItems(List items, boolean forMenuBar) Add the relevant file menu items into the listGet times from dataGet a variable.protected voidgetViewMenuItems(List items, boolean forMenuBar) add to menubooleaninit(DataChoice dataChoice) Called to make this kind of Display Control; also calls code to made the Displayable.voidinitDone()init done.voidreceiveShareData(Sharable from, Object dataId, Object[] data) Method called by other classes that share the probe.voidreplaceData(String message) Hook to allow jython to call to bring up data choice selectorvoidreplaceData(String message, String callback) Hook to allow jython to call to bring up data choice selectorprotected voidWe have new data.sample()Sample the first data at the probe positionSample all the data at the probe pointSample all the data at the probe point at the current animation timeSample the first data at the probe position and at the current animation timesampleData(EarthLocationTuple[] loc, FieldImpl field) Sample at locationsampleData(EarthLocationTuple[] loc, FieldImpl field, boolean atTime) Sample the field at the location and maybe at the animation timesampleDataAtProbe(FieldImpl field) Sample the field at the probe locationsampleIndex(int index, boolean atTime) Sample the data at the index at the probe positionvoidselectData(String message) Hook to allow jython to call to bring up data choice selectorvoidselectData(String message, String callback, boolean replace, boolean multiples, List categories) Hook to allow jython to call to bring up data choice selectorvoidsetDataCategories(String value) Set the CategoryString property.voidsetDeveloperMode(boolean value) Set the DeveloperMode property.voidsetJythonCode(String value) Set the JythonCode property.voidsetJythonCodeURL(String value) Set the JythonCode property.voidsetJythonComponent(Component comp) Hook to call from jython to define guivoidsetJythonDisplayCategory(String value) Set the DisplayCategory property.voidsetLegendComponent(Component comp) Hook to call from jython to add in the legend componentvoidSet the MyName property.voidSet the probe position property.voidsetProbeType(String value) Set the ProbeType property.voidSet a variable.protected booleanA hook to allow derived classes to tell us to add this as an animation listenerprotected voidtimeChanged(Real time) Respond to a timeChange eventvoidGenerate the control's XMLMethods inherited from class ucar.unidata.idv.control.GridDisplayControl
actionPerformed, addTopographyMap, addTopographyMap, applyForecastHourMacro, canDoProgressiveResolution, convertColorRange, doExport, doMakeContourLevelControl, doMakeDataInstance, doMakeLevelControl, doMakeLevelControl, exportDisplayedData, getColorParamName, getColorRangeFromData, getColorRangeIndex, getColorUnit, getContourInfo, getCursorReadoutData, getCursorReadoutInner, getDataProjection, getDataRangeInColorUnits, getDefaultContourInfo, getDisplayUnit, getGridDataInstance, getInitialColorTable, getInitialRange, getRawDataUnit, haveMultipleFields, initializeDefaultContourInfo, isDisplayUnitAlsoColorUnit, normalizeRectangle, setLevel, setLevel, setLevelFromUser, shouldAddControlListener, shouldAddDisplayListenerMethods inherited from class ucar.unidata.idv.control.DisplayControlImpl
activateDisplays, addAttributedDisplayable, addAttributedDisplayable, addAttributedDisplayable, addAttributeFlags, addCheckBoxSettings, addDataChoice, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayMaster, addDisplaySettings, addLabelMacros, addNoteText, addPropertiesComponents, addPropertyChangeListener, addRemovable, addSharable, addTimeModeWidget, addToControlContext, addToRangeMenu, addToRangeMenu, addToRangeMenu, addViewManager, appendDataChoices, applyAttributesToDisplayables, applyColor, applyColorScaleInfo, applyColorTable, applyColorUnit, applyContourInfo, applyDisplaySetting, applyDisplayUnit, applyLineWidth, applyPreferences, 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, doApplyProperties, doInitialUpdateLegendAndList, doMakeBottomLegendComponent, doMakeChangeColorMenu, doMakeChangeColorMenu, doMakeChangeParameterMenuItem, 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, getAnimationInfo, getAnimationWidget, getAttributeFlags, getCachedData, getCanDoRemoveAll, getCategories, getCollapseLegend, getColor, getColorDimness, getColorScaleInfo, getColorTable, getColorTableForDisplayable, getColorTableToApply, getColorTableWidget, getColorUnitName, getColorWidgetLabel, getComponentHolder, getContents, getControlChangeSleepTime, getControlContext, getControlMenus, getControlWidgets, getCursorReadout, getCursorReadoutInner, getData, getDataChoice, getDataChoices, getDataForDisplayList, getDataInstance, getDataInstance, getDataProjectionForMenu, getDataProjectionLabel, getDataSelection, getDataSources, getDataTimeRange, getDataTimeRange, getDataTimeSet, 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, getDisplayUnitName, getDisplayVisibility, getDoCursorReadout, getEditMenuItems, getExpandedInTabs, getExtraLabelTemplate, getExtraMenus, getFileMenuItems, getGraphicsConfiguration, getGrid, getGrid, getHadDataChoices, getHaveInitialized, getHelpIds, getHelpMenuItems, getId, getIdv, getImage, getImage, getInitDataChoices, getInitialFastRendering, getInitialZPosition, getInternalAnimation, getInternalAnimation, getIsProgressiveResolution, getIsRaster, getIsTimeDriver, getLabel, getLastFileMenuItems, getLatLonPoints, getLegendButtons, getLegendComponent, getLegendLabel, getLegendLabels, getLegendLabelTemplate, getLegendToolTip, getLineWidth, getLineWidthWidget, getLineWidthWidgetLabel, getLockVisibilityToggle, getLongParamName, getMacroNames, getMainPanel, getMainPanelSize, getMakeWindow, getMapDisplay, getMapViewManager, getMapViewProjection, getMatchDisplayRegion, getMenuLabel, getMyDataChoices, getNavigatedDisplay, getNoteText, getObjectStore, getOkToFireEvents, getOldColorTableOrInitialColorTable, getOriginalDataChoicesLabel, getOuterContents, getPointSize, getProperty, getProperty, getPropertyDisplayName, getRange, getRangeForColorTable, getRangeToApply, 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, hasMapProjection, hasTimeMacro, haveDataTimes, haveParameterDefaults, hide, hyperlinkUpdate, inGlobeDisplay, init, init, init, initAfterUnPersistence, 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, projectionChanged, propertyChange, putTransientProperty, reallySetAttributeFlags, redoGuiLayout, reloadDataSource, reloadDataSourceInThread, relocateDisplay, 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, 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, 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, updateLegendLabel, updateLockButton, useSmoothingFactor, useZPosition, viewManagerChanged, viewManagerDestroyed, viewpointChanged, 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
-
PARAMNAME_THIS
control id for the parameter- See Also:
-
PARAMNAME_PROBE
probe id for the parameter- See Also:
-
PROBE_NONE
Symbol for no probe- See Also:
-
PROBE_POINT
ID for the point probe- See Also:
-
PROBE_LEVEL
ID for the level probe- See Also:
-
PROBE_AREA
ID for the area probe- See Also:
-
PROBE_VERTICAL
ID for the line probe- See Also:
-
PROBE_TRANSECT
ID for the transect probe- See Also:
-
PROBES
list of probes - does this need to be public? -
PROBE_NAMES
list of probe names - does this need to be public? -
transectProbe
the transect probe
-
-
Constructor Details
-
JythonControl
public JythonControl()Ctor
-
-
Method Details
-
init
Called to make this kind of Display Control; also calls code to made the Displayable. This method is called from inside DisplayControlImpl init(several args).- Overrides:
initin classDisplayControlImpl- Parameters:
dataChoice- the DataChoice of the moment.- Returns:
- true if successful
- Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
initDone
public void initDone()init done. call some jython- Overrides:
initDonein classDisplayControlImpl
-
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
-
timeChanged
Respond to a timeChange event- Overrides:
timeChangedin classDisplayControlImpl- Parameters:
time- new time
-
getVar
Get a variable.- Parameters:
varName- variable name- Returns:
- variable corresponding to the name
-
setVar
Set a variable.- Parameters:
varName- variable namevalue- variable value
-
fixRange
public void fixRange() -
writeToPlugin
public void writeToPlugin()Generate the control's XML -
resetData
We have new data. Reload- Overrides:
resetDatain classDisplayControlImpl- Throws:
RemoteException- On badnessVisADException- On badness
-
getDataList
Get the list of DataChoices- Returns:
- list of DataChoices
- Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
execJython
Execute the jython method- Parameters:
method- jython method to call
-
sample
Sample the first data at the probe position- Returns:
- sampled data
- Throws:
RemoteException- On badnessVisADException- On badness
-
sampleAtTime
Sample the first data at the probe position and at the current animation time- Returns:
- sampled data
- Throws:
RemoteException- On badnessVisADException- On badness
-
sampleIndex
Sample the data at the index at the probe position- Parameters:
index- Index in the data listatTime- If true then also sample at the current animation time- Returns:
- sampled data
- Throws:
RemoteException- On badnessVisADException- On badness
-
sampleAll
Sample all the data at the probe point- Returns:
- Sampled data
- Throws:
RemoteException- On badnessVisADException- On badness
-
sampleAllAtTime
Sample all the data at the probe point at the current animation time- Returns:
- sampled data
- Throws:
RemoteException- On badnessVisADException- On badness
-
sampleDataAtProbe
Sample the field at the probe location- Parameters:
field- field to sample- Returns:
- sampled data
- Throws:
RemoteException- On badnessVisADException- On badness
-
sampleData
public Data sampleData(EarthLocationTuple[] loc, FieldImpl field) throws RemoteException, VisADException Sample at location- Parameters:
loc- locationfield- field to sample- Returns:
- sampled data
- Throws:
RemoteException- On badnessVisADException- On badness
-
getAnimationTime
Get current animation time or null of none- Returns:
- animation time
- Throws:
RemoteException- On badnessVisADException- On badness
-
getAnimationTimes
Get all animation times or null if none- Returns:
- animation time
- Throws:
RemoteException- On badnessVisADException- On badness
-
getTimesFromData
Get times from data- Returns:
- animation time
- Throws:
RemoteException- On badnessVisADException- On badness
-
sampleData
public Data sampleData(EarthLocationTuple[] loc, FieldImpl field, boolean atTime) throws RemoteException, VisADException Sample the field at the location and maybe at the animation time- Parameters:
loc- locationfield- fieldatTime- if true then also sample at anim time- Returns:
- sampled data
- Throws:
RemoteException- On badnessVisADException- On badness
-
getChangeParameterLabel
Return the appropriate label text for the menu.- Overrides:
getChangeParameterLabelin classDisplayControlImpl- Returns:
- the label text
-
addNewData
Gets called whne user has chosen new data- Overrides:
addNewDatain classDisplayControlImpl- Parameters:
newChoices- new data choices- Throws:
RemoteException- On badnessVisADException- On badness
-
selectData
Hook to allow jython to call to bring up data choice selector- Parameters:
message- message to use in dialog
-
addData
Hook to allow jython to call to bring up data choice selector- Parameters:
message- message to use in dialog
-
addData
Hook to allow jython to call to bring up data choice selector- Parameters:
message- message to use in dialogcallback- The jython procedure to callback
-
replaceData
Hook to allow jython to call to bring up data choice selector- Parameters:
message- message to use in dialog
-
replaceData
Hook to allow jython to call to bring up data choice selector- Parameters:
message- message to use in dialogcallback- The jython procedure to callback
-
selectData
public void selectData(String message, String callback, boolean replace, boolean multiples, List categories) Hook to allow jython to call to bring up data choice selector- Parameters:
message- message to use in dialogcallback- The jython procedure to callbackreplace- If true then we remove the current list of data choices and replace it with the selected ones.multiples- Select multiplescategories- Possibly null list of data categories to use
-
doRemove
Remove this control.- Specified by:
doRemovein interfaceDisplayControl- Overrides:
doRemovein classDisplayControlImpl- Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
getCurrentProbe
Get the probe being used.- Returns:
- current probe.
-
getProbePosition
Get the probe's position- Returns:
- position of the probe
- Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
setProbePosition
Set the probe position property.- Parameters:
p- position for probe.
-
getProbeXYZ
Return the current probe position in X/Y space.- Returns:
- a 2-D array of the form data[N][0] = X, data[N][1] = Y, data[N][2] = Z
- Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
getProbeLocation
Return an array that holds the location of the current probe. For point, level and vertical probes the length is 1 For the horizonal probe the length 2 (the end points of the probe line) For the area probe the length is 4 (upper-left, upper-right, lower-right, lower-left)- Returns:
- An array holding the probe location
- Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
doMakeContents
Make some Plan view controls for the UI.- Overrides:
doMakeContentsin classDisplayControlImpl- Returns:
- create the contents for the UI.
-
getExtraLegendComponent
Return the extra legend component- Overrides:
getExtraLegendComponentin classDisplayControlImpl- Parameters:
legendType- side or bottom- Returns:
- component to put in legend
-
addJythonComponent
Add a python component- Parameters:
comp- component to add
-
setLegendComponent
Hook to call from jython to add in the legend component- Parameters:
comp- legend component
-
setJythonComponent
Hook to call from jython to define gui- Parameters:
comp- gui
-
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
-
getFileMenuItems
add to menu- Overrides:
getFileMenuItemsin classDisplayControlImpl- Parameters:
items- list of menu items to add toforMenuBar- for menu bar
-
getEditMenuItems
add to menu- Overrides:
getEditMenuItemsin classDisplayControlImpl- Parameters:
items- list of menu items to add toforMenuBar- for menu bar
-
getViewMenuItems
add to menu- Overrides:
getViewMenuItemsin classDisplayControlImpl- Parameters:
items- list of menu items to add toforMenuBar- for menu bar
-
addFileMenuItem
Hook to call from jython to add to menu- Parameters:
name- menu item namemethod- jython method name to call
-
addSaveMenuItem
Hook to call from jython to add to menu- Parameters:
name- menu item namemethod- jython method name to call
-
addViewMenuItem
Hook to call from jython to add to menu- Parameters:
name- menu item namemethod- jython method name to call
-
addEditMenuItem
Hook to call from jython to add to menu- Parameters:
name- menu item namemethod- jython method name to call
-
setProbeType
Set the ProbeType property.- Parameters:
value- The new value for ProbeType
-
getProbeType
Get the ProbeType property.- Returns:
- The ProbeType
-
setDeveloperMode
public void setDeveloperMode(boolean value) Set the DeveloperMode property.- Parameters:
value- The new value for DeveloperMode
-
getDeveloperMode
public boolean getDeveloperMode()Get the DeveloperMode property.- Returns:
- The DeveloperMode
-
setMyName
Set the MyName property.- Parameters:
value- The new value for MyName
-
getMyName
Get the MyName property.- Returns:
- The MyName
-
setDataCategories
Set the CategoryString property.- Parameters:
value- The new value for CategoryString
-
getDataCategories
Get the CategoryString property.- Returns:
- The CategoryString
-
setJythonDisplayCategory
Set the DisplayCategory property.- Parameters:
value- The new value for DisplayCategory
-
getJythonDisplayCategory
Get the DisplayCategory property.- Returns:
- The DisplayCategory
-
setJythonCode
Set the JythonCode property.- Parameters:
value- The new value for JythonCode
-
getJythonCode
Get the JythonCode property.- Returns:
- The JythonCode
-
setJythonCodeURL
Set the JythonCode property.- Parameters:
value- The new value for JythonCode
-
getJythonCodeURL
Get the JythonCode property.- Returns:
- The JythonCode
-