edu.wisc.ssec.mcidasv.control
Class ImagePlanViewControl

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.idv.control.DisplayControlBase
          extended by ucar.unidata.idv.control.DisplayControlImpl
              extended by ucar.unidata.idv.control.GridDisplayControl
                  extended by ucar.unidata.idv.control.PlanViewControl
                      extended by ucar.unidata.idv.control.ImagePlanViewControl
                          extended by edu.wisc.ssec.mcidasv.control.ImagePlanViewControl
All Implemented Interfaces:
ActionListener, ItemListener, PropertyChangeListener, EventListener, HyperlinkListener, Sharable, DataChangeListener, DisplayControl, Prototypable, ControlListener, DisplayListener
Direct Known Subclasses:
HydrometeorClassificationControl, SuomiNPPQfControl

public class ImagePlanViewControl
extends ImagePlanViewControl

ImagePlanViewControl with some McIDAS-V specific extensions. Namely parameter sets and support for inverted parameter defaults.


Nested Class Summary
private  class ImagePlanViewControl.MyTabbedPane
          Holds a JFreeChart histogram of image values.
 
Nested classes/interfaces inherited from class ucar.unidata.idv.control.PlanViewControl
PlanViewControl.VerticalRangeWidget
 
Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl
DisplayControlImpl.SideLegendLabel
 
Field Summary
private static String ATTR_DAY
           
private static String ATTR_NAME
           
private static String ATTR_POS
           
private static String ATTR_SERVER
           
private static String ATTR_TIME
           
private static String ATTR_UNIT
           
protected static String CMD_NEWFOLDER
          Command for connecting
protected static String CMD_NEWPARASET
           
private  JPanel contents
           
private  DataSourceImpl dataSource
           
private  JTextField folderFld
          Install new folder fld
private  McIDASVHistogramWrapper histoWrapper
           
private  FlatField image
           
private static XmlResourceCollection imageDefaults
          Holds the ADDE servers and groups
private static Document imageDefaultsDocument
          The user imagedefaults xml document
private static Element imageDefaultsRoot
          The user imagedefaults xml root
private  Node lastCat
           
private static Element lastClicked
           
private static org.slf4j.Logger logger
           
private  String newCompName
           
private static String newFolder
           
private  JButton newFolderBtn
           
private  JButton newSetBtn
           
private  JFrame saveWindow
          save parameter set
private  JComponent statusComp
          Status bar component
private  JLabel statusLabel
          Shows the status
private static String TAG_DEFAULT
           
private static String TAG_FOLDER
           
private  JPanel treePanel
          Holds the current save set tree
private  XmlTree xmlTree
           
 
Fields inherited from class ucar.unidata.idv.control.PlanViewControl
currentLevel, currentLevels, currentSlice, datachoice, haveEnsemble, levelReadout, MACRO_LEVEL, SHARE_LEVEL
 
Fields inherited from class ucar.unidata.idv.control.GridDisplayControl
CMD_CONTOURDIALOG, CMD_SETLEVELS, gridDataInstance, INITIAL_PROBE_EARTHLOCATION, log_, settingLevel
 
Fields 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, noteTextArea, noteWrapper, paramName, requestProperties, selectRangeWidget, settingVisibility, sharables, showNoteText, skipSlider, version, viewManagers, ZFUDGE
 
Fields inherited from class ucar.unidata.idv.control.DisplayControlBase
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_LONGNAME, MACRO_POSITION, 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
 
Fields inherited from interface ucar.unidata.idv.DisplayControl
BOTTOM_LEGEND, DEFAULT_PROBEFORMAT, PREF_PREFIX, PREF_PROBEFORMAT, PREF_REMOVEONWINDOWCLOSE, PREF_SAMPLING_MODE, PREF_STANDALONE_REMOVEONCLOSE, PREF_STANDALONE_REMOVEONCLOSE_ASK, PROP_LEGENDICON, RASTERMODE_SHOWALL, RASTERMODE_SHOWNONRASTER, RASTERMODE_SHOWRASTER, SIDE_LEGEND
 
Constructor Summary
ImagePlanViewControl()
           
 
Method Summary
private  void addToContents(JComponent comp)
          Remove the currently display gui and insert the given one.
