|
|||||||||
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.editor.IEditorProxy
public class IEditorProxy
Provides access to members that control the behavior of the editor.
ISnapEnvironment
,
IEditProperties
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IMap
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
IApplication
,
Editor
,
IEditSketch
,
Serialized FormField Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IEditorProxy()
|
|
IEditorProxy(Object obj)
|
protected |
IEditorProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
abortOperation()
Aborts an edit operation. |
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
IGeometry |
createSearchShape(IPoint point)
Creates a geometry using the point and the current search tolerance. |
void |
delayEvents(boolean delay)
Used to batch operations together and minimize notifications. |
void |
enableUndoRedo(boolean enabled)
Enable/disable the undo/redo capabilities. |
IExtension |
findExtension(IUID extensionID)
Finds the extension given an id. |
IEditTask |
getCurrentTask()
The current edit task. |
IScreenDisplay |
getDisplay()
Reference to the current display. |
IEnumFeature |
getEditSelection()
The selected features which are editable. |
int |
getEditState()
The editor's current edit state. |
IWorkspace |
getEditWorkspace()
Reference to the workspace being edited. |
IPoint |
getLocation()
The last known location of the mouse. |
IMap |
getMap()
Reference to the map being edited. |
IApplication |
getParent()
Reference to the parent application. |
IWorkspace |
getScratchWorkspace()
Reference to the editor's scratch workspace. |
IAnchorPoint |
getSelectionAnchor()
The selection anchor point. |
int |
getSelectionCount()
The number of selected features which are editable. |
IEditTask |
getTask(int index)
An edit task by index. |
int |
getTaskCount()
The number of edit tasks. |
boolean |
hasEdits()
Indicates whether edits have been made during the session. |
void |
invertAgent(IPoint loc,
int hdc)
Draws the editor's snapping agent. |
void |
redoOperation()
Redo an edit operation. |
void |
removeListener(String iidStr,
Object theListener)
|
IEnumFeature |
searchSelection(IPoint point)
Searches the edit selection using the given location. |
void |
setCurrentTaskByRef(IEditTask task)
The current edit task. |
void |
startEditing(IWorkspace workspace)
Starts an edit session. |
void |
startOperation()
Starts an edit operation. |
void |
stopEditing(boolean saveChanges)
Stops an edit session. |
void |
stopOperation(String menuText)
Stops an edit operation. |
void |
undoOperation()
Undo an edit operation. |
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 IEditorProxy()
public IEditorProxy(Object obj) throws IOException
IOException
protected IEditorProxy(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 IApplication getParent() throws IOException, AutomationException
getParent
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IApplication
,
IEditor.getEditState()
public int getEditState() throws IOException, AutomationException
getEditState
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriEditState
public IMap getMap() throws IOException, AutomationException
getMap
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMap
public IScreenDisplay getDisplay() throws IOException, AutomationException
getDisplay
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspace getEditWorkspace() throws IOException, AutomationException
getEditWorkspace
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspace getScratchWorkspace() throws IOException, AutomationException
getScratchWorkspace
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startEditing(IWorkspace workspace) throws IOException, AutomationException
Data from multiple workspaces may be loaded into a single map. However, the editor can only edit one workspace at a time. For this reason, when calling StartEditing, you must specify the workspace you wish to edit and this workspace must be represented in the focus map. If no feature layers from the workspace are present in the focus map, StartEditing will fail.
StartEditing may also fail if the data is read-only or if it is non versioned SDE data.
Any references to features, cursors, or other
geodatabase classes that you intend to use in the edit session
should be acquired inside the edit session.
startEditing
in interface IEditor
workspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void stopEditing(boolean saveChanges) throws IOException, AutomationException
stopEditing
in interface IEditor
saveChanges
- The saveChanges (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean hasEdits() throws IOException, AutomationException
If Not pEditor.HasEdits Then
pEditor.StopEditing False
Else
'
'Code to prompt for Save Changes (Yes/No)
'
End If
hasEdits
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startOperation() throws IOException, AutomationException
All edits to features that participate in a Topology or Geometric Network must be bracketed within an edit operation.
If you call StartOperation when an edit operation has already been started, you will get an error.
startOperation
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEditor.stopOperation(String)
public void abortOperation() throws IOException, AutomationException
abortOperation
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void stopOperation(String menuText) throws IOException, AutomationException
All edits to features that participate in a Topology or Geometric Network must be bracketed within an edit operation.
stopOperation
in interface IEditor
menuText
- The menuText (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEditor.startOperation()
public void undoOperation() throws IOException, AutomationException
undoOperation
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void redoOperation() throws IOException, AutomationException
redoOperation
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void enableUndoRedo(boolean enabled) throws IOException, AutomationException
Use EnableUndoRedo to control whether edits to features can be rolled back. Edits made programmatically must be done within an edit operation in order to roll back an operation. If EnableUndoRedo is False then any changes are committed. To discard those edits the current edit session must be stopped and edits not saved. This method is a shortcut to calling IWorkspaceEdit::EnableUndoRedo on the current edit workspace.
enableUndoRedo
in interface IEditor
enabled
- The enabled (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void delayEvents(boolean delay) throws IOException, AutomationException
delayEvents
in interface IEditor
delay
- The delay (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumFeature getEditSelection() throws IOException, AutomationException
public void GetMapSelection()
{
//Get a reference to IApplication app in ICommand::OnCreate
hook parameter.
IEditor sEditor = app.FindExtensionByName("ESRI Object
Editor") as IEditor;
IEnumFeature enumFeature = sEditor.EditSelection;
enumFeature.Reset();
IFeature selFeature = enumFeature.Next();
for (int fCount = 0; fCount < sEditor.SelectionCount;
fCount++)
{
IGeometry selGeometry = selFeature.Shape;
'Put code here to do something with the
geometry
System.Windows.Forms.MessageBox.Show(selGeometry.GeometryType);
selFeature = enumFeature.Next;
}
}
getEditSelection
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getSelectionCount() throws IOException, AutomationException
getSelectionCount
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IExtension findExtension(IUID extensionID) throws IOException, AutomationException
findExtension
in interface IEditor
extensionID
- A reference to a com.esri.arcgis.system.IUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTaskCount() throws IOException, AutomationException
getTaskCount
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEditor.getTask(int)
,
IEditor.getCurrentTask()
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor.setCurrentTaskByRef(com.esri.arcgis.editor.IEditTask)
,
IEditTask.deactivate()
,
IEditTask.onFinishSketch()
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
public IEditTask getTask(int index) throws IOException, AutomationException
getTask
in interface IEditor
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCurrentTaskByRef(IEditTask task) throws IOException, AutomationException
setCurrentTaskByRef
in interface IEditor
task
- A reference to a com.esri.arcgis.editor.IEditTask (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEditor.getTask(int)
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditTask.deactivate()
,
IEditTask.onFinishSketch()
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditor.getTaskCount()
public IEditTask getCurrentTask() throws IOException, AutomationException
getCurrentTask
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEditor.getTask(int)
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditTask.deactivate()
,
IEditTask.onFinishSketch()
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditor.getTaskCount()
public IGeometry createSearchShape(IPoint point) throws IOException, AutomationException
createSearchShape
in interface IEditor
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumFeature searchSelection(IPoint point) throws IOException, AutomationException
searchSelection
in interface IEditor
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void invertAgent(IPoint loc, int hdc) throws IOException, AutomationException
invertAgent
in interface IEditor
loc
- A reference to a com.esri.arcgis.geometry.IPoint (in)hdc
- The hdc (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEditProperties.getSnapSymbol()
public IAnchorPoint getSelectionAnchor() throws IOException, AutomationException
getSelectionAnchor
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEditor2.getAuxiliarySelectionAnchor()
public IPoint getLocation() throws IOException, AutomationException
getLocation
in interface IEditor
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISketchTool
,
esriSketchConstraint
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |