|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.arcglobe.IGMxDocumentProxy
public class IGMxDocumentProxy
Provides access to members that control the ArcGlobe Document object.
The IGMxDocument is a starting point for accessing most of the ArcGlobe objects. This interface allows you to manipulate ArcGlobe document specific properties and methods, such as storing a document with relative paths, changing the search tolerance in pixels, saving a preview of the globe document to be viewed in ArcCatalog, loading and saving ArcGlobe animation files (*.aga files), adding a layer in the TOC, and removing all the layers in the TOC of a globe document.
Obtain a reference to IGMxDocument via IApplication::Document.
This interface is a starting point for getting a handle to other objects in ArcGlobe desktop application. Almost every ArcGlobe desktop customization uses IGMxDocument one way or another.
| Field Summary | |
|---|---|
boolean |
noncastable
|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
|---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
| Constructor Summary | |
|---|---|
|
IGMxDocumentProxy()
|
|
IGMxDocumentProxy(Object obj)
|
protected |
IGMxDocumentProxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
addLayer(ILayer layer)
Adds a layer to the current focus map. |
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
IContentsView2 |
getContentsView(int index)
The contents view at the specified index. |
int |
getContentsViewCount()
The number of contents views in the document. |
Object |
getContextItem()
The item that is selected or was last right-clicked. |
IContentsView2 |
getCurrentContentsView()
The current contents view of the document. |
IColor |
getDefaultColor(int type)
The default color for the given type. |
IScene |
getScene()
The scene. |
int |
getSearchTolerancePixels()
The global search tolerance in pixels for selection. |
Object |
getSelectedItem()
The selected item in the layer control. |
ILayer |
getSelectedLayer()
The selected layer in the layer control. |
boolean |
isRelativePaths()
Indicates if path names are stored relative to the document. |
boolean |
isSavePreview()
Indicates if a preview image is saved in the document. |
void |
removeAllLayers()
Removes all layers. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setContextItem(Object item)
The item that is selected or was last right-clicked. |
void |
setCurrentContentsViewByRef(IContentsView2 view)
The current contents view of the document. |
void |
setDefaultColor(int type,
IColor color)
The default color for the given type. |
void |
setDelayUpdateContents(boolean rhs1)
Indicates whether to ignore document update notifications. |
void |
setRelativePaths(boolean relPaths)
Indicates if path names are stored relative to the document. |
void |
setSavePreview(boolean savePreview)
Indicates if a preview image is saved in the document. |
void |
setScene(IScene pScene)
The scene. |
void |
setSearchTolerancePixels(int tol)
The global search tolerance in pixels for selection. |
void |
updateContents()
Notifies the document that the contents have been updated. |
| Methods inherited from class com.esri.arcgis.interop.Dispatch |
|---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public boolean noncastable
| Constructor Detail |
|---|
public IGMxDocumentProxy()
public IGMxDocumentProxy(Object obj)
throws IOException
IOException
protected IGMxDocumentProxy(Object obj,
String iid)
throws IOException
IOException| Method Detail |
|---|
public void addListener(String iidStr,
Object theListener,
Object theSource)
throws IOException
addListener in class com.esri.arcgis.interop.DispatchIOException
public void removeListener(String iidStr,
Object theListener)
throws IOException
removeListener in class com.esri.arcgis.interop.DispatchIOException
public ILayer getSelectedLayer()
throws IOException,
AutomationException
This property provides a handle to the currently selected layer in the table of contents.
getSelectedLayer in interface IGMxDocumentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getSelectedItem()
throws IOException,
AutomationException
Use the SelectedITem property to obtain a reference to the selected item in the TOC. This property returns an IUnknown because an item in the TOC can be any number f things. For example, when working with the Display tab the reference can be one of the layers, if a layer is selected.
getSelectedItem in interface IGMxDocumentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getContextItem()
throws IOException,
AutomationException
getContextItem in interface IGMxDocumentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setContextItem(Object item)
throws IOException,
AutomationException
setContextItem in interface IGMxDocumentitem - A reference to another Object (IUnknown) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addLayer(ILayer layer)
throws IOException,
AutomationException
This method is a shortcut to the AddLayer method on the IScene (IScene::AddLayer).
Note: Using IGMxDocument::AddLayer, the layer is added as draped on the globe surface, by default.
addLayer in interface IGMxDocumentlayer - A reference to a com.esri.arcgis.carto.ILayer (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeAllLayers()
throws IOException,
AutomationException
RemoveAllLayers deletes all the layers present in the Table Of Contents of the current ArcGlobe document and therefore, should be carefully used.
removeAllLayers in interface IGMxDocumentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void updateContents()
throws IOException,
AutomationException
Use UpdateContents to automatically refresh the active TOC.
updateContents in interface IGMxDocumentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDelayUpdateContents(boolean rhs1)
throws IOException,
AutomationException
setDelayUpdateContents in interface IGMxDocumentrhs1 - The rhs1 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSearchTolerancePixels()
throws IOException,
AutomationException
getSearchTolerancePixels in interface IGMxDocumentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSearchTolerancePixels(int tol)
throws IOException,
AutomationException
The SearchTolerancePixels method changes the search tolerance in pixels. This is similar to changing the search tolerance on the Selection Options dialog on the user interface.
setSearchTolerancePixels in interface IGMxDocumenttol - The tol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IColor getDefaultColor(int type)
throws IOException,
AutomationException
getDefaultColor in interface IGMxDocumenttype - A com.esri.arcgis.arcmapui.esriMxDefaultColorTypes constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDefaultColor(int type,
IColor color)
throws IOException,
AutomationException
setDefaultColor in interface IGMxDocumenttype - A com.esri.arcgis.arcmapui.esriMxDefaultColorTypes constant (in)color - A reference to a com.esri.arcgis.display.IColor (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IScene getScene()
throws IOException,
AutomationException
getScene in interface IGMxDocumentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setScene(IScene pScene)
throws IOException,
AutomationException
setScene in interface IGMxDocumentpScene - A reference to a com.esri.arcgis.analyst3d.IScene (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isRelativePaths()
throws IOException,
AutomationException
isRelativePaths in interface IGMxDocumentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRelativePaths(boolean relPaths)
throws IOException,
AutomationException
RelativePaths can be set to True for storing a document with relative paths. Setting the property to False stores the document with full paths.
setRelativePaths in interface IGMxDocumentrelPaths - The relPaths (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSavePreview()
throws IOException,
AutomationException
isSavePreview in interface IGMxDocumentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSavePreview(boolean savePreview)
throws IOException,
AutomationException
The SavePreview property specifies whether or not a thumbnail image of the globe is displayed in ArcCatalog or not, when browsing globe documents. For saving a preview of the current ArcGlobe document, this proerty should be set to True.
setSavePreview in interface IGMxDocumentsavePreview - The savePreview (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IContentsView2 getCurrentContentsView()
throws IOException,
AutomationException
A contents view is a tab in the table of contents. ArcGlobe has three contents views: Display (TOCGMxDisplayView), Source (TOCGMxCatalogView), and Type (TOCGMxTypeView). Only one contents view can be active at a time. Use this property to set the current contents view and to get a reference to the current contents view. Setting the current contents view automatically calls IContentsView::Refresh.
getCurrentContentsView in interface IGMxDocumentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCurrentContentsViewByRef(IContentsView2 view)
throws IOException,
AutomationException
Use the CurrentContentsView to set the current contents view and to get a reference to the current contents view. Setting the current contents view automatically refreshes the table of contents (IContentsView::Refresh).
setCurrentContentsViewByRef in interface IGMxDocumentview - A reference to a com.esri.arcgis.arcmapui.IContentsView2 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getContentsViewCount()
throws IOException,
AutomationException
A contents view is a tab in the table of contents. ArcGlobe has three contents views: Display (TOCGMxDisplayView), Source (TOCGMxCatalogView), and Type (TOCGMxTypeView). Only one contents view can be active at a time. This property returns the number of contents views registered in the ESRI Contents Views component category.
getContentsViewCount in interface IGMxDocumentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IContentsView2 getContentsView(int index)
throws IOException,
AutomationException
getContentsView in interface IGMxDocumentindex - The index (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 | ||||||||