Package ucar.unidata.idv.control.multi
Class MultiDisplayHolder
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.idv.control.DisplayControlBase
ucar.unidata.idv.control.DisplayControlImpl
ucar.unidata.idv.control.multi.MultiDisplayHolder
- All Implemented Interfaces:
ActionListener,ItemListener,PropertyChangeListener,EventListener,HyperlinkListener,Sharable,DataChangeListener,DisplayControl,Prototypable,ControlListener,DisplayListener
A DisplayControl for station models
- Version:
- $Revision: 1.19 $
- Author:
- MetApps Development Team
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl
DisplayControlImpl.SideLegendLabel -
Field Summary
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, 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, 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_AVERAGEFields inherited from interface ucar.unidata.idv.DisplayControl
BOTTOM_LEGEND, DEFAULT_PROBEFORMAT, PREF_PREFIX, PREF_PROBEFORMAT, PREF_REMOVEONWINDOWCLOSE, PREF_SAMPLING_MODE, PREF_STANDALONE_REMOVEONCLOSE, PREF_STANDALONE_REMOVEONCLOSE_ASK, PROP_LEGENDICON, RASTERMODE_SHOWALL, RASTERMODE_SHOWNONRASTER, RASTERMODE_SHOWRASTER, SIDE_LEGEND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddControlsToMenu(JMenu newMenu, DisplayGroup displayGroup) Add the display control entries to the menuvoidaddFieldToChartWrapper(ChartWrapper chartWrapper) Add fieldvoidaddGroup(DisplayGroup displayGroup) Add the groupvoidaddGroupNewMenu(DisplayGroup displayGroup, JMenu newMenu) Add the new menu items for the given group.voidaddStationDisplay(NamedStationTable stationTable, ControlDescriptor cd, DisplayGroup displayGroup) Add the new station location display controlvoidSome component changed.protected voidcreateComponent(String type, DisplayGroup displayGroup) Create the componentvoidcreateComponentIn(Object[] args) Utility to create a component.voidCreate the component.voidCreate the component.createDisplayComponent(String addType, List dataChoices, DisplayGroup displayGroup) Create the display componentvoidCreate the display group.createDisplayGroup(String groupName) Find or creaate the groupprotected IdvWindowOverride base class method to create a new window.protected ContainerMake the UI contents for this control.protected JMenuBarMake the menu bar.voiddoRemove()Remove the display controlprotected JInternalFramefindFrameForGroup(DisplayGroup displayGroup) Find the internal frame for the given groupprotected intfindIdxForGroup(DisplayGroup displayGroup) Find the tab index for the groupformatValue(double v) A utility to format a value using the display conventionsGet te display group in the current tabgetDisplayGroup(String groupName) Find the display group by nameGet the DisplayGroups property.protected DisplayTreeReturn the display treeprotected voidgetEditMenuItems(List items, boolean forMenuBar) Add the relevant edit menu items into the listprotected voidgetFileMenuItems(List items, boolean forMenuBar) Add the relevant file menu items into the listGet the AddType property.voidgetLegendLabels(List labels, int legendType) Get the extra label used for the legend.protected StringGet the component name.Instantiate the list of prototype chartsprotected StringGet the component name.booleanGet the UseDesktop property.protected voidgetViewMenuItems(List items, boolean forMenuBar) Add the relevant edit menu items into the listprotected voidDon't close the windowvoidimportDisplayControl(DisplayControlImpl displayControl) Import the given display control into mebooleanCall to help make this kind of Display Control; also calls code to made the Displayable (empty of data thus far).voidinitAfterUnPersistence(ControlContext vc, Hashtable properties) Called by theIntegratedDataViewerto initialize after this control has been unpersistedvoidinitDone()Gets called when all initialization is completevoidinitWindow(IdvWindow window) Initialize the window.protected voidloadData()Load data into theDisplayable.voidmakeControlsMenu(JMenu controlsMenu, DisplayGroup displayGroup) Populate the menuvoidmakeLocationsMenu(JMenu locationsMenu, DisplayGroup displayGroup) Make the menu for adding new location displaysvoidnewName(DisplayGroup displayGroup, String oldName) The group has a new namevoidremoveDisplayables(List displayables) Remove the list of displayablesvoidremoveDisplayComponent(DisplayComponent displayComponent) Remove the component.voidremoveDisplayGroup(DisplayGroup displayGroup) Remove the display groupvoidsetDisplayGroups(List value) Set the DisplayGroups property.voidsetInitialComponentClass(String value) Set the AddType property.voidsetTimeInMainDisplay(double timeValue) User clicked on a chartvoidSet the title of the window if it has been created.voidsetUseDesktop(boolean value) Set the UseDesktop property.protected booleanA hook to allow derived classes to tell us to add this as an animation listenerprotected booleanShould this show up in the list of displaysvoidshowDisplayComponent(DisplayComponent displayComponent) Show the tab the group is invoidShow the manage dialogprotected voidtimeChanged(Real time) Respond to a timeChange eventvoidtoggleUI()Switch between tabbed pane and internal framevoidviewManagerDestroyed(ViewManager viewManager) Called when a ViewManager which holds the display is destoryed We don't remove ourselves here because this DisplayControl can stand alone.Methods inherited from class ucar.unidata.idv.control.DisplayControlImpl
actionPerformed, 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, applyForecastHourMacro, applyLineWidth, applyPreferences, applyProperties, applyProperties, applyPropertyValues, applyRange, applySelectRange, applySkipFactor, applySmoothing, applyTextureQuality, applyTimeRange, applyZPosition, boundsClose, canBeDocked, canDoProgressiveResolution, canExportData, canSaveDataInCache, captureWindow, centerOnDisplay, changeColorUnit, changeDisplayUnit, checkBoundsChange, checkFlag, checkIfDataOk, checkImageSize, clearDataInstance, clearPrototype, clearViewManagers, close, colorUnitChanged, controlChanged, convertColorRange, convertRange, createDisplayListDisplayable, dataChanged, deactivateDisplays, debug, displayableToFront, displayChanged, displayControlFailed, displayUnitChanged, doApplyProperties, doExport, doInitialUpdateLegendAndList, doMakeBottomLegendComponent, doMakeChangeColorMenu, doMakeChangeColorMenu, doMakeChangeParameterMenuItem, doMakeColorControl, doMakeColorControl, doMakeColorScales, doMakeDataInstance, doMakeMenuBarMenus, doMakePointSizeWidget, doMakeRemoveControl, doMakeSideLegendComponent, doMakeSkipFactorSlider, doMakeSmoothingWidget, doMakeTextureSlider, doMakeVisibilityControl, doMakeWidgetComponent, doMakeWindow, doMakeZPositionSlider, exportDisplayedData, 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, getColorUnit, getColorUnitName, getColorWidgetLabel, getComponentHolder, getContents, getContourInfo, getControlChangeSleepTime, getControlContext, getControlMenus, getControlWidgets, getCursorReadout, getCursorReadoutInner, getCursorReadoutInner, getData, getDataChoice, getDataChoices, getDataForDisplayList, getDataInstance, getDataInstance, getDataProjection, getDataProjectionForMenu, getDataProjectionLabel, getDataSelection, getDataSources, getDataTimeRange, getDataTimeRange, getDataTimeSet, getDebugDetails, getDefaultColorScaleInfo, getDefaultDisplayListTemplate, getDefaultDistanceUnit, getDefaultFastRendering, getDefaultSamplingMode, getDefaultSamplingModeValue, getDefaultView, getDefaultViewDescriptor, getDefaultViewManager, getDetailsContents, getDisplayAltitudeType, getDisplayCategory, getDisplayCenter, getDisplayConventions, getDisplayedData, getDisplayId, getDisplayInfos, getDisplayListColor, getDisplayListData, getDisplayListDisplayable, getDisplayListTemplate, getDisplayMaster, getDisplayName, getDisplayScale, getDisplayUnit, getDisplayUnit, getDisplayUnitName, getDisplayVisibility, getDoCursorReadout, getEditMenuItems, getExpandedInTabs, getExtraLabelTemplate, getExtraLegendComponent, getExtraMenus, getFileMenuItems, getGraphicsConfiguration, getGrid, getGrid, getHadDataChoices, getHaveInitialized, getHelpIds, getHelpMenuItems, getId, getIdv, getImage, getImage, getInitDataChoices, getInitialColorTable, getInitialFastRendering, getInitialRange, getInitialZPosition, getInternalAnimation, getInternalAnimation, getIsProgressiveResolution, getIsRaster, 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, getRawDataUnit, getRequestProperties, getSamplingModeName, getSamplingModeValue, getSamplingModeValue, getSaveMenuItems, 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, hasForecastHourMacro, hasMapProjection, hasTimeMacro, haveDataTimes, haveParameterDefaults, hide, hyperlinkUpdate, inGlobeDisplay, init, init, init, initAfterUnPersistence, initAsPrototype, initAsTemplate, initBasic, initializeWithNewData, isDisplay3D, isDisplayUnitAlsoColorUnit, isGuiShown, isInitDone, isInTransectView, isInViewManager, itemStateChanged, loadDataFromViewBounds, makeChangeColorMenuItems, makeLegendLabel, makeLockButton, makeRemoveButton, moveTo, notifyViewManagersOfChange, parseProperties, popup, popupDataDialog, popupDataDialog, popupDataDialog, processRequestProperties, projectionChanged, propertyChange, putTransientProperty, reallySetAttributeFlags, receiveShareData, redoGuiLayout, reloadDataSource, reloadDataSourceInThread, relocateDisplay, relocateDisplay, removeDataChoice, removeDisplayable, removeDisplayables, removeDisplayables, removeOnWindowClose, removePropertyChangeListener, resetData, resetDimness, resetViewManager, revertToDefaultColorTable, revertToDefaultColorTable, revertToDefaultRange, revertToDefaultRange, saveAsFavorite, saveAsParameterDefaults, saveAsPrototype, saveAsTemplate, saveDataChoiceInCache, saveImage, saveProjection, selectDataChoices, setAnimationInfo, setAnimationSet, setAttributeFlags, setCachedData, setCanDoRemoveAll, setCategories, setCollapseLegend, setColor, setColorBrighter, setColorDimmer, setColorDimness, setColorScaleInfo, setColorScaleVisible, setColorTable, setColorTable, setColorTableName, setColorUnit, setColorUnitName, setComponentHolder, setContents, setContourInfo, setContourInfoParams, setData, setData, setDataChoices, setDataInstance, setDataInstances, setDataSelection, setDataTimeRange, setDefaultSamplingMode, setDefaultView, setDisplayableVisibility, setDisplayableVisiblity, setDisplayActive, setDisplayAreaSubset, setDisplayCategory, setDisplayId, setDisplayInactive, setDisplayListColor, setDisplayListColor, setDisplayListProperties, setDisplayListTemplate, setDisplayListTimeZone, setDisplayName, setDisplayUnit, setDisplayUnitName, setDisplayVisibility, setDoCursorReadout, setExpandedInTabs, setExtraLabelTemplate, setHadDataChoices, setHelpUrl, setId, setInitDataChoices, setInitialSettings, setInitialViewManager, setIsProgressiveResolution, setIsRaster, setIsTimeDriver, setLabelAsPreference, setLegendBackground, setLegendForeground, setLegendLabel, setLegendLabelTemplate, setLineWidth, setLockVisibilityToggle, setMainPanelDimensions, setMainPanelSize, setMakeWindow, setMatchDisplayRegion, setName, setNameFromUser, setNewColorUnit, setNewDisplayUnit, setNoteText, setOkToFireEvents, setOriginalDataChoicesLabel, setParamName, setPersistedVisadData, setPointSize, setProjectionInView, setProjectionInView, setProjectionInView, setProperty, setRange, setRange, setSelectRange, setSelectRangeEnabled, setSettingsDisplayUnit, setSharedColorScaleInfo, setShowInDisplayList, setShowInLegend, setShowInTabs, setShowNoteText, setSkipValue, setSmoothingFactor, setSmoothingType, setTemplateName, setTextureQuality, setUnitForColor, setUseFastRendering, setUsesTimeDriver, setUseTimesInAnimation, setVersion, setViewer, setViewManagerClassNames, setVisbilityAnimationPause, setWindowSize, setWindowVisible, setWindowX, setWindowY, setZPosition, setZPosition, shouldAddControlListener, 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, updateLegendLabel, updateLockButton, useSmoothingFactor, useZPosition, viewManagerChanged, viewpointChanged, writeTestArchive, xxxsetDisplayActive, zSliderChangedMethods inherited from class ucar.unidata.idv.control.DisplayControlBase
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getLabeledReal, getLevelReal, getScreenCenter, getSelectedStation, getTmpProperty, isLeftButtonDown, logException, logException, makeEarthLocation, putTmpProperty, removeTmpProperty, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessageMethods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ucar.unidata.idv.DisplayControl
getTmpProperty, putTmpProperty, removeTmpPropertyMethods inherited from interface ucar.unidata.collab.Sharable
getReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTime
-
Constructor Details
-
MultiDisplayHolder
public MultiDisplayHolder()Default ctor
-
-
Method Details
-
initDone
public void initDone()Gets called when all initialization is complete- Overrides:
initDonein classDisplayControlImpl
-
init
Call to help make this kind of Display Control; also calls code to made the Displayable (empty of data thus far). This method is called from inside DisplayControlImpl.init(several args).- Overrides:
initin classDisplayControlImpl- Parameters:
choices- the DataChoice of the moment.- Returns:
- true if successful
- Throws:
VisADException- some problem creating a VisAD objectRemoteException- some problem creating a remote VisAD object
-
initAfterUnPersistence
Called by theIntegratedDataViewerto initialize after this control has been unpersisted- Specified by:
initAfterUnPersistencein interfaceDisplayControl- Overrides:
initAfterUnPersistencein classDisplayControlImpl- Parameters:
vc- The context in which this control existsproperties- Properties that may hold things
-
componentChanged
public void componentChanged()Some component changed. Update the manage tree. -
showDisplayTree
public void showDisplayTree()Show the manage dialog -
getDisplayTree
Return the display tree- Returns:
- the display tree
-
getLegendLabels
Get the extra label used for the legend.- Overrides:
getLegendLabelsin classDisplayControlImpl- Parameters:
labels- labels to append tolegendType- The type of legend, BOTTOM_LEGEND or SIDE_LEGEND
-
findFrameForGroup
Find the internal frame for the given group- Parameters:
displayGroup- The group- Returns:
- The frame or null if none found
-
findIdxForGroup
Find the tab index for the group- Parameters:
displayGroup- The group- Returns:
- The tab index or -1
-
formatValue
A utility to format a value using the display conventions- Parameters:
v- The value- Returns:
- The formatted value
-
newName
The group has a new name- Parameters:
displayGroup- groupoldName- the old name
-
toggleUI
public void toggleUI()Switch between tabbed pane and internal frame -
getViewMenuItems
Add the relevant edit menu items into the list- Overrides:
getViewMenuItemsin 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
-
getEditMenuItems
Add the relevant edit menu items into the list- Overrides:
getEditMenuItemsin 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
-
createComponentIn
Utility to create a component. The args holds the component type and the display group- Parameters:
args- args
-
getLowerComponentName
Get the component name.- Returns:
- tab or frame
-
getUpperComponentName
Get the component name.- Returns:
- Tab or Frame
-
createComponentInNewTab
Create the component.- Parameters:
type- type of component
-
createDisplayGroup
public void createDisplayGroup()Create the display group. -
createComponentInCurrentTab
Create the component.- Parameters:
type- type of component
-
createComponent
Create the component- Parameters:
type- type of componentdisplayGroup- The display group
-
addFieldToChartWrapper
Add field- Parameters:
chartWrapper- chart
-
getPrototypes
Instantiate the list of prototype charts- Returns:
- List of ChartWrapper objects that serves as prototypes.
-
addControlsToMenu
Add the display control entries to the menu- Parameters:
newMenu- Menu to add todisplayGroup- The group to add the display control to
-
makeControlsMenu
Populate the menu- Parameters:
controlsMenu- menu to populatedisplayGroup- Group to add the new display to
-
makeLocationsMenu
Make the menu for adding new location displays- Parameters:
locationsMenu- menu to add todisplayGroup- group to add new display to
-
createIdvWindow
Override base class method to create a new window. We make the new IdvWindow as a main window.- Overrides:
createIdvWindowin classDisplayControlImpl- Returns:
- The new window
-
initWindow
Initialize the window. We add the status bar to it.- Overrides:
initWindowin classDisplayControlImpl- Parameters:
window- The window to init
-
handleWindowClosing
protected void handleWindowClosing()Don't close the window- Overrides:
handleWindowClosingin classDisplayControlImpl
-
addStationDisplay
public void addStationDisplay(NamedStationTable stationTable, ControlDescriptor cd, DisplayGroup displayGroup) Add the new station location display control- Parameters:
stationTable- The locationscd- The control descriptordisplayGroup- The group to add the new display to
-
getFileMenuItems
Add the relevant file menu items into the list- Overrides:
getFileMenuItemsin 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
-
importDisplayControl
Import the given display control into me- Parameters:
displayControl- The control to import
-
getCurrentDisplayGroup
Get te display group in the current tab- Returns:
- chaart group in the current tab
-
showDisplayComponent
Show the tab the group is in- Parameters:
displayComponent- The component to show
-
addGroupNewMenu
Add the new menu items for the given group.- Parameters:
displayGroup- The group to add the display tonewMenu- The menu
-
doMakeMenuBar
Make the menu bar. Add in the system menu bar and make the DisplayControl menus as a sub-menu.- Overrides:
doMakeMenuBarin classDisplayControlImpl- Returns:
- menu bar
-
createDisplayComponent
public DisplayComponent createDisplayComponent(String addType, List dataChoices, DisplayGroup displayGroup) Create the display component- Parameters:
addType- The thing to adddataChoices- datadisplayGroup- group for display component- Returns:
- new display component
-
addGroup
Add the group- Parameters:
displayGroup- The display group
-
createDisplayGroup
Find or creaate the group- Parameters:
groupName- group name- Returns:
- group
-
getDisplayGroup
Find the display group by name- Parameters:
groupName- name- Returns:
- display group or null
-
shouldAddAnimationListener
protected boolean shouldAddAnimationListener()A hook to allow derived classes to tell us to add this as an animation listener- Overrides:
shouldAddAnimationListenerin classDisplayControlImpl- Returns:
- Add as animation listener
-
timeChanged
Respond to a timeChange event- Overrides:
timeChangedin classDisplayControlImpl- Parameters:
time- new time
-
setTimeInMainDisplay
public void setTimeInMainDisplay(double timeValue) User clicked on a chart- Parameters:
timeValue- The time
-
doMakeContents
Make the UI contents for this control.- Overrides:
doMakeContentsin classDisplayControlImpl- Returns:
- UI container
- Throws:
RemoteException- Java RMI errorVisADException- VisAD Error
-
viewManagerDestroyed
Called when a ViewManager which holds the display is destoryed We don't remove ourselves here because this DisplayControl can stand alone.- Specified by:
viewManagerDestroyedin interfaceDisplayControl- Overrides:
viewManagerDestroyedin classDisplayControlImpl- Parameters:
viewManager- The view manager that was destroyed- Throws:
RemoteException- Java RMI errorVisADException- VisAD error
-
doRemove
Remove the display control- Specified by:
doRemovein interfaceDisplayControl- Overrides:
doRemovein classDisplayControlImpl- Throws:
RemoteException- On badnessVisADException- On badness
-
removeDisplayComponent
Remove the component.- Parameters:
displayComponent- The component
-
removeDisplayables
Remove the list of displayables- Parameters:
displayables- List of displayables to remove from the main display
-
removeDisplayGroup
Remove the display group- Parameters:
displayGroup- The display group
-
loadData
protected void loadData()Load data into theDisplayable. This is called fromDisplayControlImpl.setData(DataChoice)and whenever the projection changes. Subclasses should override this to do whatever they need to. This implementation uses aPointDataInstanceto manager the data.- See Also:
-
setDisplayGroups
Set the DisplayGroups property.- Parameters:
value- The new value for DisplayGroups
-
getDisplayGroups
Get the DisplayGroups property.- Returns:
- The DisplayGroups
-
setTitle
Set the title of the window if it has been created.- Overrides:
setTitlein classDisplayControlImpl- Parameters:
title- The title
-
setInitialComponentClass
Set the AddType property.- Parameters:
value- The new value for AddType
-
getInitialComponentClass
Get the AddType property.- Returns:
- The AddType
-
setUseDesktop
public void setUseDesktop(boolean value) Set the UseDesktop property.- Parameters:
value- The new value for UseDesktop
-
getUseDesktop
public boolean getUseDesktop()Get the UseDesktop property.- Returns:
- The UseDesktop
-
shouldShowInDisplayList
protected boolean shouldShowInDisplayList()Should this show up in the list of displays- Returns:
- Should this be added to the menu list
-