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

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
  • Constructor Details

    • IdvManager

      public IdvManager(IntegratedDataViewer idv)
      Construct this object with the given IDV
      Parameters:
      idv - The IDV
  • Method Details

    • 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()
      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
    • getInstallManager

      protected InstallManager getInstallManager()
    • 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
    • waitUntilDisplaysAreDone

      public static void waitUntilDisplaysAreDone(IdvUIManager uiManager, long timeToWait)
      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 count
      timeToWait - (milliseconds) elapsed time to wait for nothing to be active