public class ProbeControl extends DisplayControlImpl implements DisplayableData.DragAdapter
Modifier and Type | Class and Description |
---|---|
class |
ProbeControl.LevelEditor
Class LevelEditor, used for selecting levels in table column
|
class |
ProbeControl.SamplingEditor
If user clicks on the "sampling" column, a popup menu appears
with choices for the grid value sampling method.
|
DisplayControlImpl.SideLegendLabel
Modifier and Type | Field and Description |
---|---|
static int |
COL_EXTRA
Column value property
|
static int |
COL_LEVEL
Column level property
|
static int |
COL_NAME
Column name property
|
static int |
COL_SAMPLING
Column sampling property
|
static int |
COL_VALUE
Column value property
|
static int |
NUM_COLS
number of columns
|
static java.lang.String |
SHARE_CHOICES
ID for sharing choices
|
static java.lang.String |
SHARE_LEVELS
ID for sharing levels
|
static java.lang.String |
SHARE_METHODS
ID for sharing sampling methods
|
static java.lang.String |
SHARE_POSITION
ID for sharing position
|
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, ZFUDGE
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_AVERAGE
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 and Description |
---|
ProbeControl()
Cstr; sets flags; see init() for creation actions.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addDisplaySettings(DisplaySettingsDialog dsd)
Add display settings for this control
|
protected void |
addLabelMacros(java.lang.String template,
java.util.List patterns,
java.util.List values)
Add any macro name/value pairs.
|
protected void |
addNewData(java.util.List newChoices)
Override base class method which is called when the user has selected
new data choices.
|
protected void |
addPropertiesComponents(javax.swing.JTabbedPane jtp)
Add properties components
|
void |
applyPreferences()
Apply the preferences.
|
protected boolean |
canDoProgressiveResolution()
Does this control support progressive resolution? Subclasses should
override.
|
void |
changePointParameter(java.lang.Object[] param)
Change the parameter to use
|
boolean |
constrainDragPoint(float[] position)
Constrain the drag point
|
void |
decreaseProbeSize()
Decrease the probe size
|
boolean |
doApplyProperties()
Apply the properties
|
java.awt.Container |
doMakeContents()
Make the UI for this display control.
|
void |
doRemove()
Remove this display.
|
void |
exportCsv()
Export the current time as csv
|
void |
exportCsvAllTimes()
Export all times as csv
|
void |
exportToCsv(visad.Real[] times)
Export all times as csv
|
protected java.lang.String |
getChangeParameterLabel()
Return the appropriate label text for the menu.
|
TimeSeriesChart |
getChart()
Get the chart
|
java.lang.String |
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,
|
protected java.util.List |
getCursorReadoutInner(visad.georef.EarthLocation elt,
visad.Real animationValue,
int animationStep,
java.util.List<ReadoutInfo> samples)
Return the list of html for doing the cursor readout
|
DataChoice |
getDataChoiceAtRow(int row)
Get the DataChoice associated with the parameter at a particular
row.
|
java.lang.String |
getDataTemplate()
Get the DataTemplate property.
|
protected visad.Set |
getDataTimeSet()
Collect the time animation set from the displayables.
|
protected void |
getEditMenuItems(java.util.List items,
boolean forMenuBar)
Get edit menu items
|
protected javax.swing.JComponent |
getExtraLegendComponent(int legendType)
Assume that any display controls that have a color table widget
will want the color table to show up in the legend.
|
java.awt.Image |
getImage(java.lang.String what)
get the image for what
|
java.util.List<ProbeRowInfo> |
getInfos()
Get the Infos property.
|
boolean |
getKeepProbeAtHeight()
Get the KeepProbeAtHeight property.
|
void |
getLegendLabels(java.util.List labels,
int legendType)
Append any label information to the list of labels.
|
visad.Real[] |
getLevelsAtRow(int row)
Get the list of levels for a particular parameter (row)
|
protected java.lang.String |
getLongParamName()
Override base class method to use the list of data choices to
get the long parameter name
|
protected void |
getMacroNames(java.util.List names,
java.util.List labels)
Add any macro name/label pairs
|
java.lang.String |
getMarker()
Get the Marker property.
|
visad.RealTuple |
getPosition()
Set the probe position property; used by XML persistence.
|
double |
getProbeRadius()
Get the ProbeRadius property.
|
protected void |
getSaveMenuItems(java.util.List items,
boolean forMenuBar)
Add the relevant file menu items into the list
|
boolean |
getShowSunriseSunset()
Get the ShowSunriseSunset property.
|
boolean |
getShowTable()
Get the ShowTable property.
|
boolean |
getShowTableInLegend()
Get the ShowTableInLegend property.
|
TimeSeriesChart |
getTimeSeries()
Get the TimeSeries property.
|
protected void |
getViewMenuItems(java.util.List items,
boolean forMenuBar)
Make the view menu items
|
boolean |
getXFixed()
Get the XFixed property.
|
boolean |
getYFixed()
Get the YFixed property.
|
boolean |
getZFixed()
Get the ZFixed property.
|
boolean |
handleAddPoint(float[] x)
Handle adding a point
|
boolean |
handleDragDirect(visad.VisADRay ray,
boolean first,
int mouseModifiers)
Handle the drag
|
boolean |
hasMapProjection()
_more_
|
boolean |
haveLevelsAtRow(int row)
see if there are levels assigned to this row (parameter);
some data is 2d and has no levels.
|
void |
increaseProbeSize()
Increase the probe size
|
boolean |
init(java.util.List choices)
Set up new probe.
|
void |
initDone()
Called after init.
|
protected void |
popupDataDialog(java.lang.String dialogMessage,
java.awt.Component from,
boolean multiples,
java.util.List categories)
Popup the data dialog; override superclass to allow multiple
selections.
|
protected void |
processNewData(java.util.List newChoices)
Override base class method which is called when the user has selected
new data choices.
|
void |
projectionChanged()
Respond to a change in the display's projection.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Property change method.
|
void |
receiveShareData(Sharable from,
java.lang.Object dataId,
java.lang.Object[] data)
Method called by other classes that share the state
|
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
|
protected void |
resetData()
Override base class method to just trigger a redisplay of the data.
|
protected void |
resetData(boolean clearCache)
Reset the data.
|
void |
resetProbePosition()
Reset the position of the probe to the center.
|
void |
resetProbePosition(double lat,
double lon,
double alt)
Reset the position of the probe to the center.
|
void |
setAltitudes(java.util.List l)
Deprecated.
Keep around for legacy bundles
|
void |
setChartName(java.lang.String newName)
Set the chart Name
|
void |
setDataTemplate(java.lang.String value)
Set the DataTemplate property.
|
void |
setEarthLocation(visad.georef.EarthLocation el)
Set the earth location
|
void |
setInfos(java.util.List<ProbeRowInfo> value)
Set the Infos property.
|
void |
setKeepProbeAtHeight(boolean value)
Set the KeepProbeAtHeight property.
|
void |
setLevels(java.util.List l)
Deprecated.
Keep around for legacy bundles
|
void |
setMarker(java.lang.String value)
Set the Marker property.
|
void |
setMethods(java.util.List l)
Deprecated.
Keep around for legacy bundles
|
void |
setPointSize(float value)
Set the PointSize property.
|
void |
setPosition(visad.RealTuple p)
Set the probe position property; used by XML persistence.
|
void |
setProbeRadius(double value)
Set the ProbeRadius property.
|
void |
setShowSunriseSunset(boolean value)
Set the ShowSunriseSunset property.
|
void |
setShowTable(boolean value)
Set the ShowTable property.
|
void |
setShowTableInLegend(boolean value)
Set the ShowTableInLegend property.
|
void |
setShowThumbNail(boolean value)
Set the ShowThumbNail property.
|
void |
setSounds(java.util.List l)
Deprecated.
Keep around for legacy bundles
|
void |
setTimeSeries(TimeSeriesChart value)
Set the TimeSeries property.
|
void |
setUnits(java.util.List l)
Deprecated.
Keep around for legacy bundles
|
void |
setXFixed(boolean value)
Set the XFixed property.
|
void |
setYFixed(boolean value)
Set the YFixed property.
|
void |
setZFixed(boolean value)
Set the ZFixed property.
|
protected boolean |
shouldAddAnimationListener()
A hook to allow derived classes to tell us to add this
as an animation listener
|
protected boolean |
shouldAddControlListener()
A hook to allow derived classes to tell us to add this
as a control listener
|
void |
showLineProperties(ProbeRowInfo rowInfo)
Show the properties dialog for the chart line
|
void |
showSoundDialog(ProbeRowInfo info)
Show the sound dialog for the row
|
protected void |
timeChanged(visad.Real time)
Respond to a timeChange event
|
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.
|
void |
updatePosition()
Make new values in data probe display (readout table)
to match chages in location or sampling of data.
|
void |
viewpointChanged()
_more_
|
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, doExport, doInitialUpdateLegendAndList, doMakeBottomLegendComponent, doMakeChangeColorMenu, doMakeChangeColorMenu, doMakeChangeParameterMenuItem, doMakeColorControl, doMakeColorControl, doMakeColorScales, doMakeDataInstance, doMakeMenuBar, doMakeMenuBarMenus, doMakePointSizeWidget, doMakeRemoveControl, doMakeSideLegendComponent, doMakeSkipFactorSlider, 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, zSliderChanged
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getLabeledReal, getLevelReal, getScreenCenter, getSelectedStation, getTmpProperty, isLeftButtonDown, logException, logException, makeEarthLocation, putTmpProperty, removeTmpProperty, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessage
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTmpProperty, putTmpProperty, removeTmpProperty
getReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTime
public static final java.lang.String SHARE_POSITION
public static final java.lang.String SHARE_CHOICES
public static final java.lang.String SHARE_METHODS
public static final java.lang.String SHARE_LEVELS
public static final int COL_NAME
public static final int COL_VALUE
public static final int COL_EXTRA
public static final int COL_LEVEL
public static final int COL_SAMPLING
public static final int NUM_COLS
public ProbeControl()
public boolean init(java.util.List choices) throws visad.VisADException, java.rmi.RemoteException
init
in class DisplayControlImpl
choices
- a list of DataChoicesjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorpublic void initDone()
initDone
in class DisplayControlImpl
protected void addPropertiesComponents(javax.swing.JTabbedPane jtp)
addPropertiesComponents
in class DisplayControlImpl
jtp
- the JTabbedPanepublic boolean doApplyProperties()
doApplyProperties
in class DisplayControlImpl
public java.lang.String getColorWidgetLabel()
getColorWidgetLabel
in class DisplayControlImpl
protected void getViewMenuItems(java.util.List items, boolean forMenuBar)
getViewMenuItems
in class DisplayControlImpl
items
- List of menu itemsforMenuBar
- forMenuBarprotected boolean shouldAddAnimationListener()
shouldAddAnimationListener
in class DisplayControlImpl
public void setEarthLocation(visad.georef.EarthLocation el)
el
- the earth locationpublic void relocateDisplay(ucar.unidata.geoloc.LatLonRect originalBounds, ucar.unidata.geoloc.LatLonRect newBounds, boolean useDataProjection)
relocateDisplay
in class DisplayControlImpl
originalBounds
- The original bounds of the datasourcenewBounds
- The relocated bounds of the datasourceprotected void addDisplaySettings(DisplaySettingsDialog dsd)
addDisplaySettings
in class DisplayControlImpl
dsd
- dialog to add topublic void resetProbePosition()
public void resetProbePosition(double lat, double lon, double alt)
lat
- latlon
- lonalt
- altprotected void getEditMenuItems(java.util.List items, boolean forMenuBar)
getEditMenuItems
in class DisplayControlImpl
items
- list of menu itemsforMenuBar
- true if for the menu barpublic void receiveShareData(Sharable from, java.lang.Object dataId, java.lang.Object[] data)
receiveShareData
in interface Sharable
receiveShareData
in class DisplayControlImpl
from
- other class.dataId
- type of sharingdata
- Array of data being shared. In this case, the first
(and only?) object in the array is the levelprotected java.lang.String getLongParamName()
getLongParamName
in class DisplayControlImpl
public void projectionChanged()
projectionChanged
in interface DisplayControl
projectionChanged
in class DisplayControlImpl
protected void getMacroNames(java.util.List names, java.util.List labels)
getMacroNames
in class DisplayControlImpl
names
- List of macro nameslabels
- List of macro labelsprotected void addLabelMacros(java.lang.String template, java.util.List patterns, java.util.List values)
addLabelMacros
in class DisplayControlImpl
template
- templatepatterns
- The macro namesvalues
- The macro valuesprotected visad.Set getDataTimeSet() throws java.rmi.RemoteException, visad.VisADException
getDataTimeSet
in class DisplayControlImpl
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void resetData() throws visad.VisADException, java.rmi.RemoteException
resetData
in class DisplayControlImpl
java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorprotected void resetData(boolean clearCache) throws visad.VisADException, java.rmi.RemoteException
clearCache
- If true then clear the cached data in the rowsjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorprotected void addNewData(java.util.List newChoices) throws visad.VisADException, java.rmi.RemoteException
addNewData
in class DisplayControlImpl
newChoices
- new list of choicesjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorprotected void processNewData(java.util.List newChoices) throws visad.VisADException, java.rmi.RemoteException
newChoices
- new list of choicesjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorprotected javax.swing.JComponent getExtraLegendComponent(int legendType)
getExtraLegendComponent
in class DisplayControlImpl
legendType
- type of legendpublic void getLegendLabels(java.util.List labels, int legendType)
getLegendLabels
in class DisplayControlImpl
labels
- in/out list of labelslegendType
- The type of legend, BOTTOM_LEGEND or SIDE_LEGENDpublic void setPosition(visad.RealTuple p)
p
- probe positionpublic visad.RealTuple getPosition() throws visad.VisADException, java.rmi.RemoteException
null
.java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorpublic void doRemove() throws java.rmi.RemoteException, visad.VisADException
doRemove
in interface DisplayControl
doRemove
in class DisplayControlImpl
java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorprotected void timeChanged(visad.Real time)
timeChanged
in class DisplayControlImpl
time
- new timepublic java.awt.Image getImage(java.lang.String what) throws java.lang.Exception
getImage
in class DisplayControlImpl
what
- the thing to getjava.lang.Exception
- problem (can this be more specific?)public boolean handleDragDirect(visad.VisADRay ray, boolean first, int mouseModifiers)
handleDragDirect
in interface DisplayableData.DragAdapter
ray
- the VisADRayfirst
- whether this is the first time or notmouseModifiers
- the mouse modifierspublic boolean handleAddPoint(float[] x)
handleAddPoint
in interface DisplayableData.DragAdapter
x
- the point Coordinatespublic boolean constrainDragPoint(float[] position)
constrainDragPoint
in interface DisplayableData.DragAdapter
position
- the positionpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class DisplayControlImpl
evt
- event to act onpublic visad.Real[] getLevelsAtRow(int row)
row
- row for parameterpublic boolean haveLevelsAtRow(int row)
row
- row to checkpublic void changePointParameter(java.lang.Object[] param)
param
- The parameterpublic java.awt.Container doMakeContents()
doMakeContents
in class DisplayControlImpl
protected void popupDataDialog(java.lang.String dialogMessage, java.awt.Component from, boolean multiples, java.util.List categories)
popupDataDialog
in class DisplayControlImpl
dialogMessage
- the dialog messagefrom
- component to latch on tomultiples
- true to support multiple selectionscategories
- data categories of params to showpublic void showLineProperties(ProbeRowInfo rowInfo)
rowInfo
- The chrt entry to show properties forpublic void showSoundDialog(ProbeRowInfo info)
info
- the rowpublic DataChoice getDataChoiceAtRow(int row)
row
- row indexprotected java.lang.String getChangeParameterLabel()
getChangeParameterLabel
in class DisplayControlImpl
public void updatePosition() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorpublic void applyPreferences()
applyPreferences
in interface DisplayControl
applyPreferences
in class DisplayControlImpl
protected void updateLegendLabel()
updateLegendLabel
in class DisplayControlImpl
protected java.util.List getCursorReadoutInner(visad.georef.EarthLocation elt, visad.Real animationValue, int animationStep, java.util.List<ReadoutInfo> samples) throws java.lang.Exception
getCursorReadoutInner
in class DisplayControlImpl
elt
- The locationanimationValue
- The time animationanimationStep
- Which step in the animationsamples
- the samplesjava.lang.Exception
- On badnessprotected void getSaveMenuItems(java.util.List items, boolean forMenuBar)
getSaveMenuItems
in class DisplayControlImpl
items
- List of menu itemsforMenuBar
- Is this for the menu in the window's menu bar or
for a popup menu in the legendpublic void exportCsv()
public void exportCsvAllTimes()
public void exportToCsv(visad.Real[] times)
times
- export given times as csvpublic void setDataTemplate(java.lang.String value)
value
- The new value for DataTemplatepublic java.lang.String getDataTemplate()
public void setXFixed(boolean value)
value
- The new value for XFixedpublic boolean getXFixed()
public void setYFixed(boolean value)
value
- The new value for YFixedpublic boolean getYFixed()
public void setZFixed(boolean value)
value
- The new value for ZFixedpublic boolean getZFixed()
public void setInfos(java.util.List<ProbeRowInfo> value)
value
- The new value for Infospublic java.util.List<ProbeRowInfo> getInfos()
public void setAltitudes(java.util.List l)
l
- list of altitudespublic void setLevels(java.util.List l)
l
- list of levels for parameterspublic void setMethods(java.util.List l)
l
- list of sampling methodspublic void setUnits(java.util.List l)
l
- list of unitspublic void setSounds(java.util.List l)
l
- list of soundspublic void increaseProbeSize()
public void decreaseProbeSize()
public void setPointSize(float value)
setPointSize
in class DisplayControlImpl
value
- The new value for PointSizepublic void setMarker(java.lang.String value)
value
- The new value for Markerpublic java.lang.String getMarker()
public void setTimeSeries(TimeSeriesChart value)
value
- The new value for TimeSeriespublic TimeSeriesChart getTimeSeries()
public TimeSeriesChart getChart()
public void setChartName(java.lang.String newName)
newName
- the new chart namepublic void setShowThumbNail(boolean value)
value
- The new value for ShowThumbNailpublic void setShowTable(boolean value)
value
- The new value for ShowTablepublic boolean getShowTable()
public void setShowTableInLegend(boolean value)
value
- The new value for ShowTablepublic boolean getShowTableInLegend()
public void setShowSunriseSunset(boolean value)
value
- The new value for ShowSunriseSunsetpublic boolean getShowSunriseSunset()
public void setKeepProbeAtHeight(boolean value)
value
- The new value for KeepProbeAtHeightpublic boolean getKeepProbeAtHeight()
public void setProbeRadius(double value)
value
- The new value for ProbeRadiuspublic double getProbeRadius()
protected boolean canDoProgressiveResolution()
DisplayControlImpl
canDoProgressiveResolution
in class DisplayControlImpl
protected boolean shouldAddControlListener()
DisplayControlImpl
shouldAddControlListener
in class DisplayControlImpl
public void viewpointChanged()
viewpointChanged
in class DisplayControlImpl
public boolean hasMapProjection()
hasMapProjection
in class DisplayControlImpl