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
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddPropertiesObserver(org.gvsig.tools.observer.Observer o) voidaddSelectableTool(org.gvsig.andami.actioninfo.ActionInfo action, String toolBarName) voidvoidclose(boolean quietly) Close the application.voiddeletePropertiesObserver(org.gvsig.tools.observer.Observer o) voidorg.gvsig.about.AboutManagergetAbout()Utility method to obtain the AboutManager used in the application at this moment.getActiveComponent(Class<? extends Document> documentClass) Returns the JComponent associated to the active document for the specified type of document.Returns the active document of the application or null if there is no active 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.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.org.gvsig.andami.ui.mdiManager.IWindowReturn the active window, IWindow, in the application.org.gvsig.andami.ui.mdiManager.IWindowgetActiveWindow(Class<? extends Document> documentClass) org.gvsig.andami.ArgumentsReturn the arguments passed to the application in the command lineorg.gvsig.gui.ColorTablesFactoryorg.gvsig.crs.projection.lib.ProjectionObtain the projection associated by the code of projection Passed as parameter.org.gvsig.fmap.mapcontext.layers.FLayerReturn the project that is loaded and in use in the application.org.gvsig.fmap.dal.DataManagerUtility method to obtain the DataManager used in the application at this moment.org.gvsig.tools.dataTypes.DataTypesManagerorg.gvsig.tools.dispose.DisposableManagerUtility method to obtain the DisposableManager used in the application at this moment.getDocumentWindow(Document document) Returns the window associated with the document passed as parameter or null if there is no window associated with the document.org.gvsig.tools.dynobject.DynObjectManagerUtility method to obtain the DynObjectManager used in the application at this moment.org.gvsig.tools.extensionpoint.ExtensionPointManagerUtility method to obtain the ExtensionPointManager used in the application at this moment.Get the value of the system clipboard as a string.org.gvsig.fmap.geom.GeometryManagerUtility method to obtain the GeometryManager used in the application at this moment.org.gvsig.tools.swing.icontheme.IconThemeManagerUtility method to obtain the IconThemeManager used in the application at this moment.org.gvsig.andami.ui.mdiFrame.MainFrameorg.gvsig.fmap.mapcontext.MapContextManagerUtility method to obtain the MapContextManager used in the application at this moment.org.gvsig.tools.persistence.PersistenceManagerUtility method to obtain the PersistenceManager used in the application at this moment.Return the root of the nodes of preferences in the application.getPreferences(String nodeName) Search and return the node of preferences required as nodeName.Utility method to obtain the ProjectManager used in the application at this moment.org.gvsig.andami.ui.mdiManager.MDIManagerUtility method to obtain the UIManager used in the application at this moment.Return the version of the application.Utility method to create uniforms window names.org.gvsig.fmap.dal.DataStorepepareOpenDataSource(org.gvsig.fmap.dal.DataStore store, PrepareContext context) List<org.gvsig.fmap.dal.DataStoreParameters> prepareOpenDataStoreParameters(List<org.gvsig.fmap.dal.DataStoreParameters> storeParameters, PrepareContext context) org.gvsig.fmap.dal.DataStoreParametersprepareOpenDataStoreParameters(org.gvsig.fmap.dal.DataStoreParameters storeParameters, PrepareContext context) org.gvsig.fmap.mapcontext.layers.FLayerprepareOpenLayer(org.gvsig.fmap.mapcontext.layers.FLayer layer, PrepareContextView context) voidputInClipboard(String data) Put the string value passed as parameter in the clipboard of the system.voidrefreshDocument(org.gvsig.fmap.dal.DataStoreParameters params) voidrefreshDocument(org.gvsig.fmap.dal.feature.FeatureStore store) voidvoidregisterAddTableWizard(String name, String description, Class<? extends WizardPanel> wpClass) voidregisterColorTablesFactory(org.gvsig.gui.ColorTablesFactory factory) voidvoidvoidregisterPrepareOpenLayer(PrepareLayer action) voidshowTextDialog(org.gvsig.tools.swing.api.windowmanager.WindowManager.MODE mode, String title, String htmlText) voidshowTextDialog(org.gvsig.tools.swing.api.windowmanager.WindowManager.MODE mode, String title, String htmlText, HyperlinkListener hyperlinkListener) Methods inherited from interface org.gvsig.tools.util.GetItemByKey
getMethods inherited from interface org.gvsig.tools.util.PropertiesSupport
getProperties, getProperty, setPropertyMethods inherited from interface org.gvsig.andami.ui.mdiFrame.ThreadSafeDialogs
confirmDialog, messageDialog, showDialogMethods inherited from interface org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager
confirmDialog, createComponent, createComponentWithParams, inputDialog, inputDialog, message, messageDialog, messageDialog, showChooserDialog, showChooserDialog, showChooserDialog, showOpenDirectoryDialog, showOpenFileDialog, showSaveFileDialog
-
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
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
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
-
getActiveComponent
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
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
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
Put the string value passed as parameter in the clipboard of the system.- Parameters:
data- to put in the clipboard.
-
getCRS
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
-
getWizardPanels
- Throws:
Exception
-
registerPrepareOpenDataStore
-
registerPrepareOpenDataStoreParameters
-
registerPrepareOpenLayer
-
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
-
getRootComponent
Component getRootComponent() -
refreshMenusAndToolBars
void refreshMenusAndToolBars() -
getMainFrame
org.gvsig.andami.ui.mdiFrame.MainFrame getMainFrame() -
addMenu
-
addTool
-
addSelectableTool
-
showTextDialog
-
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
Utility method to create uniforms window names.- Parameters:
base-docname1-docname2-- Returns:
-