Package org.gvsig.app

Interface ApplicationManager

All Superinterfaces:
org.gvsig.tools.util.GetItemByKey<String,Object>, org.gvsig.tools.util.PropertiesSupport, org.gvsig.andami.ui.mdiFrame.ThreadSafeDialogs, org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
All Known Implementing Classes:
DefaultApplicationManager

public interface ApplicationManager extends org.gvsig.andami.ui.mdiFrame.ThreadSafeDialogs, org.gvsig.tools.util.PropertiesSupport, org.gvsig.tools.util.GetItemByKey<String,Object>
  • Method Details

    • getVersion

      Version getVersion()
      Return the version of the application.
      Returns:
      the version
    • close

      void close(boolean quietly)
      Close the application.
      Parameters:
      quietly -
    • getActiveWindow

      org.gvsig.andami.ui.mdiManager.IWindow getActiveWindow()
      Return the active window, IWindow, in the application.
      Returns:
      the active window
    • getCurrentProject

      Project getCurrentProject()
      Return the project that is loaded and in use in the application.
      Returns:
      the project
    • getCurrentLayer

      org.gvsig.fmap.mapcontext.layers.FLayer getCurrentLayer()
    • getActiveDocument

      Document getActiveDocument()
      Returns the active document of the application or null if there is no active document.
      Returns:
      the active document
    • getActiveDocument

      Document getActiveDocument(String documentTypeName)
      Returns the active document of the application that is of the requested type or null if there is no active document or the active document is not of the requested type.
      Parameters:
      documentTypeName - , type name of the document requested.
      Returns:
      the active document
    • getActiveDocument

      Document getActiveDocument(Class<? extends Document> documentClass)
      Returns the active document of the application that is of the requested type or null if there is no active document or the active document is not of the requested type.
      Parameters:
      documentClass - , class of the document requested.
      Returns:
      the active document
    • getActiveWindow

      org.gvsig.andami.ui.mdiManager.IWindow getActiveWindow(Class<? extends Document> documentClass)
    • getActiveComponent

      JComponent getActiveComponent(Class<? extends Document> documentClass)
      Returns the JComponent associated to the active document for the specified type of document. If not is active the specified type of document return null.
      Parameters:
      documentClass -
      Returns:
      the component associated to the active document of type documentClass
    • getDocumentWindow

      IDocumentWindow getDocumentWindow(Document document)
      Returns the window associated with the document passed as parameter or null if there is no window associated with the document.
      Parameters:
      document - to search the window
      Returns:
      window associated to the document
    • getPreferences

      PreferencesNode getPreferences()
      Return the root of the nodes of preferences in the application.
      Returns:
      the root of preferences.
    • getPreferences

      PreferencesNode getPreferences(String nodeName)
      Search and return the node of preferences required as nodeName.
      Parameters:
      nodeName - , name of the node to return
      Returns:
      the preferences node requested
    • getArguments

      org.gvsig.andami.Arguments getArguments()
      Return the arguments passed to the application in the command line
      Returns:
      arguments
    • getFromClipboard

      String getFromClipboard()
      Get the value of the system clipboard as a string.
      Returns:
      the clipboard value
    • putInClipboard

      void putInClipboard(String data)
      Put the string value passed as parameter in the clipboard of the system.
      Parameters:
      data - to put in the clipboard.
    • getCRS

      org.gvsig.crs.projection.lib.Projection getCRS(String code)
      Obtain the projection associated by the code of projection Passed as parameter. If passed code of projection it not a valid projection code null is returned.
      Parameters:
      code - of the projection requested
      Returns:
      the requested projection or null
    • getDataManager

      org.gvsig.fmap.dal.DataManager getDataManager()
      Utility method to obtain the DataManager used in the application at this moment.
      Returns:
      the DataManager
    • getProjectManager

      ProjectManager getProjectManager()
      Utility method to obtain the ProjectManager used in the application at this moment.
      Returns:
      the ProjectManager
    • getUIManager

      org.gvsig.andami.ui.mdiManager.MDIManager getUIManager()
      Utility method to obtain the UIManager used in the application at this moment.
      Returns:
      the UIManager
    • getGeometryManager

      org.gvsig.fmap.geom.GeometryManager getGeometryManager()
      Utility method to obtain the GeometryManager used in the application at this moment.
      Returns:
      the GeometryManager
    • getPersistenceManager

      org.gvsig.tools.persistence.PersistenceManager getPersistenceManager()
      Utility method to obtain the PersistenceManager used in the application at this moment.
      Returns:
      the PersistenceManager
    • getDisposableManager

      org.gvsig.tools.dispose.DisposableManager getDisposableManager()
      Utility method to obtain the DisposableManager used in the application at this moment.
      Returns:
      the DisposableManager
    • getDynObjectManager

      org.gvsig.tools.dynobject.DynObjectManager getDynObjectManager()
      Utility method to obtain the DynObjectManager used in the application at this moment.
      Returns:
      the DynObjectManager
    • getExtensionPointManager

      org.gvsig.tools.extensionpoint.ExtensionPointManager getExtensionPointManager()
      Utility method to obtain the ExtensionPointManager used in the application at this moment.
      Returns:
      the ExtensionPointManager
    • getMapContextManager

      org.gvsig.fmap.mapcontext.MapContextManager getMapContextManager()
      Utility method to obtain the MapContextManager used in the application at this moment.
      Returns:
      the MapContextManager
    • getAbout

      org.gvsig.about.AboutManager getAbout()
      Utility method to obtain the AboutManager used in the application at this moment.
      Returns:
      the AboutManager
    • getDataTypesManager

      org.gvsig.tools.dataTypes.DataTypesManager getDataTypesManager()
    • getIconThemeManager

      org.gvsig.tools.swing.icontheme.IconThemeManager getIconThemeManager()
      Utility method to obtain the IconThemeManager used in the application at this moment.
      Returns:
      the IconThemeManager
    • registerAddTableWizard

      void registerAddTableWizard(String name, String description, Class<? extends WizardPanel> wpClass)
    • getWizardPanels

      List<WizardPanel> getWizardPanels() throws Exception
      Throws:
      Exception
    • registerPrepareOpenDataStore

      void registerPrepareOpenDataStore(PrepareDataStore action)
    • registerPrepareOpenDataStoreParameters

      void registerPrepareOpenDataStoreParameters(PrepareDataStoreParameters action)
    • registerPrepareOpenLayer

      void registerPrepareOpenLayer(PrepareLayer action)
    • pepareOpenDataSource

      org.gvsig.fmap.dal.DataStore pepareOpenDataSource(org.gvsig.fmap.dal.DataStore store, PrepareContext context) throws Exception
      Throws:
      Exception
    • prepareOpenDataStoreParameters

      org.gvsig.fmap.dal.DataStoreParameters prepareOpenDataStoreParameters(org.gvsig.fmap.dal.DataStoreParameters storeParameters, PrepareContext context) throws Exception
      Throws:
      Exception
    • prepareOpenDataStoreParameters

      List<org.gvsig.fmap.dal.DataStoreParameters> prepareOpenDataStoreParameters(List<org.gvsig.fmap.dal.DataStoreParameters> storeParameters, PrepareContext context) throws Exception
      Throws:
      Exception
    • prepareOpenLayer

      org.gvsig.fmap.mapcontext.layers.FLayer prepareOpenLayer(org.gvsig.fmap.mapcontext.layers.FLayer layer, PrepareContextView context) throws Exception
      Throws:
      Exception
    • getColorTablesFactory

      org.gvsig.gui.ColorTablesFactory getColorTablesFactory()
    • registerColorTablesFactory

      void registerColorTablesFactory(org.gvsig.gui.ColorTablesFactory factory)
    • getLocaleLanguage

      String getLocaleLanguage()
    • translate

      String translate(String message, String... args)
    • getRootComponent

      Component getRootComponent()
    • refreshMenusAndToolBars

      void refreshMenusAndToolBars()
    • getMainFrame

      org.gvsig.andami.ui.mdiFrame.MainFrame getMainFrame()
    • addMenu

      void addMenu(org.gvsig.andami.actioninfo.ActionInfo action, String text)
    • addTool

      void addTool(org.gvsig.andami.actioninfo.ActionInfo action, String toolBarName)
    • addSelectableTool

      void addSelectableTool(org.gvsig.andami.actioninfo.ActionInfo action, String toolBarName)
    • showTextDialog

      void showTextDialog(org.gvsig.tools.swing.api.windowmanager.WindowManager.MODE mode, String title, String htmlText)
    • showTextDialog

      void showTextDialog(org.gvsig.tools.swing.api.windowmanager.WindowManager.MODE mode, String title, String htmlText, HyperlinkListener hyperlinkListener)
    • createProjectLayersTreeModel

      TreeModel createProjectLayersTreeModel()
    • createProjectStoresTreeModel

      TreeModel createProjectStoresTreeModel()
    • addPropertiesObserver

      void addPropertiesObserver(org.gvsig.tools.observer.Observer o)
    • deletePropertiesObserver

      void deletePropertiesObserver(org.gvsig.tools.observer.Observer o)
    • deletePropertiesObservers

      void deletePropertiesObservers()
    • refreshDocument

      void refreshDocument(org.gvsig.fmap.dal.feature.FeatureStore store)
    • refreshDocument

      void refreshDocument(org.gvsig.fmap.dal.DataStoreParameters params)
    • makeTitle

      String makeTitle(String base, String docname1, String docname2)
      Utility method to create uniforms window names.
      Parameters:
      base -
      docname1 -
      docname2 -
      Returns: