|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.arcglobe.Application
public class Application
Esri ArcGlobe Application.
Similar to other ArcGIS applications, the Application object is at the top level of the object hierarchy in the ArcGlobe library. From here you can perform tasks related to the application itself, such as opening a new document, or gain access to other objects contained within the application.
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 |
clearGesture()
Clears gesture. |
void |
copyToClipboard()
Copies the current scene 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 |
createSubView()
Makes a new viewer. |
void |
deleteSelection()
Deletes the current selection. |
boolean |
equals(Object o)
Compare this object with another |
void |
expandSelection()
Expands the current selection. |
void |
export2d()
Exports the Current Document to a 2d file format. |
void |
export3d()
Exports the Current Document to a 3d file format. |
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 |
getBuildNum()
The build number. |
String |
getCaption()
The caption of this application. |
IGxCatalog |
getCatalog()
The current catalog. |
static String |
getClsid()
getClsid. |
ICommandItem |
getCurrentTool()
The currently selected tool. |
void |
getDefaultBackgroundTransitionDistances(float[] lowAltitude,
float[] highAltitude)
The Default Background Transition Distances for New Documents. |
IWorkspaceName |
getDefaultDatabaseName()
The default geodatabase. |
IWorkspaceName |
getDefaultDatabaseNameNoValidate()
The default geodatabase. |
IRgbColor |
getDefaultHighBackgroundColor()
The Default High Background Color for New Documents. |
IRgbColor |
getDefaultLowBackgroundColor()
The Default Low Background Color for New Documents. |
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. |
int |
getNewDocumentDefaultLayersSetting()
The selected layer in the layer control. |
IPage |
getPage()
The current page settings. |
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 |
isTOCVisible()
Indicates if the TOC is visible. |
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. |
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 |
restoreGesture()
Restores gesture. |
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 |
setDefaultBackgroundTransitionDistances(float lowAltitude,
float highAltitude)
The Default Background Transition Distances for New Documents. |
void |
setDefaultContentsViews()
Set current TOC configuration as defaults in Normal.3dt. |
void |
setDefaultDatabaseName(IWorkspaceName ppWorkspaceName)
The default geodatabase. |
void |
setDefaultDatabaseNameNoValidate(IWorkspaceName ppWorkspaceName)
The default geodatabase. |
void |
setDefaultHighBackgroundColor(IRgbColor ppRgbColor)
The Default High Background Color for New Documents. |
void |
setDefaultLowBackgroundColor(IRgbColor ppRgbColor)
The Default Low Background Color for New Documents. |
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 |
setNewDocumentDefaultLayersSetting(int pValue)
The selected layer in the layer control. |
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 |
showTOC(boolean bShow)
Displays the table content. |
void |
shutdown()
Terminates the application. |
void |
suspendGesture()
Suspends gesture. |
void |
unlockCustomization(String password)
Unlocks previous user interface customization lock. |
void |
unregisterThreadManager(int mgrCookie)
Unregisters a DLL thread manager with the application. |
void |
useTOCAsCustomDefaultLayersForNewDocuments()
Use Current Document TOC as Custom Default Layers for New Documents. |
void |
useTOCAsSystemDefaultLayersForNewDocuments()
Use Current Document TOC as System Default Layers for New Documents. |
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 problemspublic 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 Object
public 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 IApplication
IOException
- 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 IApplication
IOException
- 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 IApplication
IOException
- 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 IApplication
dialogID
- 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 IApplication
dialogID
- 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 IApplication
IOException
- 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 IApplication
tool
- 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 IApplication
IOException
- 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 IApplication
selectTemplate
- 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 IApplication
path
- 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 IApplication
saveAsPath
- 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 IApplication
saveAsPath
- 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 IApplication
IOException
- 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 IApplication
IOException
- 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 IApplication
password
- 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 IApplication
password
- 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 IApplication
IOException
- 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 IApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ITemplates
public int getHWnd() throws IOException, AutomationException
getHWnd
in interface IApplication
IOException
- 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 IApplication
extensionName
- 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 IApplication
extensionCLSID
- 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 IApplication
IOException
- 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 IApplication
IOException
- 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 IApplication
visible
- 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 IApplication
caption
- 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 IApplication
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 IGMxApplication
showContextMenu
in interface IGxApplication
x
- The x (in)y
- The y (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isTOCVisible() throws IOException, AutomationException
isTOCVisible
in interface IGMxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void showTOC(boolean bShow) throws IOException, AutomationException
The ShowTOC method allows you to show/hide the Table of Contents (TOC) dockable window. The state of the TOC is applied to the current and new globe documents.
showTOC
in interface IGMxApplication
bShow
- The bShow (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void createSubView() throws IOException, AutomationException
Similar to the main viewer, secondary viewers allow you to display the data in perspective,which is independent from the perspective of the main viewer. This helps in viewing the same data from different directions.
createSubView
in interface IGMxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void export2d() throws IOException, AutomationException
export2d
in interface IGMxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void export3d() throws IOException, AutomationException
export3d
in interface IGMxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void copyToClipboard() throws IOException, AutomationException
copyToClipboard
in interface IGMxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPrinterByRef(IPrinter printer) throws IOException, AutomationException
setPrinterByRef
in interface IGMxApplication
printer
- 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 IGMxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPaper getPaper() throws IOException, AutomationException
getPaper
in interface IGMxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPage getPage() throws IOException, AutomationException
getPage
in interface IGMxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISelectionEnvironment getSelectionEnvironment() throws IOException, AutomationException
getSelectionEnvironment
in interface IGMxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRgbColor getDefaultHighBackgroundColor() throws IOException, AutomationException
getDefaultHighBackgroundColor
in interface IGMxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultHighBackgroundColor(IRgbColor ppRgbColor) throws IOException, AutomationException
This property allows you to change the sky background color when viewing the globe at high altitudes. The altitude, upto which this background color is visible, can be set using IGMxAppilcation::SetDefaultBackGroundTransitionDistances method.
By default, the default high background color is set to black. Changing the default high color is reflected in new documents.
setDefaultHighBackgroundColor
in interface IGMxApplication
ppRgbColor
- A reference to a com.esri.arcgis.display.IRgbColor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRgbColor getDefaultLowBackgroundColor() throws IOException, AutomationException
getDefaultLowBackgroundColor
in interface IGMxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultLowBackgroundColor(IRgbColor ppRgbColor) throws IOException, AutomationException
This property allows you to change the sky background color when viewing the globe at low altitude. The altitude, upto which this background color is visible, can be set using IGMxAppilcation::SetDefaultBackGroundTransitionDistances method.
By default, the default low background color is set to sky blue. Changing the default low color is reflected in new documents.
setDefaultLowBackgroundColor
in interface IGMxApplication
ppRgbColor
- A reference to a com.esri.arcgis.display.IRgbColor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getDefaultBackgroundTransitionDistances(float[] lowAltitude, float[] highAltitude) throws IOException, AutomationException
getDefaultBackgroundTransitionDistances
in interface IGMxApplication
lowAltitude
- The lowAltitude (out: use single element array)highAltitude
- The highAltitude (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultBackgroundTransitionDistances(float lowAltitude, float highAltitude) throws IOException, AutomationException
setDefaultBackgroundTransitionDistances
in interface IGMxApplication
lowAltitude
- The lowAltitude (in)highAltitude
- The highAltitude (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clearGesture() throws IOException, AutomationException
ClearGesture clears/disables the animated rotation gesture. This is similar to hitting the Escape key to stop the animated rotation with the Navaigate tool.
clearGesture
in interface IGMxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void suspendGesture() throws IOException, AutomationException
SuspendGesture suspends the animated rotation gesture. This method allows you to suspend the animated rotation (enabled with the Navigate tool) when a different tool such as the Fly tool is chosen.
suspendGesture
in interface IGMxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void restoreGesture() throws IOException, AutomationException
RestoreGesture restores the animated rotation gesture. This method allows you to restore the animated rotation when the Navigate tool is chosen after a different tool such as the Fly tool was chosen.
restoreGesture
in interface IGMxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getBuildNum() throws IOException, AutomationException
getBuildNum
in interface IGMxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultContentsViews() throws IOException, AutomationException
SetDefaultContentsView sets the TOC view of new ArcGlobe documents to be the TOC view of the current ArcGlobe document. ArcGlobe supports three TOC views - Display (esriArcGlobe::TOCGMxDisplayView), Source (esriArcGlobe::TOCGMxCatalogView), and Type (esriArcGlobe::TOCGMxTypeView ). Only one contents view can be active at a time.
setDefaultContentsViews
in interface IGMxApplication
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 IExtensionManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IExtension getExtension(int index) throws IOException, AutomationException
getExtension
in interface IExtensionManager
index
- 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 IExtensionManager
index
- 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 IExtensionManager
nameOrID
- A Variant (in)
IOException
- 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 IVbaApplication
docName
- 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 IVbaApplication
docName
- 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 IVbaApplication
docName
- 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 IVbaApplication
docName
- 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 Object create(Object objectID) throws IOException, AutomationException
create
in interface IObjectFactory
objectID
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getProcessID() throws IOException, AutomationException
getProcessID
in interface IMultiThreadedApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int registerThreadManager(IDllThreadManager pThreadMgr) throws IOException, AutomationException
registerThreadManager
in interface IMultiThreadedApplication
pThreadMgr
- 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 IMultiThreadedApplication
mgrCookie
- 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 IDockableWindowManager
dockWnd
- 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 IWindowPosition
left
- 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 IWindowPosition
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTop(int top) throws IOException, AutomationException
setTop
in interface IWindowPosition
top
- 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 IWindowPosition
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setWidth(int width) throws IOException, AutomationException
setWidth
in interface IWindowPosition
width
- 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 IWindowPosition
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHeight(int height) throws IOException, AutomationException
setHeight
in interface IWindowPosition
height
- 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 IWindowPosition
IOException
- 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 IWindowPosition
left
- 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 IWindowPosition
windowState
- 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 IWindowPosition
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getNewDocumentDefaultLayersSetting() throws IOException, AutomationException
getNewDocumentDefaultLayersSetting
in interface IGMxDefaultLayers
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setNewDocumentDefaultLayersSetting(int pValue) throws IOException, AutomationException
The NewDocumenDefaultLayersSetting allows you to set the default layers option to display system supplied layers (esriDefaultLayersSystem), custom user-supplied layers (esriDefaultLayersCustom), or no layers (esriDefaultLayersNone), when a new ArcGlobe document is opened up.
setNewDocumentDefaultLayersSetting
in interface IGMxDefaultLayers
pValue
- A com.esri.arcgis.arcglobe.esriDefaultLayersMode constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void useTOCAsSystemDefaultLayersForNewDocuments() throws IOException, AutomationException
useTOCAsSystemDefaultLayersForNewDocuments
in interface IGMxDefaultLayers
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void useTOCAsCustomDefaultLayersForNewDocuments() throws IOException, AutomationException
useTOCAsCustomDefaultLayersForNewDocuments
in interface IGMxDefaultLayers
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 IApplicationStatus
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGxCatalog getCatalog() throws IOException, AutomationException
getCatalog
in interface IGxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGxView getView() throws IOException, AutomationException
getView
in interface IGxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IUID getViewClassID() throws IOException, AutomationException
getViewClassID
in interface IGxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setViewClassID(IUID viewClassID) throws IOException, AutomationException
setViewClassID
in interface IGxApplication
viewClassID
- 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 IGxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGxSelection getSelection() throws IOException, AutomationException
getSelection
in interface IGxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGxObject getSelectedObject() throws IOException, AutomationException
getSelectedObject
in interface IGxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLocation(String rhs1) throws IOException, AutomationException
setLocation
in interface IGxApplication
rhs1
- 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 IGxApplication
startingPath
- The startingPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void expandSelection() throws IOException, AutomationException
expandSelection
in interface IGxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCanDeleteSelection() throws IOException, AutomationException
isCanDeleteSelection
in interface IGxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deleteSelection() throws IOException, AutomationException
deleteSelection
in interface IGxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCanRenameSelection() throws IOException, AutomationException
isCanRenameSelection
in interface IGxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void renameSelection() throws IOException, AutomationException
renameSelection
in interface IGxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getAreaOfInterest() throws IOException, AutomationException
getAreaOfInterest
in interface IGxApplication
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAreaOfInterest(IEnvelope aoi) throws IOException, AutomationException
setAreaOfInterest
in interface IGxApplication
aoi
- 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 IGxCatalogWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setUseWorkspaceFolder(boolean bUseWorkspaceFolder) throws IOException, AutomationException
setUseWorkspaceFolder
in interface IGxCatalogWorkspace
bUseWorkspaceFolder
- 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 IGxCatalogWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void openWorkspaceFolder(String workspaceFolderPath) throws IOException, AutomationException
openWorkspaceFolder
in interface IGxCatalogWorkspace
workspaceFolderPath
- 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 IGxCatalogDefaultDatabase
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultDatabaseName(IWorkspaceName ppWorkspaceName) throws IOException, AutomationException
setDefaultDatabaseName
in interface IGxCatalogDefaultDatabase
ppWorkspaceName
- 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 IGxCatalogDefaultDatabase
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultDatabaseNameNoValidate(IWorkspaceName ppWorkspaceName) throws IOException, AutomationException
setDefaultDatabaseNameNoValidate
in interface IGxCatalogDefaultDatabase
ppWorkspaceName
- 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 |