ucar.unidata.idv
Class IdvManager

java.lang.Object
  extended by ucar.unidata.ui.WindowHolder
      extended by 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, JythonManager, ParamDefaultsEditor, ParamGroupsEditor, PluginManager, PublishManager, StateManager, ViewPanelImpl, VMManager

public abstract class IdvManager
extends WindowHolder
implements IdvConstants

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, window
 
Fields inherited from interface ucar.unidata.idv.IdvConstants
ARG_B64BUNDLE, 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_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, FILE_VMSTATE, 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_VERSION, ID_VIEWMANAGERS, ID_WINDOWS, INITIAL_PROBE_EARTHLOCATION, NULL_DATA_SELECTION, NULL_STRING, 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_HISTORY, PREF_LASTVERSION, PREF_LATLON_FORMAT, PREF_LOCALE, PREF_LOOKANDFEEL, PREF_MAXIMAGESIZE, 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_TIMEZONE, PREF_VERTICALCS, PREF_VERTICALUNIT, 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_JNLPCODEBASE, PROP_JNLPTEMPLATE, PROP_JNLPTITLE, PROP_LOADINGXML, PROP_OLDCONTROLDESCRIPTORS, PROP_ONEINSTANCEPORT, PROP_PREFERENCES, PROP_PROJ_NAME, PROP_RESOURCEFILES, PROP_SHOWDASHBOARD, PROP_SHOWDATATREE, PROP_SHOWFORMULAS, PROP_SHOWSPLASH, PROP_SPLASHICON, PROP_UI_DESKTOP, 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
IdvManager(IntegratedDataViewer idv)
          Construct this object with the given IDV
 
Method Summary
protected  ArgsManager getArgsManager()
          Wrapper method, calling into idv
protected  CollabManager getCollabManager()
          Wrapper method, calling into idv
 ColorTableManager getColorTableManager()
          Get the ColorTableManager
protected  DataManager getDataManager()
          Wrapper method, calling into idv
 IntegratedDataViewer getIdv()
          Get the IDV
protected  IdvChooserManager getIdvChooserManager()
          Wrapper method, calling into idv
protected  Class getIdvClass()
          Get the Class of the IDV.
 IdvProjectionManager getIdvProjectionManager()
          Get the projection manager
protected  IdvUIManager getIdvUIManager()
          Wrapper method, calling into idv
protected  ImageGenerator getImageGenerator()
          Wrapper method, calling into idv
protected  JythonManager getJythonManager()
          Wrapper method, calling into idv
 IdvPersistenceManager getPersistenceManager()
          Get the persistence manager
 IdvPreferenceManager getPreferenceManager()
          Get the preference manager
 boolean getProperty(String name, boolean dflt)
          Utility method to retrieve a boolean property from the idv properties.
 int getProperty(String name, int dflt)
          Utility method to retrieve an int property from the idv properties.
 String getProperty(String name, String dflt)
          Utility method to retrieve a String property from the idv properties.
protected  PublishManager getPublishManager()
          Wrapper method, calling into idv
protected  IdvResourceManager getResourceManager()
          Wrapper method, calling into idv
protected  StateManager getStateManager()
          Wrapper method, calling into idv
 StationModelManager getStationModelManager()
          Get the station model manager
protected  IdvObjectStore getStore()
          Wrapper method, calling into idv
protected  VMManager getVMManager()
          Wrapper method, calling into idv
static void logException(String msg, Throwable excp)
          Wrapper method, calling into idv
protected  void showNormalCursor()
          Wrapper method, calling into idv
protected  void showWaitCursor()
          Wrapper method, calling into idv
static void waitUntilDisplaysAreDone(IdvUIManager uiManager)
          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, setWindowTitle, shouldMakeDialog, show, show, showModal, toFront, windowIsClosing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdvManager

public IdvManager(IntegratedDataViewer idv)
Construct this object with the given IDV

Parameters:
idv - The IDV
Method Detail

getIdv

public IntegratedDataViewer getIdv()
Get the IDV

Returns:
The IDV

getIdvClass

protected Class getIdvClass()
Get the Class of the IDV.

Returns:
The Class of the IDV

getStore

protected IdvObjectStore getStore()
Wrapper method, calling into idv

Returns:
The store from the IDV

getResourceManager

protected IdvResourceManager getResourceManager()
Wrapper method, calling into idv

Returns:
The ResourceManager from the IDV

getStationModelManager

public StationModelManager getStationModelManager()
Get the station model manager

Returns:
The station model manager

getIdvProjectionManager

public IdvProjectionManager getIdvProjectionManager()
Get the projection manager

Returns:
The projection manager

getPersistenceManager

public IdvPersistenceManager getPersistenceManager()
Get the persistence manager

Returns:
The persistence manager

getPreferenceManager

public IdvPreferenceManager getPreferenceManager()
Get the preference manager

Returns:
The preference manager

getColorTableManager

public ColorTableManager getColorTableManager()
Get the ColorTableManager

Returns:
The color table manager

getIdvUIManager

protected IdvUIManager getIdvUIManager()
Wrapper method, calling into idv

Returns:
The ui manager from the IDV

getImageGenerator

protected ImageGenerator getImageGenerator()
Wrapper method, calling into idv

Returns:
The image generator from the IDV

getIdvChooserManager

protected IdvChooserManager getIdvChooserManager()
Wrapper method, calling into idv

Returns:
The chooser manager from the IDV

getJythonManager

protected JythonManager getJythonManager()
Wrapper method, calling into idv

Returns:
The jython manager from the IDV

getArgsManager

protected ArgsManager getArgsManager()
Wrapper method, calling into idv

Returns:
The args manager from the IDV

getVMManager

protected VMManager getVMManager()
Wrapper method, calling into idv

Returns:
The VM manager from the IDV

getPublishManager

protected PublishManager getPublishManager()
Wrapper method, calling into idv

Returns:
The Publish manager from the IDV

getStateManager

protected StateManager getStateManager()
Wrapper method, calling into idv

Returns:
The state manager from the IDV

getDataManager

protected DataManager getDataManager()
Wrapper method, calling into idv

Returns:
The data manager from the IDV

getCollabManager

protected CollabManager getCollabManager()
Wrapper method, calling into idv

Returns:
The collab manager from the IDV

logException

public static void logException(String msg,
                                Throwable excp)
Wrapper method, calling into idv

Parameters:
msg - The message
excp - The exception

showWaitCursor

protected void showWaitCursor()
Wrapper method, calling into idv


showNormalCursor

protected void showNormalCursor()
Wrapper method, calling into idv


getProperty

public boolean getProperty(String name,
                           boolean dflt)
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 property
dflt - The default value if the property is not found
Returns:
The given property or the dflt value

getProperty

public int getProperty(String name,
                       int dflt)
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 property
dflt - The default value if the property is not found
Returns:
The given property or the dflt value

getProperty

public String getProperty(String name,
                          String dflt)
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 property
dflt - The default value if the property is not found
Returns:
The given property or the dflt value

waitUntilDisplaysAreDone

public static void waitUntilDisplaysAreDone(IdvUIManager uiManager)
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