|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.arcglobe.IGMxDefaultLayersProxy
public class IGMxDefaultLayersProxy
Provides access to Default Layers for New Documents.
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.
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 |
---|
public boolean noncastable
Constructor Detail |
---|
public IGMxDefaultLayersProxy()
public IGMxDefaultLayersProxy(Object obj) throws IOException
IOException
protected IGMxDefaultLayersProxy(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.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |