public class JMapApplicationContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
APPLICATION_TYPE_APPLET
Constant for an applet application
|
static int |
APPLICATION_TYPE_JAVA_WEB_START
Constant for a Java Web Start application
|
static int |
APPLICATION_TYPE_STANDALONE
Constant for a standalone Java application
|
Modifier and Type | Method and Description |
---|---|
void |
addLicenseRestrictions(ClientLicenseRestrictions licenseRestrictions) |
static void |
destroy()
Destroys the JMapApplicationContext instance.
|
JMapApplication |
getApplication()
Returns the instance of the current JMap application.
|
JMapApplicationActionManager |
getApplicationActionManager()
Returns the instance of the current application actions manager.
|
int |
getApplicationType()
Returns the current application type.
|
ArgumentParser |
getArgumentParser() |
JMapAutoZoomService |
getAutoZoomService()
Returns the JMap AutoZoom service.
|
java.net.URL |
getBaseURL() |
JMapSrvConnection |
getConnection() |
JMapContextManager |
getContextManager()
Returns the context manager for this application.
|
EncryptionCipher |
getEncrypter() |
java.awt.Frame |
getFrame() |
static JMapApplicationContext |
getInstance() |
java.io.File |
getJMapHome()
The JMap home directory is the root directory where JMap writes its files (parameters,cached, data, etc.).
|
ClientLicenseRestrictions |
getLicenseRestrictions() |
QueryInterfaceManager |
getQueryInterfaceManager() |
QueryManager |
getQueryManager()
Returns the query manager for this application.
|
java.net.URL |
getReportURL()
Gets the URL to use for information reports.
|
javax.swing.RootPaneContainer |
getRootPaneContainer() |
URLOpener |
getURLOpener() |
java.lang.String |
getUsername()
Convenient function to safely obtain current connection's username if applicable.
|
ViewManager |
getViewManager() |
ViewSyncGroup |
getViewSyncGroup()
Returns the View Synchronize Group service.
|
void |
setApplication(JMapApplication jmapApplication)
Sets the instance of the current JMap application.
|
void |
setApplicationActionManager(JMapApplicationActionManager applicationActionManager)
Sets the instance of the current aplication actions manager.
|
void |
setApplicationType(int applicationType)
Sets the current application type.
|
void |
setArgumentParser(ArgumentParser argumentParser) |
void |
setBaseURL(java.net.URL baseURL) |
void |
setConnection(JMapSrvConnection connection) |
void |
setEncrypter(EncryptionCipher encrypter) |
void |
setJMapHome(java.io.File jMapHome)
Deprecated.
|
void |
setReportURL(java.net.URL reportURL)
Sets a URL to use for the information reports.
|
void |
setRootPaneContainer(javax.swing.RootPaneContainer rootPaneContainer) |
void |
setURLOpener(URLOpener URLOpener) |
public static final int APPLICATION_TYPE_STANDALONE
public static final int APPLICATION_TYPE_APPLET
public static final int APPLICATION_TYPE_JAVA_WEB_START
public static JMapApplicationContext getInstance()
public java.net.URL getBaseURL()
public void setBaseURL(java.net.URL baseURL)
baseURL
- the application base URLpublic URLOpener getURLOpener()
public void setURLOpener(URLOpener URLOpener)
URLOpener
- the application URL openerpublic ArgumentParser getArgumentParser()
public void setArgumentParser(ArgumentParser argumentParser)
argumentParser
- the application argument parserpublic JMapSrvConnection getConnection()
public void setConnection(JMapSrvConnection connection)
connection
- the application connection to JMapServerpublic ViewManager getViewManager()
public QueryInterfaceManager getQueryInterfaceManager()
public java.awt.Frame getFrame()
public javax.swing.RootPaneContainer getRootPaneContainer()
public void setRootPaneContainer(javax.swing.RootPaneContainer rootPaneContainer)
rootPaneContainer
- the application rootPaneContainer (JFrame or JApplet)public int getApplicationType()
public void setApplicationType(int applicationType)
applicationType
- the current application type.public final ClientLicenseRestrictions getLicenseRestrictions()
public final void addLicenseRestrictions(ClientLicenseRestrictions licenseRestrictions)
public JMapApplication getApplication()
public void setApplication(JMapApplication jmapApplication)
jmapApplication
- the instance of the JMap application.public JMapApplicationActionManager getApplicationActionManager()
JMapApplicationActionManager
public void setApplicationActionManager(JMapApplicationActionManager applicationActionManager)
applicationActionManager
- the application actions managerJMapApplicationActionManager
public QueryManager getQueryManager()
QueryManager
public JMapContextManager getContextManager()
JMapContextManager
public JMapAutoZoomService getAutoZoomService()
JMapAutoZoomService
public ViewSyncGroup getViewSyncGroup()
ViewSyncGroup
public EncryptionCipher getEncrypter()
public void setEncrypter(EncryptionCipher encrypter)
public static void destroy()
public java.io.File getJMapHome()
@Deprecated public void setJMapHome(java.io.File jMapHome)
jMapHome
- the new JMap home directorypublic void setReportURL(java.net.URL reportURL)
reportURL
- public java.net.URL getReportURL()
public java.lang.String getUsername()