Package ucar.unidata.idv.control
Class WMSControl
- All Implemented Interfaces:
ActionListener,ItemListener,ImageObserver,PropertyChangeListener,EventListener,HyperlinkListener,Sharable,DataChangeListener,DisplayControl,Prototypable,ControlListener,DisplayListener
Class for controlling the display of color images.
- Author:
- Jeff McWhirter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass ColorExclude Holds information to exclude certain colorsNested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl
DisplayControlImpl.SideLegendLabel -
Field Summary
Fields inherited from class ucar.unidata.idv.control.BaseImageControl
EMPTY_IMAGE, EMPTY_RGB_IMAGE, emptyImage, emptyRGBImageFields 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_LEGENDFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.WMSControl(List wmsSelections, String title) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanSee if this can save data in cache.protected ContainerMake the guiprotected DataInstancedoMakeDataInstance(DataChoice dataChoice) make the data instanceGet the CurrentBounds property.Even though we do have data that holds a MapProjection we don't want to provide it so we return null.This gets called when the user selects the View menu item "Use Native Image Projection"protected StringGet the contents of the details htmlbooleanGet the EnableAutoFetch property.protected JComponentgetExtraLegendComponent(int legendType) Assume that any display controls that have a color table widget will want the color table to show up in the legend.intGet the ImageHeight property.intGet the ImageWidth property.protected booleanGet initial fast rendering optionprotected doubleGet default z position to useprotected voidgetLegendLabels(List labels, int legendType) Get the legend labesldoubleGet the Resolution property.protected voidgetSaveMenuItems(List items, boolean forMenuBar) Add the relevant file menu items into the listdoublegetScale()Get the Scale property.Get the SelectedTime property.Get the TheLayer property.Get the TheTitle property.protected StringgetTitle()Get the window titleprotected voidgetViewMenuItems(List items, boolean forMenuBar) Add to view menuGet the WmsInfo property.Get the WmsInfos property.voidGo the a street addressvoidhandleDisplayChanged(DisplayEvent event) Listen for DisplayEventsbooleanimageUpdate(Image img, int flags, int x, int y, int width, int height) Handle the image updatebooleaninit(DataChoice dataChoice) Called to make this kind of Display Control; This method is called from inside DisplayControlImpl init(several args).voidinitDone()initdonebooleanhave we fully initializedvoidLoad the iamge from screen boundsvoidMethod to call if projection changes.voidOverwrite base class method to do our own style of reloadvoidReproject the imagevoidUser changed resolutionvoidSave the data choice into the cache data sourcevoidscaleSliderChanged(int value) Handle the slider changingvoidselectLayer(Object layer) Set the wmsinfovoidsetCurrentBounds(GeoLocationInfo value) Set the CurrentBounds property.protected booleansetData(DataChoice dataChoice) set the datavoidsetEnableAutoFetch(boolean value) Set the EnableImageFetch property.voidsetEnableClick(boolean value) Set the EnableClick property.voidsetImageHeight(int value) Set the ImageHeight property.voidsetImageWidth(int value) Set the ImageWidth property.voidsetResolution(double value) Set the Resolution property.voidsetScale(double value) Set the Scale property.voidsetSelectedTime(String value) Set the SelectedTime property.voidsetTheLayer(Object value) Set the TheLayer property.voidsetTheTitle(Object value) Set the TheTitle property.voidsetWmsInfo(WmsSelection value) Set the WmsInfo property.voidsetWmsInfos(List value) Set the WmsInfos property.protected booleanSignal base class to add this as a projection control listenerprotected booleanSignal base class to add this as a display listenervoidNoop for the ControlListener interfacevoidAsk the user for an image xml file name and write the image to itMethods inherited from class ucar.unidata.idv.control.ImageControl
getControlWidgets, getImageFlags, getInitialColorTable, getMultipleIsTopography, getUseTexture, haveMultipleFields, setAlphaFromSlider, setMultipleIsTopography, setUseTextureMethods inherited from class ucar.unidata.idv.control.BaseImageControl
doMakeAlphaSlider, getAlpha, getDataProjectionLabel, getIsRaster, getSkipWidgetLabel, getWorkingImage, setAlpha, setInverseAlphaFromSlider, showSkipFactorSliderMethods inherited from class ucar.unidata.idv.control.GridDisplayControl
actionPerformed, addTopographyMap, addTopographyMap, applyForecastHourMacro, canDoProgressiveResolution, convertColorRange, doExport, doMakeContourLevelControl, doMakeLevelControl, doMakeLevelControl, exportDisplayedData, getColorParamName, getColorRangeFromData, getColorRangeIndex, getColorUnit, getContourInfo, getCursorReadoutData, getCursorReadoutInner, getDataRangeInColorUnits, getDefaultContourInfo, getDisplayUnit, getGridDataInstance, getInitialRange, getRawDataUnit, initializeDefaultContourInfo, isDisplayUnitAlsoColorUnit, normalizeRectangle, setLevel, setLevel, setLevelFromUserMethods inherited from class ucar.unidata.idv.control.DisplayControlImpl
activateDisplays, addAttributedDisplayable, addAttributedDisplayable, addAttributedDisplayable, addAttributeFlags, addCheckBoxSettings, addDataChoice, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayMaster, addDisplaySettings, addLabelMacros, addNewData, 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, 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, doRemove, findDisplayInfo, findDisplays, findDisplays, firePropertyChangeEvent, firstFrameDone, formatForCursorReadout, getActive, getAnimation, getAnimation, getAnimation, getAnimation, getAnimationInfo, getAnimationWidget, getAttributeFlags, getCachedData, getCanDoRemoveAll, getCategories, getChangeParameterLabel, getCollapseLegend, getColor, getColorDimness, getColorScaleInfo, getColorTable, getColorTableForDisplayable, getColorTableToApply, getColorTableWidget, getColorUnitName, getColorWidgetLabel, getComponentHolder, getContents, getControlChangeSleepTime, getControlContext, getControlMenus, getCursorReadout, getCursorReadoutInner, getData, getDataChoice, getDataChoices, getDataForDisplayList, getDataInstance, getDataInstance, getDataSelection, getDataSources, getDataTimeRange, getDataTimeRange, getDataTimeSet, getDebugDetails, getDefaultColorScaleInfo, getDefaultDisplayListTemplate, getDefaultDistanceUnit, getDefaultFastRendering, getDefaultSamplingMode, getDefaultSamplingModeValue, getDefaultView, getDefaultViewDescriptor, getDefaultViewManager, getDisplayAltitudeType, getDisplayCategory, getDisplayCenter, getDisplayConventions, getDisplayedData, getDisplayId, getDisplayInfos, getDisplayListColor, getDisplayListData, getDisplayListDisplayable, getDisplayListTemplate, getDisplayMaster, getDisplayName, getDisplayScale, getDisplayUnit, getDisplayUnitName, getDisplayVisibility, getDoCursorReadout, getEditMenuItems, getEditMenuItems, getExpandedInTabs, getExtraLabelTemplate, getExtraMenus, getFileMenuItems, getFileMenuItems, getGraphicsConfiguration, getGrid, getGrid, getHadDataChoices, getHaveInitialized, getHelpIds, getHelpMenuItems, getId, getIdv, getImage, getImage, getInitDataChoices, getInternalAnimation, getInternalAnimation, getIsProgressiveResolution, getIsTimeDriver, getLabel, getLastFileMenuItems, getLatLonPoints, getLegendButtons, getLegendComponent, getLegendLabel, 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, getSmoothingFactor, getSmoothingType, getSomeAnimation, getStore, getTemplateName, getTextureQuality, getTextureQualityLabel, getTimeSet, 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, initAfterUnPersistence, initAsPrototype, initAsTemplate, initBasic, initializeWithNewData, initWindow, isDisplay3D, isGuiShown, isInTransectView, isInViewManager, itemStateChanged, loadDataFromViewBounds, makeChangeColorMenuItems, makeLegendLabel, makeLockButton, makeRemoveButton, moveTo, notifyViewManagersOfChange, parseProperties, popup, popupDataDialog, popupDataDialog, popupDataDialog, processRequestProperties, propertyChange, putTransientProperty, reallySetAttributeFlags, receiveShareData, redoGuiLayout, reloadDataSourceInThread, relocateDisplay, relocateDisplay, removeDataChoice, removeDisplayable, removeDisplayables, removeDisplayables, removeOnWindowClose, removePropertyChangeListener, resetData, resetDimness, resetViewManager, revertToDefaultColorTable, revertToDefaultColorTable, revertToDefaultRange, revertToDefaultRange, saveAsFavorite, saveAsParameterDefaults, saveAsPrototype, saveAsTemplate, 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, timeChanged, toFront, toggleNoteTextArea, toggleVisibilityForVectorGraphicsRendering, toggleWindow, toString, transectChanged, updateAnimation, updateDataInstance, updateDataSelection, updateDisplayList, updateGridDataInstance, updateLegendAndList, updateLegendLabel, updateLockButton, useSmoothingFactor, useZPosition, viewManagerChanged, viewManagerDestroyed, writeTestArchive, xxxsetDisplayActive, zSliderChangedMethods inherited from class ucar.unidata.idv.control.DisplayControlBase
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getLabeledReal, getLevelReal, getScreenCenter, getSelectedStation, getTmpProperty, isLeftButtonDown, logException, logException, makeEarthLocation, putTmpProperty, removeTmpProperty, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessageMethods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ucar.unidata.idv.DisplayControl
getTmpProperty, putTmpProperty, removeTmpPropertyMethods inherited from interface ucar.unidata.collab.Sharable
getReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTime
-
Constructor Details
-
WMSControl
public WMSControl()Default constructor. -
WMSControl
Constructor.- Parameters:
wmsSelections- The list of wms infostitle- The title
-
-
Method Details
-
init
Called to make this kind of Display Control; This method is called from inside DisplayControlImpl init(several args).- Overrides:
initin classImageControl- Parameters:
dataChoice- the DataChoice of the moment.- Returns:
- true if successful
- Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
initDone
public void initDone()initdone- Overrides:
initDonein classDisplayControlImpl
-
isInitDone
public boolean isInitDone()have we fully initialized- Specified by:
isInitDonein interfaceDisplayControl- Overrides:
isInitDonein classDisplayControlImpl- Returns:
- have we fully initialized
-
doMakeDataInstance
protected DataInstance doMakeDataInstance(DataChoice dataChoice) throws RemoteException, VisADException make the data instance- Overrides:
doMakeDataInstancein classGridDisplayControl- Parameters:
dataChoice- the data choice- Returns:
- The data instance
- Throws:
RemoteException- On badnessVisADException- On badness
-
shouldAddDisplayListener
protected boolean shouldAddDisplayListener()Signal base class to add this as a display listener- Overrides:
shouldAddDisplayListenerin classGridDisplayControl- Returns:
- Add as display listener
-
shouldAddControlListener
protected boolean shouldAddControlListener()Signal base class to add this as a projection control listener- Overrides:
shouldAddControlListenerin classGridDisplayControl- Returns:
- Add as display listener
-
getInitialFastRendering
protected boolean getInitialFastRendering()Get initial fast rendering option- Overrides:
getInitialFastRenderingin classDisplayControlImpl- Returns:
- false
-
projectionChanged
public void projectionChanged()Method to call if projection changes. Subclasses that are worried about such events should implement this.- Specified by:
projectionChangedin interfaceDisplayControl- Overrides:
projectionChangedin classDisplayControlImpl
-
viewpointChanged
public void viewpointChanged()Noop for the ControlListener interface- Overrides:
viewpointChangedin classDisplayControlImpl
-
getDetailsContents
Get the contents of the details html- Overrides:
getDetailsContentsin classDisplayControlImpl- Returns:
- The contents of the details
-
handleDisplayChanged
Listen for DisplayEvents- Overrides:
handleDisplayChangedin classDisplayControlImpl- Parameters:
event- The event
-
goToAddress
public void goToAddress()Go the a street address -
reloadDataSource
Overwrite base class method to do our own style of reload- Overrides:
reloadDataSourcein classDisplayControlImpl- Throws:
RemoteException- On badnessVisADException- On badness
-
getViewMenuItems
Add to view menu- Overrides:
getViewMenuItemsin classDisplayControlImpl- Parameters:
items- List of itesforMenuBar- for the menu bar
-
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
-
canSaveDataInCache
protected boolean canSaveDataInCache()See if this can save data in cache.- Overrides:
canSaveDataInCachein classDisplayControlImpl- Returns:
- true if allowable
-
writeImageXml
public void writeImageXml()Ask the user for an image xml file name and write the image to it -
saveDataChoiceInCache
public void saveDataChoiceInCache()Save the data choice into the cache data source- Overrides:
saveDataChoiceInCachein classDisplayControlImpl
-
doMakeContents
Make the gui- Overrides:
doMakeContentsin classImageControl- Returns:
- The gui
- Throws:
RemoteException- On badnessVisADException- On badness
-
scaleSliderChanged
public void scaleSliderChanged(int value) Handle the slider changing- Parameters:
value- new slider value
-
loadImageFromScreen
public void loadImageFromScreen()Load the iamge from screen bounds -
getDataProjection
Even though we do have data that holds a MapProjection we don't want to provide it so we return null.- Specified by:
getDataProjectionin interfaceDisplayControl- Overrides:
getDataProjectionin classGridDisplayControl- Returns:
- null
-
getDataProjectionForMenu
This gets called when the user selects the View menu item "Use Native Image Projection"- Overrides:
getDataProjectionForMenuin classDisplayControlImpl- Returns:
- MapProjection for the data
-
reproject
public void reproject()Reproject the image -
setData
set the data- Overrides:
setDatain classImageControl- Parameters:
dataChoice- The data- Returns:
- ok
- Throws:
RemoteException- On badnessVisADException- On badness
-
selectLayer
Set the wmsinfo- Parameters:
layer- The new layer
-
setImageWidth
public void setImageWidth(int value) Set the ImageWidth property.- Parameters:
value- The new value for ImageWidth
-
getImageWidth
public int getImageWidth()Get the ImageWidth property.- Returns:
- The ImageWidth
-
setImageHeight
public void setImageHeight(int value) Set the ImageHeight property.- Parameters:
value- The new value for ImageHeight
-
getImageHeight
public int getImageHeight()Get the ImageHeight property.- Returns:
- The ImageHeight
-
resolutionChanged
User changed resolution- Parameters:
tfo- New resolution
-
setResolution
public void setResolution(double value) Set the Resolution property.- Parameters:
value- The new value for Resolution
-
getResolution
public double getResolution()Get the Resolution property.- Returns:
- The Resolution
-
setCurrentBounds
Set the CurrentBounds property.- Parameters:
value- The new value for CurrentBounds
-
getCurrentBounds
Get the CurrentBounds property.- Returns:
- The CurrentBounds
-
setWmsInfo
Set the WmsInfo property.- Parameters:
value- The new value for WmsInfo
-
getWmsInfo
Get the WmsInfo property.- Returns:
- The WmsInfo
-
getTitle
Get the window title- Overrides:
getTitlein classDisplayControlImpl- Returns:
- Window title
-
getLegendLabels
Get the legend labesl- Overrides:
getLegendLabelsin classDisplayControlImpl- Parameters:
labels- List of (String) labelslegendType- For side or bottom
-
imageUpdate
Handle the image update- Specified by:
imageUpdatein interfaceImageObserver- Parameters:
img- The imageflags- flagsx- xy- ywidth- widthheight- height- Returns:
- Continue loading
-
getExtraLegendComponent
Assume that any display controls that have a color table widget will want the color table to show up in the legend.- Overrides:
getExtraLegendComponentin classImageControl- Parameters:
legendType- type of legend- Returns:
- The extra JComponent to use in legend
-
setWmsInfos
Set the WmsInfos property.- Parameters:
value- The new value for WmsInfos
-
getWmsInfos
Get the WmsInfos property.- Returns:
- The WmsInfos
-
setEnableClick
public void setEnableClick(boolean value) Set the EnableClick property.- Parameters:
value- The new value for EnableClick deprecated use setEnableAutoFetch
-
getEnableAutoFetch
public boolean getEnableAutoFetch()Get the EnableAutoFetch property.- Returns:
- The EnableAutoFetch property
-
setEnableAutoFetch
public void setEnableAutoFetch(boolean value) Set the EnableImageFetch property.- Parameters:
value- The new value for EnableAutoFetch
-
setSelectedTime
Set the SelectedTime property.- Parameters:
value- The new value for SelectedTime
-
getSelectedTime
Get the SelectedTime property.- Returns:
- The SelectedTime
-
setTheLayer
Set the TheLayer property.- Parameters:
value- The new value for TheLayer
-
getTheLayer
Get the TheLayer property.- Returns:
- The TheLayer
-
getTheTitle
Get the TheTitle property.- Returns:
- The TheTitle
-
setTheTitle
Set the TheTitle property.- Parameters:
value- The new value for TheTitle
-
setScale
public void setScale(double value) Set the Scale property.- Parameters:
value- The new value for Scale
-
getScale
public double getScale()Get the Scale property.- Returns:
- The Scale
-
getInitialZPosition
protected double getInitialZPosition()Get default z position to use- Overrides:
getInitialZPositionin classDisplayControlImpl- Returns:
- Default z position
-