public class StationModelControl extends ObsDisplayControl
ObsDisplayControl.RealWrapper
DisplayControlImpl.SideLegendLabel
Modifier and Type | Field and Description |
---|---|
protected visad.FieldImpl |
currentStationData
The currently displayed data
|
protected java.util.List |
densityComps
List of components to disable when not delcuttering
|
protected java.util.List |
filters
filters for showing data
|
protected visad.FieldImpl |
lastDeclutteredData
Keep around the last set of decluttered data
|
protected LayoutModelWidget |
layoutModelWidget
The widget to show the layout model in the gui
|
protected static javax.swing.ImageIcon |
lockIcon
The icon used to show locked legend components
|
protected boolean |
stationsLocked
Do we not declutter and just use the last set of decluttered stations
|
protected java.util.List |
timeDeclutterComps
List of components to disable when not delcuttering
|
protected static javax.swing.ImageIcon |
unlockIcon
The icon used to show unlocked legend components
|
protected javax.swing.JPanel |
zPositionPanel
holds the z position slider
|
colNames, colString, FIELD_ALL, format, LABEL_ALT, LABEL_LAT, LABEL_LON, LABEL_TIME
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
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_CHOICES, SHARE_COLOR, SHARE_COLORSCALE, SHARE_COLORTABLE, SHARE_DISPLAYUNIT, SHARE_POSITION, 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 |
---|
StationModelControl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChartParam(java.lang.String paramName)
Add a chart parametere
|
protected javax.swing.JComponent |
addDensityComp(javax.swing.JComponent comp)
Add the given component into the list of density components that are to
be enabled/disabled when the declutter checkbox is toggled.
|
protected void |
addDisplaySettings(DisplaySettingsDialog dsd)
Add properties to the display settings dialog
|
protected javax.swing.JComponent |
addTimeDeclutterComp(javax.swing.JComponent comp)
Add the given component into the list of time declutter components
that are to be enabled/disabled when the declutter checkbox is toggled.
|
void |
applyFilters()
Apply the vis filters
|
void |
applyTimeRange()
Handle some sort of time change.
|
protected visad.LinearLatLonSet |
calculateLatLonBounds(java.awt.geom.Rectangle2D screenBounds)
Calculate the LatLonBounds based on the VisAD screen bound.
|
protected boolean |
canDoProgressiveResolution()
Does this control support progressive resolution? Subclasses should
override.
|
void |
chartChanged()
Handle a chart changed event
|
protected StationModelDisplayable |
createStationModelDisplayable()
Create the
StationModelDisplayable used by this
DisplayControl . |
void |
dataChanged()
somehow the dateselection is not updated, in GLM drived by time driver
|
protected float |
decodeFilterString(java.lang.String filter)
Decode the selected filter string and return the corresponding
filter.
|
protected void |
doInitialUpdateLegendAndList()
Do the initial update legend and list
|
protected java.awt.Container |
doMakeContents()
Make Gui contents
|
protected javax.swing.JComponent |
doMakeFilterGui(boolean includeAll)
Make the filter GUI
|
protected javax.swing.JComponent |
doMakeSideLegendComponent()
Make the side legend component
|
protected javax.swing.JPanel |
doMakeVerticalPositionPanel()
Make the gui panel for vertical position
|
void |
doRemove()
Remove this DisplayControl from the system.
|
void |
editStationTable()
Popup the station model editor
|
void |
exportAsCsv()
Export the table as csv
|
void |
exportAsKmz()
Export the data as KMZ
|
protected void |
fieldSelectorChanged()
Handle when the value in the column field has changed.
|
protected visad.FieldImpl |
filterData(visad.FieldImpl obs)
Apply the filters to the given data
|
protected PointOb |
findClosestOb(visad.georef.EarthLocation el,
visad.FieldImpl theField)
Find the closest ob in the field to the particular EarthLocation
|
void |
firstFrameDone()
Have we been unpersisted into a view manager that has not
been displayed yet?
|
boolean |
getAskedUserToDeclutterTime()
Get the AskedUserToDeclutterTime property.
|
protected java.awt.geom.Rectangle2D |
getBounds()
Get the bounds for the visible portion of the screen.
|
TimeSeriesChart |
getChart()
Get the chart
|
java.util.List |
getChartParams()
Get the ChartParams property.
|
ColorTable |
getColorTable()
Get the
ColorTable property. |
protected ColorTable |
getColorTableToApply()
Get the color table to use when applying to displayables
|
java.lang.String |
getColorWidgetLabel()
Return the label that is to be used for the color widget
|
void |
getControlWidgets(java.util.List controlWidgets)
Get any control widgets special to this control and add them to
the list.
|
visad.georef.MapProjection |
getDataProjection()
Get the MapProjection for this data; if have a single point data object
make synthetic map projection for location
|
protected java.lang.String |
getDataProjectionLabel()
What label should be used for the data projection
|
boolean |
getDeclutter()
Get whether this DisplayControl should be decluttered or not.
|
float |
getDeclutterFilter()
Get whether this DisplayControl should be decluttered or not.
|
protected javax.swing.JPanel |
getDensityControl()
Create the 'Low' slider 'High' jpanel for the density slider.
|
float |
getDisplayableScale()
Get the scale the user can enter
|
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.
|
protected java.util.List |
getFilterNames()
Return the list of names that shows up in the filter gui names combob box.
|
java.util.List |
getFilters()
Get the Filters property.
|
boolean |
getFiltersEnabled()
Get the FiltersEnabled property.
|
java.awt.Image |
getImage(java.lang.String what)
Get the image of "what".
|
protected ColorTable |
getInitialColorTable()
Overwrite base class method so we don't have any color table.
|
javax.swing.JButton |
getLockButton()
Create and return the lcok button
|
boolean |
getMatchAll()
Get the MatchAll property.
|
boolean |
getOnlyShowFiltered()
Get the OnlyShowFiltered property.
|
Range |
getRangeForColorTable()
Get the range for the color table.
|
Range |
getRangeToApply()
Overwrite base class method to return the color range to use when applying to displayables.
|
protected void |
getSaveMenuItems(java.util.List items,
boolean forMenuBar)
Add the relevant file menu items into the list
|
protected float |
getScale()
Get the scaling used for this object to control the size of
the shapes.
|
protected float |
getScaleFromDisplayable()
A utility to get the scale from the dislayable
|
java.lang.String |
getSelectedObId()
Get the SelectedObId property.
|
visad.georef.LatLonPoint |
getSelectedObLocation()
Get the SelectedObLocation property.
|
boolean |
getShouldUseAltitude()
Get the ShouldUseAltitude property.
|
StationModel |
getStationModel()
Get the current station model view.
|
java.lang.String |
getStationModelName()
Gets the name of the
StationModel . |
boolean |
getStationsLocked()
Get the locking of the stations parameter
|
StationModel |
getTheStationModel()
Get the StationModel property.
|
TimeSeriesChart |
getTimeSeries()
Get the TimeSeries property.
|
protected visad.TupleType |
getTupleType()
Provide to the base class the type of the obs
|
boolean |
getUseDataTimes()
Get the use data times property.
|
boolean |
getUseLastTime()
Get the UseLastTime property.
|
protected void |
getViewMenuItems(java.util.List items,
boolean forMenuBar)
Add a few things to the View Menu specific to this control
|
protected void |
handleChangedStationModel(StationModel changedModel)
The station model changed
|
void |
handleDisplayChanged(visad.DisplayEvent evt)
Listen for DisplayEvents
|
protected void |
handleMousePressed(visad.georef.EarthLocation el,
visad.DisplayEvent evt)
Handle the mouse pressed event in the main display
|
void |
handleOnlyShow(int index)
call back from radio buttons in gui for filters
|
protected boolean |
haveFilters()
Do we have any filters
|
boolean |
init(DataChoice dataChoice)
Call to help make this kind of Display Control; also calls code to
made the Displayable (empty of data thus far).
|
void |
initAfterUnPersistence(ControlContext vc,
java.util.Hashtable properties)
Initailize after we have been unpersisted.
|
protected void |
initDisplayable(StationModelDisplayable myDisplay)
Initialize the displayable with another
|
void |
initDone()
Init is done
|
void |
initFilters()
Init the vis filters
|
protected boolean |
isChartEnabled()
Is the chart enabled?
|
boolean |
isInitDone()
Are we fully initialized
|
protected void |
loadData()
Load data into the
Displayable . |
protected void |
loadDataInAWhile()
This checks to see if we have a pending loadData call
(from a prior event).
|
protected void |
loadDataInThread()
A utility method that sets the wait cursor and calls loadData in a separate thread .
|
protected void |
makeStationModelEditMenuItems(java.util.List items,
boolean forMenuBar)
Get edit menu items
|
void |
projectionChanged()
Method to call if projection changes.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Property change method.
|
void |
removeChartParam(PointParam pointParam)
Remove a parameters from the chart
|
protected void |
resetData()
This gets called when the control has received notification of a
dataChange event.
|
void |
setAskedUserToDeclutterTime(boolean value)
Set the AskedUserToDeclutterTime property.
|
void |
setChartParams(java.util.List value)
Set the PlotVars property.
|
void |
setChartSettings(TwoFacedObject tfo)
recieve the chart display settings
|
protected boolean |
setData(DataChoice choice)
Set the data for this instance from the choice supplied.
|
void |
setDeclutter(boolean v)
Set whether this DisplayControl should be decluttered or not.
|
void |
setDeclutterFilter(float filter)
Set whether the filtering for decluttering.
|
void |
setDisplayableScale(float f)
Set the scale the user can enter
|
void |
setFilters(java.util.List value)
Set the Filters property.
|
void |
setFiltersEnabled(boolean value)
Set the FiltersEnabled property.
|
protected void |
setLayoutModel(java.lang.String id,
StationModel stationModel)
Set layout model
|
void |
setMatchAll(boolean value)
Set the MatchAll property.
|
void |
setOnlyShowFiltered(boolean value)
Set the OnlyShowFiltered property.
|
void |
setScaleOnDisplayable()
A utility to set the scale on the dislayable
|
protected void |
setScaleOnDisplayable(float f)
A utility to set the scale on the dislayable
|
void |
setSelectedObId(java.lang.String value)
Set the SelectedObId property.
|
void |
setSelectedObLocation(visad.georef.LatLonPoint value)
Set the SelectedObLocation property.
|
void |
setShouldUseAltitude(boolean value)
Set the ShouldUseAltitude property.
|
void |
setShouldUseAltitudeIndex(int index)
Set the ShouldUseAltitude property.
|
void |
setShowAllTimes(boolean value)
Set the show all times property.
|
void |
setShowThumbNail(boolean value)
Set the ShowThumbNail property.
|
void |
setStationModelFromWidget(StationModel sm)
Set the station model
|
void |
setStationModelName(java.lang.String n)
Sets the name of the
StationModel . |
void |
setStationsLocked(boolean v)
Set the locking of the stations parameter
|
void |
setTheStationModel(StationModel value)
Set the StationModel property.
|
void |
setTimeSeries(TimeSeriesChart value)
Set the TimeSeries property.
|
void |
setUseDataTimes(boolean value)
Set the use data times times property.
|
void |
setUseLastTime(boolean value)
Set the UseLastTime property.
|
protected boolean |
shouldAddControlListener()
Signal base class to add this as a control listener
|
protected boolean |
shouldAddDisplayListener()
Signal base class to add this as a display listener
|
void |
showLineProperties(PointParam pointParam)
Show the line properties for the PointParam
|
void |
test()
test method
|
protected void |
timeChanged(visad.Real time)
Respond to a timeChange event
|
protected void |
timeDeclutterChanged()
Handle when the time decluttering state has changed
|
void |
toFront(PointParam pointParam)
Bring the chart parameter to the front
|
void |
transectChanged()
Method called when a transect changes.
|
protected void |
updateLockButton()
Set the icon and the tooltip on the lock button
|
protected void |
updateTable(PointOb ob)
Extract the observation values from the given ob and update the
table.
|
void |
viewpointChanged()
Respond to changes in the control.
|
applyPreferences, doDeclutterTime, doMakeDataInstance, doMakeFieldSelector, doMakeShowRawSelector, exportAsNetcdf, getColString, getColValue, getColValue, getDisplayUnit, getDisplayUnitName, getFieldsToShow, getIndex, getIndicesToShow, getParamLabel, getShowDataRaw, getTimeDeclutterComps, getTimeDeclutterEnabled, getTimeDeclutterMinutes, isIdParam, setColString, setShowDataRaw, setTimeDeclutterEnabled, setTimeDeclutterMinutes, showFieldSelector, updateTimeDeclutterMinutes
actionPerformed, activateDisplays, addAttributedDisplayable, addAttributedDisplayable, addAttributedDisplayable, addAttributeFlags, addCheckBoxSettings, addDataChoice, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayMaster, addLabelMacros, addNewData, addNoteText, addPropertiesComponents, 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, applyZPosition, boundsClose, canBeDocked, canExportData, canSaveDataInCache, captureWindow, centerOnDisplay, changeColorUnit, changeDisplayUnit, checkBoundsChange, checkFlag, checkIfDataOk, checkImageSize, clearDataInstance, clearPrototype, clearViewManagers, close, colorUnitChanged, controlChanged, convertColorRange, convertRange, createDisplayListDisplayable, createIdvWindow, deactivateDisplays, debug, displayableToFront, displayChanged, displayControlFailed, displayUnitChanged, doApplyProperties, doExport, doMakeBottomLegendComponent, doMakeChangeColorMenu, doMakeChangeColorMenu, doMakeChangeParameterMenuItem, doMakeColorControl, doMakeColorControl, doMakeColorScales, doMakeMenuBar, doMakeMenuBarMenus, doMakePointSizeWidget, doMakeRemoveControl, doMakeSkipFactorSlider, doMakeTextureSlider, doMakeVisibilityControl, doMakeWidgetComponent, doMakeWindow, doMakeZPositionSlider, exportDisplayedData, findDisplayInfo, findDisplays, findDisplays, firePropertyChangeEvent, formatForCursorReadout, getActive, getAnimation, getAnimation, getAnimation, getAnimation, getAnimationInfo, getAnimationWidget, getAttributeFlags, getCachedData, getCanDoRemoveAll, getCategories, getChangeParameterLabel, getCollapseLegend, getColor, getColorDimness, getColorScaleInfo, getColorTableForDisplayable, getColorTableWidget, getColorUnit, getColorUnitName, getComponentHolder, getContents, getContourInfo, getControlChangeSleepTime, getControlContext, getControlMenus, getCursorReadout, getCursorReadoutInner, getCursorReadoutInner, getData, getDataChoice, getDataChoices, getDataForDisplayList, getDataInstance, getDataInstance, getDataProjectionForMenu, getDataSelection, getDataSources, getDataTimeRange, getDataTimeRange, getDataTimeSet, getDebugDetails, getDefaultColorScaleInfo, getDefaultDisplayListTemplate, getDefaultDistanceUnit, getDefaultFastRendering, getDefaultSamplingMode, getDefaultSamplingModeValue, getDefaultView, getDefaultViewDescriptor, getDefaultViewManager, getDetailsContents, getDisplayAltitudeType, getDisplayCategory, getDisplayCenter, getDisplayConventions, 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, getInitialFastRendering, getInitialRange, 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, 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, handleWindowClosing, hasForecastHourMacro, hasMapProjection, hasTimeMacro, haveDataTimes, haveParameterDefaults, hide, hyperlinkUpdate, inGlobeDisplay, init, init, init, initAfterUnPersistence, initAsPrototype, initAsTemplate, initBasic, initializeWithNewData, initWindow, isDisplay3D, isDisplayUnitAlsoColorUnit, isGuiShown, isInTransectView, isInViewManager, itemStateChanged, loadDataFromViewBounds, makeChangeColorMenuItems, makeLegendLabel, makeLockButton, makeRemoveButton, moveTo, notifyViewManagersOfChange, parseProperties, popup, popupDataDialog, popupDataDialog, popupDataDialog, processRequestProperties, putTransientProperty, reallySetAttributeFlags, receiveShareData, 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, setDataChoices, setDataInstance, setDataInstances, setDataSelection, setDataTimeRange, setDefaultSamplingMode, setDefaultView, setDisplayableVisibility, setDisplayableVisiblity, setDisplayActive, setDisplayAreaSubset, setDisplayCategory, setDisplayId, setDisplayInactive, setDisplayListColor, setDisplayListColor, setDisplayListProperties, setDisplayListTemplate, setDisplayListTimeZone, setDisplayName, setDisplayUnit, setDisplayUnitName, setDisplayVisibility, setDoCursorReadout, setExpandedInTabs, setExtraLabelTemplate, setHadDataChoices, setHelpUrl, setId, setInitDataChoices, setInitialSettings, setInitialViewManager, setIsProgressiveResolution, setIsRaster, setIsTimeDriver, setLabelAsPreference, setLegendBackground, setLegendForeground, setLegendLabel, setLegendLabelTemplate, setLineWidth, setLockVisibilityToggle, setMainPanelDimensions, setMainPanelSize, setMakeWindow, setMatchDisplayRegion, setName, setNameFromUser, setNewColorUnit, setNewDisplayUnit, setNoteText, setOkToFireEvents, setOriginalDataChoicesLabel, setParamName, setPersistedVisadData, setPointSize, setProjectionInView, setProjectionInView, setProjectionInView, setProperty, setRange, setRange, setSelectRange, setSelectRangeEnabled, setSettingsDisplayUnit, setSharedColorScaleInfo, setShowInDisplayList, setShowInLegend, setShowInTabs, setShowNoteText, setSkipValue, setSmoothingFactor, setSmoothingType, setTemplateName, setTextureQuality, setTitle, setUnitForColor, setUseFastRendering, setUsesTimeDriver, setUseTimesInAnimation, setVersion, setViewer, setViewManagerClassNames, setVisbilityAnimationPause, setWindowSize, setWindowVisible, setWindowX, setWindowY, setZPosition, setZPosition, shouldAddAnimationListener, shouldApplyFastRendering, shouldBeDocked, shouldWindowBeVisible, show, showColorControlWidget, showColorDialog, showColorDialog, showColorScaleDialog, showColorScales, showColorSwatches, showContourPropertiesDialog, showDetails, showDisplaySettingsDialog, showHelp, showLegendMenu, showNormalCursor, showProperties, showTimeRangeDialog, showWaitCursor, toFront, toggleNoteTextArea, toggleVisibilityForVectorGraphicsRendering, toggleWindow, toString, updateAnimation, updateDataInstance, updateDataSelection, updateDisplayList, updateGridDataInstance, updateLegendAndList, updateLegendLabel, 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
protected static javax.swing.ImageIcon lockIcon
protected static javax.swing.ImageIcon unlockIcon
protected javax.swing.JPanel zPositionPanel
protected LayoutModelWidget layoutModelWidget
protected boolean stationsLocked
protected java.util.List filters
protected java.util.List densityComps
protected java.util.List timeDeclutterComps
protected visad.FieldImpl lastDeclutteredData
protected visad.FieldImpl currentStationData
protected boolean canDoProgressiveResolution()
DisplayControlImpl
canDoProgressiveResolution
in class DisplayControlImpl
public void initAfterUnPersistence(ControlContext vc, java.util.Hashtable properties)
initAfterUnPersistence
in interface DisplayControl
initAfterUnPersistence
in class DisplayControlImpl
vc
- The contextproperties
- propertiespublic boolean init(DataChoice dataChoice) throws visad.VisADException, java.rmi.RemoteException
init
in class DisplayControlImpl
dataChoice
- the DataChoice of the moment.visad.VisADException
- some problem creating a VisAD objectjava.rmi.RemoteException
- some problem creating a remote VisAD objectprotected void doInitialUpdateLegendAndList()
DisplayControlImpl
doInitialUpdateLegendAndList
in class DisplayControlImpl
protected void initDisplayable(StationModelDisplayable myDisplay) throws visad.VisADException, java.rmi.RemoteException
myDisplay
- the displayvisad.VisADException
- some problem creating a VisAD objectjava.rmi.RemoteException
- some problem creating a remote VisAD objectpublic void initDone()
initDone
in class DisplayControlImpl
public boolean isInitDone()
isInitDone
in interface DisplayControl
isInitDone
in class DisplayControlImpl
public java.awt.Image getImage(java.lang.String what) throws java.lang.Exception
getImage
in class DisplayControlImpl
what
- the thing to getjava.lang.Exception
- On badnessprotected boolean shouldAddDisplayListener()
shouldAddDisplayListener
in class DisplayControlImpl
protected boolean shouldAddControlListener()
shouldAddControlListener
in class DisplayControlImpl
protected javax.swing.JComponent doMakeSideLegendComponent()
doMakeSideLegendComponent
in class DisplayControlImpl
protected void timeChanged(visad.Real time)
timeChanged
in class DisplayControlImpl
time
- new timepublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class DisplayControlImpl
evt
- event to act onprotected void handleChangedStationModel(StationModel changedModel)
changedModel
- The changed station model_protected java.lang.String getDataProjectionLabel()
getDataProjectionLabel
in class DisplayControlImpl
public visad.georef.MapProjection getDataProjection()
getDataProjection
in interface DisplayControl
getDataProjection
in class DisplayControlImpl
public void handleDisplayChanged(visad.DisplayEvent evt)
handleDisplayChanged
in class DisplayControlImpl
evt
- The eventprotected void handleMousePressed(visad.georef.EarthLocation el, visad.DisplayEvent evt)
el
- Where the mouse is clickedevt
- The eventprotected PointOb findClosestOb(visad.georef.EarthLocation el, visad.FieldImpl theField) throws visad.VisADException, java.rmi.RemoteException
el
- the EarthLocationtheField
- the data to searchjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprotected void updateTable(PointOb ob)
ob
- The obpublic void addChartParam(java.lang.String paramName)
paramName
- the name of the parameterpublic void chartChanged()
public void removeChartParam(PointParam pointParam)
pointParam
- the description of the parameter to removepublic void toFront(PointParam pointParam)
pointParam
- the parameter to frontten.public void firstFrameDone()
firstFrameDone
in interface DisplayControl
firstFrameDone
in class DisplayControlImpl
protected StationModelDisplayable createStationModelDisplayable() throws visad.VisADException, java.rmi.RemoteException
StationModelDisplayable
used by this
DisplayControl
. This implementation also adds it
to the display. Called during init.StationModelDisplayable
used by this instance.visad.VisADException
- some problem creating a VisAD objectjava.rmi.RemoteException
- some problem creating a remote VisAD objectpublic Range getRangeToApply() throws java.rmi.RemoteException, visad.VisADException
getRangeToApply
in class DisplayControlImpl
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected ColorTable getInitialColorTable()
getInitialColorTable
in class DisplayControlImpl
protected ColorTable getColorTableToApply()
getColorTableToApply
in class DisplayControlImpl
public ColorTable getColorTable()
ColorTable
property.getColorTable
in class DisplayControlImpl
public Range getRangeForColorTable() throws java.rmi.RemoteException, visad.VisADException
getRangeForColorTable
in class DisplayControlImpl
java.rmi.RemoteException
- some RMI exception occuredvisad.VisADException
- error getting the range in VisADprotected boolean setData(DataChoice choice) throws visad.VisADException, java.rmi.RemoteException
setData
in class DisplayControlImpl
choice
- DataChoice
that describes the data to
be loaded.visad.VisADException
- some problem creating a VisAD objectjava.rmi.RemoteException
- some problem creating a remote VisAD objectDisplayControlImpl.setData(DataChoice)
public void applyTimeRange()
applyTimeRange
in class DisplayControlImpl
protected void loadDataInThread()
protected void loadData()
Displayable
. This is called from
setData(DataChoice)
and whenever the projection changes.
Subclasses should override this to do whatever they need to.
This implementation uses a
PointDataInstance
to manage the data.protected visad.TupleType getTupleType() throws java.rmi.RemoteException, visad.VisADException
getTupleType
in class ObsDisplayControl
java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenprotected float getScaleFromDisplayable()
public void setScaleOnDisplayable() throws java.rmi.RemoteException, visad.VisADException
java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenprotected void setScaleOnDisplayable(float f) throws java.rmi.RemoteException, visad.VisADException
f
- The new scale valuejava.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenprotected void resetData() throws visad.VisADException, java.rmi.RemoteException
resetData
in class DisplayControlImpl
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic void projectionChanged()
projectionChanged
in interface DisplayControl
projectionChanged
in class DisplayControlImpl
public void transectChanged()
transectChanged
in interface DisplayControl
transectChanged
in class DisplayControlImpl
protected void fieldSelectorChanged()
fieldSelectorChanged
in class ObsDisplayControl
protected void getViewMenuItems(java.util.List items, boolean forMenuBar)
getViewMenuItems
in class DisplayControlImpl
items
- the list of items for the menuforMenuBar
- true if for the menubarprotected visad.FieldImpl filterData(visad.FieldImpl obs) throws java.lang.Exception
obs
- The datajava.lang.Exception
- When bad things happen.public void setTheStationModel(StationModel value)
value
- The new value for StationModelpublic StationModel getTheStationModel()
public StationModel getStationModel()
public void setStationModelFromWidget(StationModel sm)
sm
- station modelprotected void setLayoutModel(java.lang.String id, StationModel stationModel)
id
- idstationModel
- station modelprotected javax.swing.JComponent getExtraLegendComponent(int legendType)
getExtraLegendComponent
in class DisplayControlImpl
legendType
- type of legendpublic java.lang.String getStationModelName()
StationModel
. Used by XML encoding.StationModel
public void setStationModelName(java.lang.String n)
StationModel
.n
- name of the StationModel
public javax.swing.JButton getLockButton()
public void getControlWidgets(java.util.List controlWidgets) throws visad.VisADException, java.rmi.RemoteException
getControlWidgets
in class DisplayControlImpl
controlWidgets
- default list based on any attributes set
for this DisplayControl.visad.VisADException
- some problem creating a VisAD objectjava.rmi.RemoteException
- some problem creating a remote VisAD objectpublic void test()
public void editStationTable()
protected javax.swing.JPanel doMakeVerticalPositionPanel()
protected java.awt.Container doMakeContents() throws visad.VisADException, java.rmi.RemoteException
doMakeContents
in class DisplayControlImpl
java.rmi.RemoteException
visad.VisADException
public void showLineProperties(PointParam pointParam)
pointParam
- the point parameter descriptionprotected void timeDeclutterChanged()
timeDeclutterChanged
in class ObsDisplayControl
protected javax.swing.JComponent addDensityComp(javax.swing.JComponent comp)
comp
- The component to add into the lsitprotected javax.swing.JComponent addTimeDeclutterComp(javax.swing.JComponent comp)
comp
- The component to add into the lsitprotected javax.swing.JPanel getDensityControl()
protected void getEditMenuItems(java.util.List items, boolean forMenuBar)
getEditMenuItems
in class DisplayControlImpl
items
- list of menu itemsforMenuBar
- true if for the menu barprotected void makeStationModelEditMenuItems(java.util.List items, boolean forMenuBar)
items
- list of menu itemsforMenuBar
- true if for the menu barprotected void addDisplaySettings(DisplaySettingsDialog dsd)
addDisplaySettings
in class ObsDisplayControl
dsd
- display settings dialogpublic void setChartSettings(TwoFacedObject tfo)
tfo
- Holds the chart to applyprotected boolean isChartEnabled()
protected 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 exportAsKmz()
public void exportAsCsv()
protected boolean haveFilters()
public void initFilters()
public void applyFilters()
protected javax.swing.JComponent doMakeFilterGui(boolean includeAll)
includeAll
- Include the radio buttonspublic void handleOnlyShow(int index)
index
- Which radio buttonprotected java.util.List getFilterNames()
protected void updateLockButton()
public void doRemove() throws visad.VisADException, java.rmi.RemoteException
doRemove
in interface DisplayControl
doRemove
in class ObsDisplayControl
java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD Errorpublic void setDeclutter(boolean v)
v
- true to declutterpublic boolean getDeclutter()
public void setStationsLocked(boolean v)
v
- true to stationsLockedpublic boolean getStationsLocked()
public void setDeclutterFilter(float filter)
filter
- value of 1 (default) for no overlap (default).
0 < filter < 1 allows some data overlap.
filter > 1 causes data to be more widely spaced.public float getDeclutterFilter()
protected float getScale()
protected java.awt.geom.Rectangle2D getBounds()
protected visad.LinearLatLonSet calculateLatLonBounds(java.awt.geom.Rectangle2D screenBounds)
screenBounds
- VisAD screen bounds.protected float decodeFilterString(java.lang.String filter)
filter
- filter as a stringpublic java.lang.String getColorWidgetLabel()
getColorWidgetLabel
in class DisplayControlImpl
public void setFilters(java.util.List value)
value
- The new value for Filterspublic java.util.List getFilters()
public void setMatchAll(boolean value)
value
- The new value for MatchAllpublic boolean getMatchAll()
public void setFiltersEnabled(boolean value)
value
- The new value for FiltersEnabledpublic boolean getFiltersEnabled()
public void setShowAllTimes(boolean value)
value
- The new value for showAllTimespublic void setUseDataTimes(boolean value)
value
- The new value for use data timespublic boolean getUseDataTimes()
public float getDisplayableScale()
public void setDisplayableScale(float f)
f
- The scalepublic void setUseLastTime(boolean value)
value
- The new value for UseLastTimepublic boolean getUseLastTime()
public void viewpointChanged()
viewpointChanged
in class DisplayControlImpl
protected void loadDataInAWhile()
Note: This method does not need to be synchronized because it is called from within a synchronized block above.
public void setOnlyShowFiltered(boolean value)
value
- The new value for OnlyShowFilteredpublic boolean getOnlyShowFiltered()
public void setShouldUseAltitude(boolean value)
value
- The new value for ShouldUseAltitudepublic boolean getShouldUseAltitude()
public void setShouldUseAltitudeIndex(int index)
index
- The indexpublic void setAskedUserToDeclutterTime(boolean value)
value
- The new value for AskedUserToDeclutterTimepublic boolean getAskedUserToDeclutterTime()
public void setChartParams(java.util.List value)
value
- The new value for PlotVarspublic java.util.List getChartParams()
public void setSelectedObId(java.lang.String value)
value
- The new value for SelectedObIdpublic java.lang.String getSelectedObId()
public void setTimeSeries(TimeSeriesChart value)
value
- The new value for TimeSeriespublic TimeSeriesChart getTimeSeries()
public TimeSeriesChart getChart()
public void setShowThumbNail(boolean value)
value
- The new value for ShowThumbNailpublic void setSelectedObLocation(visad.georef.LatLonPoint value)
value
- The new value for SelectedObLocationpublic visad.georef.LatLonPoint getSelectedObLocation()
public void dataChanged()
dataChanged
in interface DataChangeListener
dataChanged
in class DisplayControlImpl