com.esri.arcgis.editor
Class ISnappingWindowProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.editor.ISnappingWindowProxy
All Implemented Interfaces:
ISnappingWindow, Externalizable, Serializable

public class ISnappingWindowProxy
extends com.esri.arcgis.interop.Dispatch
implements ISnappingWindow, Serializable

Provides access to methods for working with the snapping window.

Remarks

The snapping window reveals all of the snap agents registered in the snap agent component category. Custom snap agents appear in the bottom half of the snapping window.

The first time the snapping window is opened, a feature snap agent is created for each editable featureclass. Each feature snap agent initially has its HitType property set to esriGeometryPartNone. Change the HitType by checking the appropriate box in the snapping window or programmatically change it using IFeatureSnapAgent::HitType.

Snap agents other than feature snap agents, Snap Perpendicular for example, are not instantiated the first time the snapping window is opened. Instead, these snap agents are created only when they are checked off in the snapping window or instantiated programmatically.

Call RefreshContents to update the snapping window with any programmatic changes made to the snapping environment.

To get a handle to the snapping window use IEditor::FindExtension.

When To Use

Use the ISnappingWindow interface after programmatically changing the snapping environment to refresh the contents of the Snapping Window. You can also programmatically close or open the snapping window using the Hide and Show methods.

Product Availability

Available with ArcGIS Desktop.

See Also:
ISnapEnvironment, 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
  ISnappingWindowProxy()
           
  ISnappingWindowProxy(Object obj)
           
protected ISnappingWindowProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 void hide()
          Hides the window.
 void refreshContents()
          Refreshes the contents.
 void removeListener(String iidStr, Object theListener)
           
 void show()
          Shows the window.
 
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

ISnappingWindowProxy

public ISnappingWindowProxy()

ISnappingWindowProxy

public ISnappingWindowProxy(Object obj)
                     throws IOException
Throws:
IOException

ISnappingWindowProxy

protected ISnappingWindowProxy(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

show

public void show()
          throws IOException,
                 AutomationException
Shows the window.

Remarks

Call this method to display the snapping window.

The first time the snapping window is opened, a feature snap agent is created for each editable featureclass.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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

hide

public void hide()
          throws IOException,
                 AutomationException
Hides the window.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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

refreshContents

public void refreshContents()
                     throws IOException,
                            AutomationException
Refreshes the contents.

Remarks

Any changes made to the Snapping Environment such as turning on/off snap agents will not refresh the dialog if it is visible. After making changes to the snapping environment you should issue RefreshContents to ensure they are up to date.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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