protected  void contrastStretch(double low, double high)
           
private  void doDeleteRequest(Node node)
           
 Container doMakeContents()
          Called by doMakeWindow in DisplayControlImpl, which then calls its doMakeMainButtonPanel(), which makes more buttons.
private  void doRename(Element node)
           
 DataSourceImpl getDataSource()
           
private  List getFolders()
           
protected  JComponent getHistogramTabComponent()
           
protected  XmlResourceCollection getImageDefaults()
          Get the xml resource collection that defines the image default xml
protected  void getSaveMenuItems(List items, boolean forMenuBar)
          Add in the menu items for the save and export display template
 boolean init(DataChoice dataChoice)
          Initialize this instance according to a data choice.
private  Node makeNewFolder()
           
private  Hashtable makeParameterValues()
           
private  boolean makePopupMenu(XmlTree theTree, Element node, JPopupMenu popup)
          Create and popup a command menu for when the user has clicked on the given xml node.
private  void makeXmlTree()
          Just creates an empty XmlTree
 void moveParameterSet(Element parent, Element newFolder)
           
private  void newComponentError(String comp)
           
 void popupPersistImageParameters()
           
 void popupSaveImageParameters()
           
private  void removeNode(Element node)
           
 void resetColorTable()
           
 void saveDataToLocalDisk()
           
 Element saveParameterSet()
           
 boolean setData(DataChoice dataChoice)
          Sets the data associated with this instance.
private  void setInitialHistogramRange()
          Take out the histogram-related stuff that was in doMakeContents and put it in a standalone method, so we can wait and call it only after the histogram is actually initialized.
 void setRange(Range newRange)
          Set the range for the color table.
private  void setStatus(String msg)
           
private  void showSaveDialog()
           
 
Methods inherited from class ucar.unidata.idv.control.ImagePlanViewControl
applyTextureQuality, createPlanDisplay, getAllowSmoothing, getDataProjectionLabel, getInitialColorTable, getInitialRange, getIsRaster, getSkipWidgetLabel, getSliceForDisplay
 
Methods inherited from class ucar.unidata.idv.control.PlanViewControl
addDisplaySettings, addLabelMacros, addParameterTopographyMap, addTopographyMap, addToRangeMenu, applySkipFactor, applySmoothing, canExportData, checkFlag, displayUnitChanged, doRemove, formatLevel, getColorRangeIndex, getControlWidgets, getCurrentSlice, getCursorReadoutData, getCursorReadoutInner, getDisplayedData, getEditMenuItems, getGridDisplayable, getIgnoreVerticalDimension, getLegendLabels, getLevel, getLevelColorRange, getLevelsLabel, getMacroNames, getMultipleIsTopography, getParameterIsTopography, getPlanDisplay, getPolygonMode, getPolyModeComboBox, getVerticalRange, haveLevels, haveMultipleFields, initDone, loadDataAtLevel, projectionChanged, propertyChange, receiveShareData, setCurrentSlice, setDataSelectionLevel, setIgnoreVerticalDimension, setLevel, setLevelFromUser, setLevelReadoutLabel, setLevels, setMultipleIsTopography, setParameterIsTopography, setPointSize, setPolygonMode, setSettingsLevel, setVerticalRange, shouldShowLevelWidget, shouldShowZSelector, shouldUseZPosition
 
Methods inherited from class ucar.unidata.idv.control.GridDisplayControl
actionPerformed, addTopographyMap, convertColorRange, doMakeContourLevelControl, doMakeDataInstance, doMakeLevelControl, doMakeLevelControl, exportDisplayedData, getColorParamName, getColorRangeFromData, getColorUnit, getContourInfo, getDataProjection, getDataRangeInColorUnits, getDefaultContourInfo, getDisplayUnit, getGridDataInstance, getRawDataUnit, initializeDefaultContourInfo, isDisplayUnitAlsoColorUnit, setLevel
 
