com.esri.arcgis.editor
Class IEditLocationProxy

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

public class IEditLocationProxy
extends com.esri.arcgis.interop.Dispatch
implements IEditLocation, Serializable

Provides access to the Editor's Location property.

Remarks

This interface was added specifically to allow alternative input of the editor's location property.

Generally, the ::Location() of the editor is set using the current tool via right click(ing) within the display.

However, issues arise when attempting to co-create and show the edit sketch context menu (as an external AO developer). This context menu uses the location of the editor to hit test for a valid geometry. If no valid sketch geometry is found, the context shown will fall back to the default for the display.

Product Availability

Available with ArcGIS Desktop.

See Also:
com.esri.arcgis.editor.IMxDocument, IEditor.getLocation(), 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
  IEditLocationProxy()
           
  IEditLocationProxy(Object obj)
           
protected IEditLocationProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 IPoint getLocation()
          The last known location of the mouse.
 void removeListener(String iidStr, Object theListener)
           
 void setLocationByRef(IPoint loc)
          The last known location of the mouse.
 
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

IEditLocationProxy

public IEditLocationProxy()

IEditLocationProxy

public IEditLocationProxy(Object obj)
                   throws IOException
Throws:
IOException

IEditLocationProxy

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

getLocation

public IPoint getLocation()
                   throws IOException,
                          AutomationException
The last known location of the mouse.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getLocation in interface IEditLocation
Returns:
A reference to a com.esri.arcgis.geometry.IPoint
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
com.esri.arcgis.editor.IMxDocument, IEditor.getLocation()

setLocationByRef

public void setLocationByRef(IPoint loc)
                      throws IOException,
                             AutomationException
The last known location of the mouse.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
setLocationByRef in interface IEditLocation
Parameters:
loc - A reference to a com.esri.arcgis.geometry.IPoint (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
com.esri.arcgis.editor.IMxDocument, IEditor.getLocation()