Package ucar.unidata.idv
Class IdvManager
java.lang.Object
ucar.unidata.ui.WindowHolder
ucar.unidata.idv.IdvManager
- All Implemented Interfaces:
ActionListener,EventListener,IdvConstants
- Direct Known Subclasses:
AliasEditor,ArgsManager,AutoDisplayEditor,CollabManager,DisplayConventions,IdvChooserManager,IdvPersistenceManager,IdvPreferenceManager,IdvProjectionManager,IdvResourceManager,IdvUIManager,ImageGenerator,InstallManager,JythonManager,MacBridge,ParamDefaultsEditor,ParamGroupsEditor,PluginManager,PublishManager,ResourceViewer,StateManager,ViewPanelImpl,VMManager
This is a base class for the different IDV managers (e.g.,
IdvUIManager. It provides a couple
of utilities.- Author:
- IDV development team
-
Field Summary
Fields inherited from class ucar.unidata.ui.WindowHolder
contents, dialog, frame, windowFields inherited from interface ucar.unidata.idv.IdvConstants
ARG_B64BUNDLE, ARG_B64ISL, ARG_BUNDLE, ARG_CATALOG, ARG_CHOOSER, ARG_CLEARDEFAULT, ARG_CODE, ARG_CONNECT, ARG_CURRENTTIME, ARG_DATA, ARG_DEBUG, ARG_DEFAULT, ARG_DISPLAY, ARG_DXML, ARG_FIXEDTIME, ARG_HELP, ARG_IMAGE, ARG_IMAGESERVER, ARG_INSTALLPLUGIN, ARG_ISLFILE, ARG_ISLINTERACTIVE, ARG_LISTRESOURCES, ARG_MAINCLASS, ARG_MOVIE, ARG_MSG_DEBUG, ARG_MSG_RECORD, ARG_NODEFAULT, ARG_NOERRORSINGUI, ARG_NOGUI, ARG_NOONEINSTANCE, ARG_NOPLUGINS, ARG_NOPREF, ARG_ONEINSTANCEPORT, ARG_PLUGIN, ARG_PORT, ARG_PRINTJNLP, ARG_PROPERTIES, ARG_SCRIPT, ARG_SERVER, ARG_SETFILES, ARG_SITEPATH, ARG_TEMPLATE, ARG_TEST, ARG_TESTEVAL, ARG_TRACE, ARG_TRACEONLY, ARG_USERPATH, DEFAULT_DATE_FORMAT, DEFAULT_DOCPATH, DEFAULT_TIMEZONE, FILTER_CPT, FILTER_ISL, FILTER_JNLP, FILTER_XIDV, FILTER_XIDVZIDV, FILTER_XML, FILTER_ZIDV, ID_COMMANDSTORUN, ID_DATASOURCES, ID_DISPLAYCONTROLS, ID_IDV, ID_JYTHON, ID_MESSAGE, ID_MISCHASHTABLE, ID_NCIDV_VERSION, ID_VERSION, ID_VIEWMANAGERS, ID_WINDOWS, INITIAL_PROBE_EARTHLOCATION, NULL_DATA_SELECTION, NULL_STRING, PREF_APPEARANCEMODE, PREF_ARCHIVEDIR, PREF_ARCHIVENAME, PREF_AUTODISPLAYS_ENABLE, PREF_AUTODISPLAYS_SHOWGUI, PREF_AUTOSELECTDATA, PREF_CACHESIZE, PREF_CONTROLSINTABS, PREF_DATAPREFIX, PREF_DATE_FORMAT, PREF_DISTANCEUNIT, PREF_DOCACHE, PREF_EMBEDDATACHOOSERINDASHBOARD, PREF_EMBEDFIELDSELECTORINDASHBOARD, PREF_EMBEDLEGENDINDASHBOARD, PREF_EMBEDQUICKLINKSINDASHBOARD, PREF_EVENT_KEYBOARDMAP, PREF_EVENT_MOUSEMAP, PREF_EVENT_WHEELMAP, PREF_FAST_RENDER, PREF_FIELD_CACHETHRESHOLD, PREF_FILEREADDIR, PREF_FILEWRITEDIR, PREF_GEOMETRY_BY_REF, PREF_HISTORY, PREF_IMAGE_BY_REF, PREF_LARGE_REMOTE_DATA_WARN, PREF_LASTVERSION, PREF_LATLON_FORMAT, PREF_LEGEND_SHOWICONS, PREF_LOCALE, PREF_LOOKANDFEEL, PREF_MAXIMAGESIZE, PREF_MEMORY, PREF_NPOT_IMAGE, PREF_OPEN_ASK, PREF_OPEN_MERGE, PREF_OPEN_REMOVE, PREF_PROJ_LIST, PREF_SAMPLINGMODE, PREF_SHOWCONTROLWINDOW, PREF_SHOWDASHBOARD, PREF_SHOWDECODEDIALOG, PREF_SHOWHIDDENFILES, PREF_SHOWQUITCONFIRM, PREF_SITEPATH, PREF_THREADS_DATA, PREF_THREADS_RENDER, PREF_TIMEZONE, PREF_VERTICALCS, PREF_VERTICALUNIT, PREF_WINDOW_SHOWTOOLBAR, PREF_ZIDV_ASK, PREF_ZIDV_DIRECTORY, PREF_ZIDV_SAVETOTMP, PROP_3DMODE, PROP_ABOUTTEXT, PROP_APPRESOURCEPATH, PROP_CHOOSERS, PROP_CHOOSERS_ALL, PROP_CONTROLDESCRIPTORS, PROP_CONTROLDESCRIPTORS_ALL, PROP_DATAHOLDERBOUNDS, PROP_DEFAULTLOCATIONS, PROP_DISPLAYLIST_GROUP, PROP_FIXFILELOCKUP, PROP_JNLPCODEBASE, PROP_JNLPTEMPLATE, PROP_JNLPTITLE, PROP_LOADINGXML, PROP_MAP_GLOBE_LEVEL, PROP_MAP_MAP_LEVEL, PROP_MINIMUMFRAMECYCLETIME, PROP_MONITORPORT, PROP_OLDCONTROLDESCRIPTORS, PROP_ONEINSTANCEPORT, PROP_PREFERENCES, PROP_PROJ_NAME, PROP_RESOURCEFILES, PROP_SHOWCLOCK_DASH, PROP_SHOWCLOCK_VIEW, PROP_SHOWDASHBOARD, PROP_SHOWDATATREE, PROP_SHOWFORMULAS, PROP_SHOWSPLASH, PROP_SPLASHICON, PROP_UI_DESKTOP, PROP_USE_DISPLAYAREA, PROP_USE_TIMEDRIVER, PROP_VERSIONFILE, PROP_WINDOW_SCREENSIZEOFFSET, PROP_WINDOW_SIZEHEIGHT, PROP_WINDOW_SIZEWIDTH, PROP_WINDOW_USESCREENSIZE, SUFFIX_BAT, SUFFIX_CPT, SUFFIX_ISL, SUFFIX_JNLP, SUFFIX_RBI, SUFFIX_SH, SUFFIX_XIDV, SUFFIX_XML, SUFFIX_ZIDV -
Constructor Summary
ConstructorsConstructorDescriptionConstruct this object with the given IDV -
Method Summary
Modifier and TypeMethodDescriptionprotected ArgsManagerWrapper method, calling into idvprotected CollabManagerWrapper method, calling into idvGet theColorTableManagerprotected DataManagerWrapper method, calling into idvgetIdv()Get the IDVprotected IdvChooserManagerWrapper method, calling into idvprotected ClassGet the Class of the IDV.Get the projection managerprotected IdvUIManagerWrapper method, calling into idvprotected ImageGeneratorWrapper method, calling into idvprotected InstallManagerprotected JythonManagerWrapper method, calling into idvGet the persistence managerGet the preference managerbooleangetProperty(String name, boolean dflt) Utility method to retrieve a boolean property from the idv properties.intgetProperty(String name, int dflt) Utility method to retrieve an int property from the idv properties.getProperty(String name, String dflt) Utility method to retrieve a String property from the idv properties.protected PublishManagerWrapper method, calling into idvprotected IdvResourceManagerWrapper method, calling into idvprotected StateManagerWrapper method, calling into idvGet the station model managerprotected IdvObjectStoregetStore()Wrapper method, calling into idvprotected VMManagerWrapper method, calling into idvstatic voidlogException(String msg, Throwable excp) Wrapper method, calling into idvprotected voidWrapper method, calling into idvprotected voidWrapper method, calling into idvstatic voidwaitUntilDisplaysAreDone(IdvUIManager uiManager) A utility method that will wait until all displays are finished being created.static voidwaitUntilDisplaysAreDone(IdvUIManager uiManager, long timeToWait) A utility method that will wait until all displays are finished being created.Methods inherited from class ucar.unidata.ui.WindowHolder
actionPerformed, close, doMakeContents, getContents, getDialog, getFrame, getWindow, getWindowTitle, isShowing, removeAll, setMenuBar, setWindowTitle, shouldMakeDialog, show, show, showModal, toFront, windowIsClosing
-
Constructor Details
-
IdvManager
Construct this object with the given IDV- Parameters:
idv- The IDV
-
-
Method Details
-
getIdv
Get the IDV- Returns:
- The IDV
-
getIdvClass
Get the Class of the IDV.- Returns:
- The Class of the IDV
-
getStore
Wrapper method, calling into idv- Returns:
- The store from the IDV
-
getResourceManager
Wrapper method, calling into idv- Returns:
- The ResourceManager from the IDV
-
getStationModelManager
Get the station model manager- Returns:
- The station model manager
-
getIdvProjectionManager
Get the projection manager- Returns:
- The projection manager
-
getPersistenceManager
Get the persistence manager- Returns:
- The persistence manager
-
getPreferenceManager
Get the preference manager- Returns:
- The preference manager
-
getColorTableManager
Get theColorTableManager- Returns:
- The color table manager
-
getIdvUIManager
Wrapper method, calling into idv- Returns:
- The ui manager from the IDV
-
getImageGenerator
Wrapper method, calling into idv- Returns:
- The image generator from the IDV
-
getIdvChooserManager
Wrapper method, calling into idv- Returns:
- The chooser manager from the IDV
-
getJythonManager
Wrapper method, calling into idv- Returns:
- The jython manager from the IDV
-
getArgsManager
Wrapper method, calling into idv- Returns:
- The args manager from the IDV
-
getVMManager
Wrapper method, calling into idv- Returns:
- The VM manager from the IDV
-
getPublishManager
Wrapper method, calling into idv- Returns:
- The Publish manager from the IDV
-
getStateManager
Wrapper method, calling into idv- Returns:
- The state manager from the IDV
-
getDataManager
Wrapper method, calling into idv- Returns:
- The data manager from the IDV
-
getInstallManager
-
getCollabManager
Wrapper method, calling into idv- Returns:
- The collab manager from the IDV
-
logException
Wrapper method, calling into idv- Parameters:
msg- The messageexcp- The exception
-
showWaitCursor
protected void showWaitCursor()Wrapper method, calling into idv -
showNormalCursor
protected void showNormalCursor()Wrapper method, calling into idv -
getProperty
Utility method to retrieve a boolean property from the idv properties. If the property does not exists return the given default value.- Parameters:
name- The name of the propertydflt- The default value if the property is not found- Returns:
- The given property or the dflt value
-
getProperty
Utility method to retrieve an int property from the idv properties. If the property does not exists return the given default value.- Parameters:
name- The name of the propertydflt- The default value if the property is not found- Returns:
- The given property or the dflt value
-
getProperty
Utility method to retrieve a String property from the idv properties. If the property does not exists return the given default value.- Parameters:
name- The name of the propertydflt- The default value if the property is not found- Returns:
- The given property or the dflt value
-
waitUntilDisplaysAreDone
A utility method that will wait until all displays are finished being created.- Parameters:
uiManager- The ui manager. We use this to access the wait cursor count
-
waitUntilDisplaysAreDone
A utility method that will wait until all displays are finished being created. This looks at the DisplayControls, data sources, global wait cursor count, the visad thread pool and looks at any active java3d threads- Parameters:
uiManager- The ui manager. We use this to access the wait cursor counttimeToWait- (milliseconds) elapsed time to wait for nothing to be active
-