Methods inherited from class ucar.unidata.idv.control.DisplayControlImpl
activateDisplays, addAttributedDisplayable, addAttributedDisplayable, addAttributedDisplayable, addAttributeFlags, addCheckBoxSettings, addDataChoice, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayMaster, addNewData, addNoteText, addPropertiesComponents, addPropertyChangeListener, addRemovable, addSharable, addTimeModeWidget, addToControlContext, addToRangeMenu, addToRangeMenu, addViewManager, appendDataChoices, applyAttributesToDisplayables, applyColor, applyColorScaleInfo, applyColorTable, applyColorUnit, applyContourInfo, applyDisplaySetting, applyDisplayUnit, applyLineWidth, applyPreferences, applyProperties, applyProperties, applyPropertyValues, applyRange, applySelectRange, applyTimeRange, applyZPosition, boundsClose, canBeDocked, canSaveDataInCache, captureWindow, centerOnDisplay, changeColorUnit, changeDisplayUnit, checkIfDataOk, checkImageSize, clearDataInstance, clearPrototype, clearViewManagers, close, colorUnitChanged, controlChanged, convertColorRange, convertRange, createDisplayListDisplayable, createIdvWindow, dataChanged, deactivateDisplays, debug, displayableToFront, displayChanged, displayControlFailed, doApplyProperties, doExport, doInitialUpdateLegendAndList, doMakeBottomLegendComponent, doMakeChangeColorMenu, doMakeChangeColorMenu, doMakeChangeParameterMenuItem, doMakeColorControl, doMakeColorControl, doMakeColorScales, doMakeMenuBar, doMakeMenuBarMenus, doMakePointSizeWidget, doMakeRemoveControl, doMakeSideLegendComponent, doMakeSkipFactorSlider, doMakeTextureSlider, doMakeVisibilityControl, doMakeWidgetComponent, doMakeWindow, doMakeZPositionSlider, 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, getDataProjectionForMenu, getDataSelection, getDataSources, getDataTimeRange, getDataTimeRange, getDataTimeSet, getDebugDetails, getDefaultColorScaleInfo, getDefaultDisplayListTemplate, getDefaultDistanceUnit, getDefaultFastRendering, getDefaultSamplingMode, getDefaultSamplingModeValue, getDefaultView, getDefaultViewDescriptor, getDefaultViewManager, getDetailsContents, getDisplayAltitudeType, getDisplayCategory, getDisplayCenter, getDisplayConventions, getDisplayId, getDisplayInfos, getDisplayListColor, getDisplayListData, getDisplayListDisplayable, getDisplayListTemplate, getDisplayMaster, getDisplayName, getDisplayScale, getDisplayUnit, getDisplayUnitName, getDisplayVisibility, getDoCursorReadout, getEditMenuItems, getExpandedInTabs, getExtraLabelTemplate, getExtraLegendComponent, getExtraMenus, getFileMenuItems, getFileMenuItems, getGraphicsConfiguration, getGrid, getGrid, getHadDataChoices, getHaveInitialized, getHelpIds, getHelpMenuItems, getId, getIdv, getImage, getImage, getInitDataChoices, getInitialFastRendering, getInitialZPosition, getInternalAnimation, getInternalAnimation, getIsTimeDriver, getLabel, getLastFileMenuItems, getLegendButtons, getLegendComponent, getLegendLabel, getLegendLabelTemplate, getLegendToolTip, getLineWidth, getLineWidthWidget, getLineWidthWidgetLabel, getLockVisibilityToggle, getLongParamName, getMainPanel, getMainPanelSize, getMakeWindow, getMapDisplay, getMapViewManager, getMapViewProjection, 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, getShowInDisplayList, getShowInLegend, getShowInTabs, getShowNoteText, getSkipValue, 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, getViewMenuItems, getVisbilityAnimationPause, getWasUnPersisted, getWindow, getWindowSize, getWindowVisible, getWindowX, getWindowY, getZPosition, getZPositionSliderLabel, guiExported, guiImported, handleDisplayChanged, handleWindowClosing, hasMapProjection, hasTimeMacro, haveDataTimes, haveParameterDefaults, hide, hyperlinkUpdate, inGlobeDisplay, init, init, init, initAfterUnPersistence, initAfterUnPersistence, initAsPrototype, initAsTemplate, initBasic, initializeWithNewData, initWindow, isDisplay3D, isGuiShown, isInitDone, isInTransectView, isInViewManager, itemStateChanged, makeChangeColorMenuItems, makeLegendLabel, makeLockButton, makeRemoveButton, moveTo, notifyViewManagersOfChange, parseProperties, popup, popupDataDialog, popupDataDialog, popupDataDialog, processRequestProperties, putTransientProperty, reallySetAttributeFlags, redoGuiLayout, reloadDataSource, reloadDataSourceInThread, removeDataChoice, removeDisplayable, removeDisplayables, removeDisplayables, removeOnWindowClose, removePropertyChangeListener, resetData, resetDimness, resetViewManager, revertToDefaultColorTable, revertToDefaultColorTable, revertToDefaultRange, revertToDefaultRange, saveAsFavorite, saveAsParameterDefaults, saveAsPrototype, saveAsTemplate, saveDataChoiceInCache, saveImage, 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, setDisplayCategory, setDisplayId, setDisplayInactive, setDisplayListColor, setDisplayListColor, setDisplayListProperties, setDisplayListTemplate, setDisplayName, setDisplayUnit, setDisplayUnitName, setDisplayVisibility, setDoCursorReadout, setExpandedInTabs, setExtraLabelTemplate, setHadDataChoices, setHelpUrl, setId, setInitDataChoices, setInitialSettings, setInitialViewManager, setIsRaster, setIsTimeDriver, setLabelAsPreference, setLegendBackground, setLegendForeground, setLegendLabel, setLegendLabelTemplate, setLineWidth, setLockVisibilityToggle, setMainPanelDimensions, setMainPanelSize, setMakeWindow, setName, setNameFromUser, setNewColorUnit, setNewDisplayUnit, setNoteText, setOkToFireEvents, setOriginalDataChoicesLabel, setParamName, setPersistedVisadData, setProjectionInView, setProjectionInView, setProperty, 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, shouldAddControlListener, shouldAddDisplayListener, 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, viewpointChanged, writeTestArchive, xxxsetDisplayActive, zSliderChanged
 
