com.esri.arcgis.editor
Class IEditor2Proxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.editor.IEditorProxy
          extended by com.esri.arcgis.editor.IEditor2Proxy
All Implemented Interfaces:
IEditor, IEditor2, Externalizable, Serializable
Direct Known Subclasses:
IEditor3Proxy

public class IEditor2Proxy
extends IEditorProxy
implements IEditor2, Serializable

Provides access to methods that extend the IEditor interface. The additional members control the behavior of the auxiliary selection anchor.

Superseded By

IEditor3

Remarks

IEditor2 provides access to properties to control the location of the auxiliary selection anchor available when using the Scale and Rotate tools.

Product Availability

Available with ArcGIS Desktop.

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
  IEditor2Proxy()
           
  IEditor2Proxy(Object obj)
           
protected IEditor2Proxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 IAnchorPoint getAuxiliarySelectionAnchor()
          The auxiliary selection anchor.
 boolean isAuxiliarySelectionAnchorEnabled()
          Indicates whether the selection anchor is drawn.
 void removeListener(String iidStr, Object theListener)
           
 void resetAuxiliarySelectionAnchorLocation()
          Places the auxiliary selection anchor near the main anchor.
 void setAuxiliarySelectionAnchorEnabled(boolean auxSelAnchorEnabled)
          Indicates whether the selection anchor is drawn.
 
Methods inherited from class com.esri.arcgis.editor.IEditorProxy
abortOperation, createSearchShape, delayEvents, enableUndoRedo, findExtension, getCurrentTask, getDisplay, getEditSelection, getEditState, getEditWorkspace, getLocation, getMap, getParent, getScratchWorkspace, getSelectionAnchor, getSelectionCount, getTask, getTaskCount, hasEdits, invertAgent, redoOperation, searchSelection, setCurrentTaskByRef, startEditing, startOperation, stopEditing, stopOperation, undoOperation
 
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
 
Methods inherited from interface com.esri.arcgis.editor.IEditor
abortOperation, createSearchShape, delayEvents, enableUndoRedo, findExtension, getCurrentTask, getDisplay, getEditSelection, getEditState, getEditWorkspace, getLocation, getMap, getParent, getScratchWorkspace, getSelectionAnchor, getSelectionCount, getTask, getTaskCount, hasEdits, invertAgent, redoOperation, searchSelection, setCurrentTaskByRef, startEditing, startOperation, stopEditing, stopOperation, undoOperation
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

IEditor2Proxy

public IEditor2Proxy()

IEditor2Proxy

public IEditor2Proxy(Object obj)
              throws IOException
Throws:
IOException

IEditor2Proxy

protected IEditor2Proxy(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 IEditorProxy
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class IEditorProxy
Throws:
IOException

getAuxiliarySelectionAnchor

public IAnchorPoint getAuxiliarySelectionAnchor()
                                         throws IOException,
                                                AutomationException
The auxiliary selection anchor.

Remarks

The AuxiliarySelectionAnchor is a second selection anchor that can be used in tandem with the Editor's SelectionAnchor. The AuxiliarySelectionAnchor is represented as a small '+' sign on the display.

In some cases you may want to rotate features around the Editor's selection anchor and snap them to other feature geometries. Like the SelectionAnchor, the AuxiliarySelectionAnchor honors any active snap agents.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getAuxiliarySelectionAnchor in interface IEditor2
Returns:
A reference to a com.esri.arcgis.display.IAnchorPoint
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isAuxiliarySelectionAnchorEnabled

public boolean isAuxiliarySelectionAnchorEnabled()
                                          throws IOException,
                                                 AutomationException
Indicates whether the selection anchor is drawn.

Remarks

The auxiliary selection anchor can be displayed at any point; however, it can only be used while using the Editor's Scale or Rotate tools.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
isAuxiliarySelectionAnchorEnabled in interface IEditor2
Returns:
The auxSelAnchorEnabled
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setAuxiliarySelectionAnchorEnabled

public void setAuxiliarySelectionAnchorEnabled(boolean auxSelAnchorEnabled)
                                        throws IOException,
                                               AutomationException
Indicates whether the selection anchor is drawn.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
setAuxiliarySelectionAnchorEnabled in interface IEditor2
Parameters:
auxSelAnchorEnabled - The auxSelAnchorEnabled (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

resetAuxiliarySelectionAnchorLocation

public void resetAuxiliarySelectionAnchorLocation()
                                           throws IOException,
                                                  AutomationException
Places the auxiliary selection anchor near the main anchor.

Remarks

Resets the auxiliary selection anchor to the default location. The anchor location is also reset whenever the feature selection changes.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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