|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.arcmap.Application
public class Application
Esri ArcMap Application
The Application object is the core object in the ArcMap and ArcCatalog applications. This object represents the application itself and acts as the central point where access is gained to other objects in the system. The Application object's primary interface is IApplication.
Instantiating a new MxDocument starts a new ArcMap application. Cocreating a new MxDocument actually creates a new Application object which in turn co-creates a new MxDocument.
| Constructor Summary | |
|---|---|
Application()
Constructs a Application using ArcGIS Engine. |
|
Application(Object obj)
Construct a Application using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
|---|---|
void |
addIApplicationStatusEventsListener(IApplicationStatusEvents theListener)
addIApplicationStatusEventsListener. |
void |
copyToClipboard()
Copies the current view to the clipboard. |
Object |
create(Object objectID)
Creates an instance of an object identified by objectID. |
void |
createCodeModule(String docName,
String moduleName)
Creates a code module in the specified VBA project. |
void |
deleteSelection()
Deletes the current selection. |
boolean |
equals(Object o)
Compare this object with another |
void |
expandSelection()
Expands the current selection. |
void |
export()
Exports the current document. |
IExtension |
findExtension(Object nameOrID)
Finds the extension by CLSID (IUID) or name (String). |
IExtension |
findExtensionByCLSID(IUID extensionCLSID)
Finds an extension by its CLSID. |
IExtension |
findExtensionByName(String extensionName)
Finds an extension by its name. |
IEnvelope |
getAreaOfInterest()
The default area of interest for the application. |
String |
getCaption()
The caption of this application. |
IGxCatalog |
getCatalog()
The current catalog. |
static String |
getClsid()
getClsid. |
ICommandItem |
getCurrentTool()
The currently selected tool. |
ISet |
getDataWindows()
The data windows in the application. |
IWorkspaceName |
getDefaultDatabaseName()
The default geodatabase. |
IWorkspaceName |
getDefaultDatabaseNameNoValidate()
The default geodatabase. |
IAppDisplay |
getDisplay()
The application display. |
IDockableWindow |
getDockableWindow(IUID dockWnd)
Finds a dockable window looking first in the collection and then in the category. |
IDocument |
getDocument()
The document that is currently loaded in the application. |
IExtension |
getExtension(int index)
The extension at the specified index. |
IUID |
getExtensionCLSID(int index)
The CLSID of the extension at the specified index. |
int |
getExtensionCount()
The number of extensions loaded in the application. |
int |
getHeight()
The height of the window. |
int |
getHWnd()
The handle of the application's window. |
int |
getLeft()
The distance between the internal left edge of the window and screen. |
String |
getName()
The name of this application. |
IPaper |
getPaper()
The current paper settings. |
IPrinter |
getPrinter()
The current printer settings. |
int |
getProcessID()
The process ID for the application. |
IGxObject |
getSelectedObject()
The first selected object, or the location if no objects are selected. |
IGxSelection |
getSelection()
The selection of application. |
ISelectionEnvironment |
getSelectionEnvironment()
The selection environment. |
int |
getState()
The state of the window. |
IStatusBar |
getStatusBar()
The statusbar of this application. |
ITemplates |
getTemplates()
The templates collection. |
int |
getTop()
The distance between the internal top edge of the window and screen. |
IGxTreeView |
getTreeView()
The tree view. |
Object |
getVBE()
The Visual Basic Environment. |
IGxView |
getView()
The current view. |
IUID |
getViewClassID()
The current view's class ID. |
int |
getWidth()
The width of the window. |
String |
getWorkspaceFolderPath()
The workspace path. |
int |
hashCode()
the hashcode for this object |
void |
insertCode(String docName,
String moduleName,
String codeText)
Inserts code into the specified module. |
boolean |
isCanDeleteSelection()
Indicates if the current selection can be deleted. |
boolean |
isCanRenameSelection()
Indicates if the current selection can be renamed. |
boolean |
isDialogVisible(int dialogID)
Indicates if the specified dialog is visible in the application. |
boolean |
isInitialized()
Is the application initialized. |
boolean |
isPauseDrawing()
Pause display updates. |
boolean |
isUseWorkspaceFolder()
Indicates if the catalog uses a workspace folder as a home folder. |
boolean |
isVisible()
Indicates if the application window is visible. |
void |
lockCustomization(String password,
ICustomizationFilter custFilter)
Locks the application's user interface against any customizations. |
void |
move(int left,
int top,
int width,
int height)
Moves and optionally resizes the windows in a single function. |
void |
newDocument(boolean selectTemplate,
String templatePath)
Creates a new document in this application. |
String |
next()
The next Printer Name. |
void |
openDocument(String path)
Opens a document in this application. |
void |
openWorkspaceFolder(String workspaceFolderPath)
Opens the document catalog. |
void |
printDocument()
Displays the Print dialog. |
void |
printPreview()
Displays how the document will look like when it is printed. |
void |
refresh(String startingPath)
Refreshes the catalog tree starting at the specified path. |
void |
refreshWindow()
Redraws the application window. |
int |
registerThreadManager(IDllThreadManager pThreadMgr)
Registers a DLL thread manager with the application. |
void |
removeCodeModule(String docName,
String moduleName)
Removes a code module from the specified VBA project. |
void |
removeIApplicationStatusEventsListener(IApplicationStatusEvents theListener)
removeIApplicationStatusEventsListener. |
void |
renameSelection()
Renames the current selection. |
void |
reset()
Reset the Enumeration to the beginning. |
Object |
runVBAMacro(String docName,
String moduleName,
String macroName,
Object arguments)
Runs the specified VBA macro. |
void |
saveAsDocument(String saveAsPath,
boolean saveAsCopy)
Saves the document that is currently open in this application to a different file. |
void |
saveDocument(String saveAsPath)
Saves the document that is currently open in this application. |
void |
setAreaOfInterest(IEnvelope aoi)
The default area of interest for the application. |
void |
setCaption(String caption)
The caption of this application. |
void |
setCurrentToolByRef(ICommandItem tool)
The currently selected tool. |
void |
setDefaultDatabaseName(IWorkspaceName ppWorkspaceName)
The default geodatabase. |
void |
setDefaultDatabaseNameNoValidate(IWorkspaceName ppWorkspaceName)
The default geodatabase. |
void |
setHeight(int height)
The height of the window. |
void |
setLeft(int left)
The distance between the internal left edge of the window and screen. |
void |
setLocation(String rhs1)
The location to the specified path. |
void |
setPauseDrawing(boolean flag)
Pause display updates. |
void |
setPrinterByRef(IPrinter printer)
The current printer settings. |
void |
setState(int windowState)
The state of the window. |
void |
setTop(int top)
The distance between the internal top edge of the window and screen. |
void |
setUseWorkspaceFolder(boolean bUseWorkspaceFolder)
Indicates if the catalog uses a workspace folder as a home folder. |
void |
setViewClassID(IUID viewClassID)
The current view's class ID. |
void |
setVisible(boolean visible)
Indicates if the application window is visible. |
void |
setWidth(int width)
The width of the window. |
void |
showContextMenu(int x,
int y)
Displays a context menu for the current selection. |
Object |
showDialog(int dialogID,
Object bShow)
Displays the specified dialog in the application. |
void |
shutdown()
Terminates the application. |
void |
unlockCustomization(String password)
Unlocks previous user interface customization lock. |
void |
unregisterThreadManager(int mgrCookie)
Unregisters a DLL thread manager with the application. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public Application()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public Application(Object obj)
throws IOException
obj to Application.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
Application theApplication = (Application) obj;| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void addIApplicationStatusEventsListener(IApplicationStatusEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.framework.IApplicationStatusEvents interface.
IOException - If there are communications problems.
public void removeIApplicationStatusEventsListener(IApplicationStatusEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.framework.IApplicationStatusEvents interface.
IOException - If there are communications problems.
public String getName()
throws IOException,
AutomationException
Returns the string ArcMap for the ArcMap application.
Returns the string ArcCatalog for the ArcCatalog application.
getName in interface IApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDocument getDocument()
throws IOException,
AutomationException
In ArcMap, the Document is the currently loaded document.
In ArcCatalog, the Document is the Normal template.
Both ArcMap and ArcCatalog applications are composed of several things including a document. The document is an object which controls the representation of data. In ArcMap, the document object is the MxDocument CoClass and in ArcCatalog it is the GxDocument CoClass. Access to these CoClasses is provided through this property.
getDocument in interface IApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IDocument,
GxDocument,
com.esri.arcgis.arcmapUI.MxDocument
public IStatusBar getStatusBar()
throws IOException,
AutomationException
The status bar is the horizontal area at the bottom of an ArcGIS application window. It provides information about the selected command. For example, if you select a layer in the table of contents in ArcMap, the status bar will tell you how many features are currently selected. It may also display a progress bar while something is being processed.
The IStatusBar interface allows you to set the properties of the status bar.
getStatusBar in interface IApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IStatusBar
public Object showDialog(int dialogID,
Object bShow)
throws IOException,
AutomationException
Refer to the esriMxDlgIDs Constants help topic for a listing of the dialog ids in ArcMap.
Refer to the esriGxDlgIDs Constants help topic for a listing of the dialog ids in ArcCatalog.
This example shows the TOC in ArcMap if it is not already visible. You would get m_app from the hook in ICommand::OnCreate().
showDialog in interface IApplicationdialogID - The dialogID (in)bShow - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.com.esri.arcgis.arcmapUI.esriMxDlgIDs,
com.esri.arcgis.arccatalogui.esriGxDlgIDs
public boolean isDialogVisible(int dialogID)
throws IOException,
AutomationException
Refer to the esriMxDlgIDs Constants help topic for a listing of the dialog ids in ArcMap.
Refer to the esriGxDlgIDs Constants help topic for a listing of the dialog ids in ArcCatalog.
isDialogVisible in interface IApplicationdialogID - The dialogID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.com.esri.arcgis.arcmapUI.esriMxDlgIDs,
com.esri.arcgis.arccatalogui.esriGxDlgIDs
public ICommandItem getCurrentTool()
throws IOException,
AutomationException
getCurrentTool in interface IApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ICommandItem
public void setCurrentToolByRef(ICommandItem tool)
throws IOException,
AutomationException
This VBA macro makes the Identify tool the currently selected tool in ArcMap.
Public Sub SetCurrentTool()
Dim pItem As ICommandItem
' Use the built-in ArcId module to find unique identifier
' for the Identify tool
Set pItem = CommandBars.Find(arcid.Query_Identify)
Set Application.CurrentTool = pItem
End Sub
setCurrentToolByRef in interface IApplicationtool - A reference to a com.esri.arcgis.framework.ICommandItem (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ICommandItem
public Object getVBE()
throws IOException,
AutomationException
The VBE is the root object that provides access to all other objects represented in Visual Basic for Applications that is embedded in the application.
getVBE in interface IApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void newDocument(boolean selectTemplate,
String templatePath)
throws IOException,
AutomationException
selectTemplate Specify True if you want the New document dialog to be opened to allow the user to select a template. [Optional]
templatePath is a string representing the path and filename of the template to base the new document on if selectTemplate is False. [Optional]
If selectTemplate is True, the New document dialog is displayed.
If templatePath is not specified, the New document dialog is displayed regardless of the value of selectTemplate.
Note, this method does not work in ArcCatalog.
The following example creates a new document in ArcMap using the Normal template. You would get m_app from the hook in ICommand::OnCreate().
newDocument in interface IApplicationselectTemplate - The selectTemplate (in, optional, pass false if not required)templatePath - The templatePath (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void openDocument(String path)
throws IOException,
AutomationException
Path is a string representing the path and filename of the document to be opened. [Optional]
If no Path is specified, the Open dialog is displayed.
Note, this method does not work in ArcCatalog.
openDocument in interface IApplicationpath - The path (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void saveDocument(String saveAsPath)
throws IOException,
AutomationException
saveAsPath is a string representing a path and filename for the document that is being saved. [Optional]
If this document is a new document that has not been saved yet and a saveAsPath is not specified, the Save As dialog will be displayed.
saveDocument in interface IApplicationsaveAsPath - The saveAsPath (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void saveAsDocument(String saveAsPath,
boolean saveAsCopy)
throws IOException,
AutomationException
saveAsPath is a string representing a new path and filename for the document that is being saved. [Optional]
saveAsCopy specify True if you want to save a copy of the document to a new filename but keep the original document open in the application; otherwise False. [Optional]
Note, this method does not work in ArcCatalog.
saveAsDocument in interface IApplicationsaveAsPath - The saveAsPath (in, optional, pass null if not required)saveAsCopy - The saveAsCopy (in, optional, pass false if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void printPreview()
throws IOException,
AutomationException
Note, this method does not work in ArcCatalog.
printPreview in interface IApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void printDocument()
throws IOException,
AutomationException
Note, this method does not work in ArcCatalog.
printDocument in interface IApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void lockCustomization(String password,
ICustomizationFilter custFilter)
throws IOException,
AutomationException
password is a string representing a password. The string must be at least five characters long.
custFilter is a customization filter object which implements the ICustomizationFilter interface. [Optional]
lockCustomization in interface IApplicationpassword - The password (in)custFilter - A reference to a com.esri.arcgis.framework.ICustomizationFilter (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ICustomizationFilter
public void unlockCustomization(String password)
throws IOException,
AutomationException
password is a string representing the password that was used to lock customization. The string must be at least five characters long.
unlockCustomization in interface IApplicationpassword - The password (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void refreshWindow()
throws IOException,
AutomationException
refreshWindow in interface IApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ITemplates getTemplates()
throws IOException,
AutomationException
The Templates object is a collection of the templates that are currently loaded in the application. In ArcCatalog, the Normal template, Normal.gxt, is the only template that is ever loaded. In ArcMap, there is either two or three templates loaded. The Normal template, Normal.mxt, is always loaded. Also, the document is considered a template is this case; there is always a document loaded in ArcMap. Optionally, the document can be based on another template referred to as a base template.
getTemplates in interface IApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ITemplates
public int getHWnd()
throws IOException,
AutomationException
getHWnd in interface IApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IExtension findExtensionByName(String extensionName)
throws IOException,
AutomationException
extensionName specifies the name of an extension as a string.
To find the Name of an ESRI extension, refer to the following technical document:
ArcGIS Developer Help > Technical Documents > Names and IDs > Extensions
If an extension is registered as a Just-In-Time extension, FindExtensionByName may return nothing. The safest way to get a reference to any extension is to use FindExtensionByCLSID.
findExtensionByName in interface IApplicationextensionName - The extensionName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IExtension
public IExtension findExtensionByCLSID(IUID extensionCLSID)
throws IOException,
AutomationException
ExtensionCLSID specifies the unique identifier (UID) of an extension.
COM coclasses are identified by a globally unique identifier (GUID). There are two formats for the GUID for a coclass: a class ID (CLSID) and a ProgID. The ProgID is a text alias for a CLSID. The UID coclass can be used to represent the GUID of an extension object. You can set the IUID.Value property to either the CLSID or the ProgID.
To find the CLSID and ProgID of an ESRI extension, refer to the following technical document:
ArcGIS Developer Help > Technical Documents > Names and IDs > Extensions
For your custom extensions, the ProgID is a string composed of the name of your project used to make the extension and the class name of the extension. For example if you have a Visual Basic project called MyCustomExt and there is a class module for your extension called clsMyExtension in that project, then the ProgID for this command would be "MyCustomExt.clsMyExtension". To find the CLSID for this command, you could search the system registry for this ProgID.
findExtensionByCLSID in interface IApplicationextensionCLSID - A reference to a com.esri.arcgis.system.IUID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IExtension,
IUID
public void shutdown()
throws IOException,
AutomationException
shutdown in interface IApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isVisible()
throws IOException,
AutomationException
Set the Visible property to True to make the application window visible.
isVisible in interface IApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setVisible(boolean visible)
throws IOException,
AutomationException
Set the Visible property to True to make the application window visible.
setVisible in interface IApplicationvisible - The visible (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCaption(String caption)
throws IOException,
AutomationException
Public Sub SetCaption()
Application.Caption = "My Custom Application"
End Sub
setCaption in interface IApplicationcaption - The caption (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getCaption()
throws IOException,
AutomationException
The Caption is the string that appears as the title of the application's main window.
getCaption in interface IApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPrinterByRef(IPrinter printer)
throws IOException,
AutomationException
setPrinterByRef in interface IMxApplicationsetPrinterByRef in interface IMxApplication2printer - A reference to a com.esri.arcgis.output.IPrinter (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPrinter getPrinter()
throws IOException,
AutomationException
getPrinter in interface IMxApplicationgetPrinter in interface IMxApplication2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IPrinter
public IPaper getPaper()
throws IOException,
AutomationException
The IPaper interface and the IPrint interface are the main components for printing. The IPaper interface controls the current paper settings. The IPrint interface has a Paper member which must be set for the print output to be correct.
The IPaper interface is persisted in the document when 'Same As Printer' is checked on in the Page Setup dialog.
In Microsoft Windows terms, the IPaper interface is a wrapper around the GDI DEVMODE and DEVNAME structures.
getPaper in interface IMxApplicationgetPaper in interface IMxApplication2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IPaper
public IAppDisplay getDisplay()
throws IOException,
AutomationException
getDisplay in interface IMxApplicationgetDisplay in interface IMxApplication2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.com.esri.arcgis.arcmapUI.IAppDisplay
public ISelectionEnvironment getSelectionEnvironment()
throws IOException,
AutomationException
getSelectionEnvironment in interface IMxApplicationgetSelectionEnvironment in interface IMxApplication2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ISelectionEnvironment
public void export()
throws IOException,
AutomationException
Calling this method launches the Export dialog. Supported export formats for the document are: EMF, EPS, PDF, AI, SVG, BMP, JPEG, PNG, GIF, and TIFF.
export in interface IMxApplicationexport in interface IMxApplication2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void copyToClipboard()
throws IOException,
AutomationException
copyToClipboard in interface IMxApplicationcopyToClipboard in interface IMxApplication2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPauseDrawing(boolean flag)
throws IOException,
AutomationException
setPauseDrawing in interface IMxApplication2flag - The flag (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isPauseDrawing()
throws IOException,
AutomationException
isPauseDrawing in interface IMxApplication2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object runVBAMacro(String docName,
String moduleName,
String macroName,
Object arguments)
throws IOException,
AutomationException
docName specifes the name of the VBA project that contains the macro you want to run.
moduleName specifes the name of the module that contains the macro you want to run.
MacroName specifies the name of the macro you want to run.
arguments is a Variant array that represents the arguments that you want to pass into this macro.
If the macro is in the current document, docName will be "Project".
If the macro is in the Normal template, docName will be "Normal".
If the macro is in a template, docName will be "TemplateProject".
If you want to pass arguments into this macro you are running, first add the arguments to an array and then use that array for arguments parameter of the RunVBAMacro method.
runVBAMacro in interface IVbaApplicationdocName - The docName (in)moduleName - The moduleName (in)macroName - The macroName (in)arguments - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void createCodeModule(String docName,
String moduleName)
throws IOException,
AutomationException
docName specifes the name of the VBA project in which you want to create the module.
moduleName specifes the name of the module that you want to create.
If you want to create the module in the current document, docName will be "Project".
If you want to create the module in the Normal template, docName will be "Normal".
If you want to create the module in a template, docName will be "TemplateProject".
createCodeModule in interface IVbaApplicationdocName - The docName (in)moduleName - The moduleName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeCodeModule(String docName,
String moduleName)
throws IOException,
AutomationException
docName specifes the name of the VBA project from which you want to remove the module.
moduleName specifes the name of the module that you want to remove.
If you want to remove a module from the current document, docName will be "Project".
If you want to remove a module from the Normal template, docName will be "Normal".
If you want to remove a module from a template, docName will be "TemplateProject".
removeCodeModule in interface IVbaApplicationdocName - The docName (in)moduleName - The moduleName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void insertCode(String docName,
String moduleName,
String codeText)
throws IOException,
AutomationException
docName specifes the name of the VBA project that contains the module in which you want to insert code.
moduleName specifes the name of the module in which you want to insert code. This module must already exist in the VBA project.
codeText is a string that represents all the code for the macro.
If you want to insert code into a module in the current document, docName will be "Project".
If you want to insert code into a module in the Normal template, docName will be "Normal".
If you want to insert code into a module in a template, docName will be "TemplateProject".
The string for codeText must include all the text for the macro code including the sub procedure declaration and end sub.
insertCode in interface IVbaApplicationdocName - The docName (in)moduleName - The moduleName (in)codeText - The codeText (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getExtensionCount()
throws IOException,
AutomationException
Returns the number of extensions currently loaded in the application.
getExtensionCount in interface IExtensionManagerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IExtension getExtension(int index)
throws IOException,
AutomationException
getExtension in interface IExtensionManagerindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IUID getExtensionCLSID(int index)
throws IOException,
AutomationException
getExtensionCLSID in interface IExtensionManagerindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IExtension findExtension(Object nameOrID)
throws IOException,
AutomationException
The FindExtension method will get an extension by either its name string or by its CLSID. Using IExtensionManager is not the only way to get a reference to an extension; the IApplication interface has FindExtensionByCLSID and FindExtensionByName methods.
nameOrID is a variant representing the identifier of the extension. This can either be the UID of the extension or the name string.
COM coclasses are identified by a globally unique identifier (GUID). There two formats for the GUID for a coclass: a class ID (CLSID) and a ProgID. The ProgID is a text alias for a CLSID. The UID coclass can be used to represent the GUID of an extension object. You can set the IUID.Value property to either the CLSID or the ProgID.
To find the Name, CLSID, and ProgID of an ESRI extension, refer to the following technical document:
ArcObjects Developer Help > Technical Documents > Names and IDs > Extensions
findExtension in interface IExtensionManagernameOrID - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void reset()
throws IOException,
AutomationException
reset in interface IEnumPrinterNamesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String next()
throws IOException,
AutomationException
next in interface IEnumPrinterNamesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISet getDataWindows()
throws IOException,
AutomationException
getDataWindows in interface IApplicationWindowsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getProcessID()
throws IOException,
AutomationException
getProcessID in interface IMultiThreadedApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int registerThreadManager(IDllThreadManager pThreadMgr)
throws IOException,
AutomationException
registerThreadManager in interface IMultiThreadedApplicationpThreadMgr - A reference to a com.esri.arcgis.framework.IDllThreadManager (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void unregisterThreadManager(int mgrCookie)
throws IOException,
AutomationException
unregisterThreadManager in interface IMultiThreadedApplicationmgrCookie - The mgrCookie (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDockableWindow getDockableWindow(IUID dockWnd)
throws IOException,
AutomationException
getDockableWindow in interface IDockableWindowManagerdockWnd - A reference to a com.esri.arcgis.system.IUID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLeft(int left)
throws IOException,
AutomationException
setLeft in interface IWindowPositionleft - The left (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getLeft()
throws IOException,
AutomationException
The Left property determines the position of the window in screen coordinates relative to the upper-left corner of the display screen.
getLeft in interface IWindowPositionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTop(int top)
throws IOException,
AutomationException
setTop in interface IWindowPositiontop - The top (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getTop()
throws IOException,
AutomationException
The Top property determines the position of the window in screen coordinates relative to the upper-left corner of the display screen.
getTop in interface IWindowPositionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setWidth(int width)
throws IOException,
AutomationException
setWidth in interface IWindowPositionwidth - The width (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getWidth()
throws IOException,
AutomationException
The Height and Width properties determine the size of the window. This is in screen units.
getWidth in interface IWindowPositionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setHeight(int height)
throws IOException,
AutomationException
setHeight in interface IWindowPositionheight - The height (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getHeight()
throws IOException,
AutomationException
The Height and Width properties determine the size of the window. This is in screen units.
getHeight in interface IWindowPositionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void move(int left,
int top,
int width,
int height)
throws IOException,
AutomationException
You can use the Move method to set the Left, Top, Width, and Height properties all at the same time.
move in interface IWindowPositionleft - The left (in)top - The top (in)width - The width (in, optional, pass 0 if not required)height - The height (in, optional, pass 0 if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setState(int windowState)
throws IOException,
AutomationException
setState in interface IWindowPositionwindowState - A com.esri.arcgis.framework.esriWindowState constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getState()
throws IOException,
AutomationException
The State property uses the esriWindowState enumeration to specify whether the window is normal, minimized, or maximized.
getState in interface IWindowPositionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object create(Object objectID)
throws IOException,
AutomationException
create in interface IObjectFactoryobjectID - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isInitialized()
throws IOException,
AutomationException
Run-time user interface customizations should not be made before the application framework has fully initialized itself; the framework provides the IApplicationStatusEvents::Initialized event to signal when the framework has initialized as well as the IApplicationStatus::Initialized property that returns the currrent state.
isInitialized in interface IApplicationStatusIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGxCatalog getCatalog()
throws IOException,
AutomationException
getCatalog in interface IGxApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGxView getView()
throws IOException,
AutomationException
getView in interface IGxApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IUID getViewClassID()
throws IOException,
AutomationException
getViewClassID in interface IGxApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setViewClassID(IUID viewClassID)
throws IOException,
AutomationException
setViewClassID in interface IGxApplicationviewClassID - A reference to a com.esri.arcgis.system.IUID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGxTreeView getTreeView()
throws IOException,
AutomationException
getTreeView in interface IGxApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGxSelection getSelection()
throws IOException,
AutomationException
getSelection in interface IGxApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGxObject getSelectedObject()
throws IOException,
AutomationException
getSelectedObject in interface IGxApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLocation(String rhs1)
throws IOException,
AutomationException
setLocation in interface IGxApplicationrhs1 - The rhs1 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void refresh(String startingPath)
throws IOException,
AutomationException
refresh in interface IGxApplicationstartingPath - The startingPath (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void showContextMenu(int x,
int y)
throws IOException,
AutomationException
showContextMenu in interface IGxApplicationx - The x (in)y - The y (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void expandSelection()
throws IOException,
AutomationException
expandSelection in interface IGxApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanDeleteSelection()
throws IOException,
AutomationException
isCanDeleteSelection in interface IGxApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deleteSelection()
throws IOException,
AutomationException
deleteSelection in interface IGxApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanRenameSelection()
throws IOException,
AutomationException
isCanRenameSelection in interface IGxApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void renameSelection()
throws IOException,
AutomationException
renameSelection in interface IGxApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnvelope getAreaOfInterest()
throws IOException,
AutomationException
getAreaOfInterest in interface IGxApplicationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAreaOfInterest(IEnvelope aoi)
throws IOException,
AutomationException
setAreaOfInterest in interface IGxApplicationaoi - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseWorkspaceFolder()
throws IOException,
AutomationException
isUseWorkspaceFolder in interface IGxCatalogWorkspaceIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseWorkspaceFolder(boolean bUseWorkspaceFolder)
throws IOException,
AutomationException
setUseWorkspaceFolder in interface IGxCatalogWorkspacebUseWorkspaceFolder - The bUseWorkspaceFolder (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getWorkspaceFolderPath()
throws IOException,
AutomationException
getWorkspaceFolderPath in interface IGxCatalogWorkspaceIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void openWorkspaceFolder(String workspaceFolderPath)
throws IOException,
AutomationException
openWorkspaceFolder in interface IGxCatalogWorkspaceworkspaceFolderPath - The workspaceFolderPath (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IWorkspaceName getDefaultDatabaseName()
throws IOException,
AutomationException
getDefaultDatabaseName in interface IGxCatalogDefaultDatabaseIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDefaultDatabaseName(IWorkspaceName ppWorkspaceName)
throws IOException,
AutomationException
setDefaultDatabaseName in interface IGxCatalogDefaultDatabaseppWorkspaceName - A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IWorkspaceName getDefaultDatabaseNameNoValidate()
throws IOException,
AutomationException
getDefaultDatabaseNameNoValidate in interface IGxCatalogDefaultDatabaseIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDefaultDatabaseNameNoValidate(IWorkspaceName ppWorkspaceName)
throws IOException,
AutomationException
setDefaultDatabaseNameNoValidate in interface IGxCatalogDefaultDatabaseppWorkspaceName - A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||