Methods 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, userMessage
 
Methods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ucar.unidata.idv.DisplayControl
getTmpProperty, putTmpProperty, removeTmpProperty
 
Methods inherited from interface ucar.unidata.collab.Sharable
getReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTime
 

Field Detail

logger

private static final org.slf4j.Logger logger

TAG_FOLDER

private static final String TAG_FOLDER
See Also:
Constant Field Values

TAG_DEFAULT

private static final String TAG_DEFAULT
See Also:
Constant Field Values

ATTR_NAME

private static final String ATTR_NAME
See Also:
Constant Field Values

ATTR_SERVER

private static final String ATTR_SERVER
See Also:
Constant Field Values

ATTR_POS

private static final String ATTR_POS
See Also:
Constant Field Values

ATTR_DAY

private static final String ATTR_DAY
See Also:
Constant Field Values

ATTR_TIME

private static final String ATTR_TIME
See Also:
Constant Field Values

ATTR_UNIT

private static final String ATTR_UNIT
See Also:
Constant Field Values

CMD_NEWFOLDER

protected static final String CMD_NEWFOLDER
Command for connecting

See Also:
Constant Field Values

CMD_NEWPARASET

protected static final String CMD_NEWPARASET
See Also:
Constant Field Values

saveWindow

private JFrame saveWindow
save parameter set


newFolder

private static String newFolder

xmlTree

private XmlTree xmlTree

folderFld

private JTextField folderFld
Install new folder fld


treePanel

private JPanel treePanel
Holds the current save set tree


imageDefaultsRoot

private static Element imageDefaultsRoot
The user imagedefaults xml root


imageDefaultsDocument

private static Document imageDefaultsDocument
The user imagedefaults xml document


imageDefaults

private static XmlResourceCollection imageDefaults
Holds the ADDE servers and groups


lastCat

private Node lastCat

lastClicked

private static Element lastClicked

newFolderBtn

private JButton newFolderBtn

newSetBtn

private JButton newSetBtn

newCompName

private String newCompName

statusLabel

private JLabel statusLabel
Shows the status


statusComp

private JComponent statusComp
Status bar component


contents

private JPanel contents

dataSource

private DataSourceImpl dataSource

image

private FlatField image

histoWrapper

private McIDASVHistogramWrapper histoWrapper
Constructor Detail

ImagePlanViewControl

