com.esri.arcgis.arcglobe
Class IGMxDefaultLayersProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.arcglobe.IGMxDefaultLayersProxy
All Implemented Interfaces:
IGMxDefaultLayers, Externalizable, Serializable

public class IGMxDefaultLayersProxy
extends com.esri.arcgis.interop.Dispatch
implements IGMxDefaultLayers, Serializable

Provides access to Default Layers for New Documents.

Description

The IGMxDefaultLayers interface contains methods/properties to customize the default layers which are loaded on opening a new ArcGlobe document.

NewDocumentDefaultLayersSetting property sets the type of default layers for new documents to be custom supplied (any user specified layers in the TOC), system supplied (default layers, which ship with ArcGlobe), or none. The UseTOCAsCustomDefaultLayersForNewDocuments method sets the custom supplied default layers for new documents to be same as layers in the TOC of the currently open document. This allows the user's to provide layers of their choice to be displayed when a new ArcGlobe is opened up. The user can also change or overwrite the default layers, shipped with ArcGlobe, by using the UseTOCAsSystemDefaultLayersForNewDocuments method. This method sets the system supplied default layers for new documents to be same as layers in the TOC of the currently open document.

You can also set the system supplied default layers to be the same as layers in the TOC of a document by running the following command in the MSDOS prompt command line.

<path to install location> <space> /Arcglobe.exe <space> /SystemDefaultLayers <space> <Full document path>

For e.g., "C:\Program Files\arcgis\bin\ArcGlobe.exe" /SystemDefaultLayers "C:\Program Files\arcgis\ArcGlobeData\Default_Document.3dd"

The example above can be used to revert back to the system supplied default layers shipped with ArcGlobe. The default document (Default_Document.3dd) used, can be found in the ArcGlobeData folder, which is parallel to the "Bin" folder.

Product Availability

Available with ArcGIS Desktop. Requires 3D Analyst Extension.

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  IGMxDefaultLayersProxy()
           
  IGMxDefaultLayersProxy(Object obj)
           
protected IGMxDefaultLayersProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 int getNewDocumentDefaultLayersSetting()
          The selected layer in the layer control.
 void removeListener(String iidStr, Object theListener)
           
 void setNewDocumentDefaultLayersSetting(int pValue)
          The selected layer in the layer control.
 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 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

noncastable

public boolean noncastable
Constructor Detail

IGMxDefaultLayersProxy

public IGMxDefaultLayersProxy()

IGMxDefaultLayersProxy

public IGMxDefaultLayersProxy(Object obj)
                       throws IOException
Throws:
IOException

IGMxDefaultLayersProxy

protected IGMxDefaultLayersProxy(Object obj,
                                 String iid)
                          throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

getNewDocumentDefaultLayersSetting

public int getNewDocumentDefaultLayersSetting()
                                       throws IOException,
                                              AutomationException
The selected layer in the layer control.

Product Availability

Available with ArcGIS Desktop. Requires 3D Analyst Extension.

Supported Platforms

Windows

Specified by:
getNewDocumentDefaultLayersSetting in interface IGMxDefaultLayers
Returns:
A com.esri.arcgis.arcglobe.esriDefaultLayersMode constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setNewDocumentDefaultLayersSetting

public void setNewDocumentDefaultLayersSetting(int pValue)
                                        throws IOException,
                                               AutomationException
The selected layer in the layer control.

Remarks

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.

Product Availability

Available with ArcGIS Desktop. Requires 3D Analyst Extension.

Supported Platforms

Windows

Specified by:
setNewDocumentDefaultLayersSetting in interface IGMxDefaultLayers
Parameters:
pValue - A com.esri.arcgis.arcglobe.esriDefaultLayersMode constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

useTOCAsSystemDefaultLayersForNewDocuments

public void useTOCAsSystemDefaultLayersForNewDocuments()
                                                throws IOException,
                                                       AutomationException
Use Current Document TOC as System Default Layers for New Documents.

Product Availability

Available with ArcGIS Desktop. Requires 3D Analyst Extension.

Supported Platforms

Windows

Specified by:
useTOCAsSystemDefaultLayersForNewDocuments in interface IGMxDefaultLayers
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

useTOCAsCustomDefaultLayersForNewDocuments

public void useTOCAsCustomDefaultLayersForNewDocuments()
                                                throws IOException,
                                                       AutomationException
Use Current Document TOC as Custom Default Layers for New Documents.

Product Availability

Available with ArcGIS Desktop. Requires 3D Analyst Extension.

Supported Platforms

Windows

Specified by:
useTOCAsCustomDefaultLayersForNewDocuments in interface IGMxDefaultLayers
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.