|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IEditor
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| Method Summary | |
|---|---|
void |
abortOperation()
Aborts an edit operation. |
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. |
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. |
| Method Detail |
|---|
IApplication getParent()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IApplication,
IEditor.getEditState()
int getEditState()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.esriEditState
IMap getMap()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IMap
IScreenDisplay getDisplay()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IWorkspace getEditWorkspace()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IWorkspace getScratchWorkspace()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
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.
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.
void stopEditing(boolean saveChanges)
throws IOException,
AutomationException
saveChanges - The saveChanges (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean hasEdits()
throws IOException,
AutomationException
If Not pEditor.HasEdits Then
pEditor.StopEditing False
Else
'
'Code to prompt for Save Changes (Yes/No)
'
End If
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
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.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditor.stopOperation(String)
void abortOperation()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
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.
menuText - The menuText (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditor.startOperation()
void undoOperation()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void redoOperation()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
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.
enabled - The enabled (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void delayEvents(boolean delay)
throws IOException,
AutomationException
delay - The delay (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
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;
}
}
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getSelectionCount()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IExtension findExtension(IUID extensionID)
throws IOException,
AutomationException
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.
int getTaskCount()
throws IOException,
AutomationException
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()
IEditTask getTask(int index)
throws IOException,
AutomationException
index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setCurrentTaskByRef(IEditTask task)
throws IOException,
AutomationException
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()
IEditTask getCurrentTask()
throws IOException,
AutomationException
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()
IGeometry createSearchShape(IPoint point)
throws IOException,
AutomationException
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.
IEnumFeature searchSelection(IPoint point)
throws IOException,
AutomationException
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.
void invertAgent(IPoint loc,
int hdc)
throws IOException,
AutomationException
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()
IAnchorPoint getSelectionAnchor()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditor2.getAuxiliarySelectionAnchor()
IPoint getLocation()
throws IOException,
AutomationException
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 | ||||||||