public ImagePlanViewControl()
Method Detail

init

public boolean init(DataChoice dataChoice)
             throws VisADException,
                    RemoteException
Description copied from class: ucar.unidata.idv.control.DisplayControlImpl

Initialize this instance according to a data choice. Subclasses should override this method. Overridding methods should probably invoke DisplayControlImpl.setData(DataChoice) as part of their initialization procedure -- although it is unclear when this is actually necessary.

This implementation simply returns true.

Overrides:
init in class PlanViewControl
Parameters:
dataChoice - A data choice or null.
Returns:
true if and only if this instance was correctly initialized by the data choice.
Throws:
VisADException - if a VisAD Failure occurs.
RemoteException - if a Java RMI failure occurs.

getImageDefaults

protected XmlResourceCollection getImageDefaults()
Get the xml resource collection that defines the image default xml

Returns:
Image defaults resources

doMakeContents

public Container doMakeContents()
Called by doMakeWindow in DisplayControlImpl, which then calls its doMakeMainButtonPanel(), which makes more buttons.

Overrides:
doMakeContents in class PlanViewControl
Returns:
container of contents

setInitialHistogramRange

private void setInitialHistogramRange()
Take out the histogram-related stuff that was in doMakeContents and put it in a standalone method, so we can wait and call it only after the histogram is actually initialized.


getHistogramTabComponent

protected JComponent getHistogramTabComponent()

contrastStretch

protected void contrastStretch(double low,
                               double high)

setData

public boolean setData(DataChoice dataChoice)
                throws VisADException,
                       RemoteException
Description copied from class: ucar.unidata.idv.control.DisplayControlImpl

Sets the data associated with this instance. This method gets called at initialization or when the user has selected a new DataChoice through the data selector control.

In order to implement subclasses of this class that behave correctly, you should know that this implementation uses overridable methods of this class in the following way:

Overrides:
setData in class ImagePlanViewControl
Parameters:
dataChoice - The DataChoice to use.
Returns:
Was this setData call successful
Throws:
VisADException
RemoteException

setRange

public void setRange(Range newRange)
              throws RemoteException,
                     VisADException
Description copied from class: ucar.unidata.idv.control.DisplayControlImpl
Set the range for the color table.

Overrides:
setRange in class DisplayControlImpl
Parameters:
newRange - range to use
Throws:
RemoteException - some RMI exception occured
VisADException - error setting the range in VisAD

resetColorTable

public void resetColorTable()

getSaveMenuItems

protected void getSaveMenuItems(List items,
                                boolean forMenuBar)
Description copied from class: ucar.unidata.idv.control.DisplayControlImpl
Add in the menu items for the save and export display template

Overrides:
getSaveMenuItems in class DisplayControlImpl
Parameters:
items - List of menu items to add into
forMenuBar - if this is for the menubar

popupPersistImageParameters

public void popupPersistImageParameters()

makeParameterValues

private Hashtable makeParameterValues()

saveDataToLocalDisk

public void saveDataToLocalDisk()

popupSaveImageParameters

public void popupSaveImageParameters()

showSaveDialog

private void showSaveDialog()

newComponentError

private void newComponentError(String comp)

setStatus

private void setStatus(String msg)

removeNode

private void removeNode(Element node)

makeNewFolder

private Node makeNewFolder()

makeXmlTree

private void makeXmlTree()
Just creates an empty XmlTree


getFolders

private List getFolders()

doDeleteRequest

private void doDeleteRequest(Node node)

makePopupMenu

private boolean makePopupMenu(XmlTree theTree,
                              Element node,
                              JPopupMenu popup)
Create and popup a command menu for when the user has clicked on the given xml node.

Parameters:
theTree - The XmlTree object displaying the current xml document.
node - The xml node the user clicked on.
popup - The popup menu to put the menu items in.
Returns:
Did we add any items into the menu

moveParameterSet

public void moveParameterSet(Element parent,
                             Element newFolder)

doRename

private void doRename(Element node)

addToContents

private void addToContents(JComponent comp)
Remove the currently display gui and insert the given one.

Parameters:
comp - The new gui.

getDataSource

public DataSourceImpl getDataSource()

saveParameterSet

public Element saveParameterSet()