|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISketchOperation
Provides access to members that control undo/redo capabilities for edit sketch modifications.
Sketch operations are very similar to Editor operations.
First, call Start to flag the beginning of the
Sketch operation. Use the MenuString property to
give the operation a name. Perform the edits. Call
Finish to complete the edit operation. Finish
requires an envelope parameter that is used to invalidate/refresh
the display.
Use sketch operations to provide undo and redo capabilities when making modifications to the edit sketch. For example, if you wanted to insert a new point in the middle of the edit sketch, create a sketch operation so the edit can be undone.
ISketchOperation derives from IOperation giving these additional methods: CanRedo, CanUndo, Do, Redo, Undo.
IEnvelope
,
IEditAttributeProperties
,
IOperation
Method Summary | |
---|---|
void |
finish(IEnvelope invalEnv)
Finishes the operation and puts it into the operation stack. |
void |
setMenuString(String rhs1)
The text that appears in the undo menu choice. |
void |
start(IEditor editor)
Starts the operation, caching the existing sketch. |
Methods inherited from interface com.esri.arcgis.systemUI.IOperation |
---|
esri_do, getMenuString, isCanRedo, isCanUndo, redo, undo |
Method Detail |
---|
void setMenuString(String rhs1) throws IOException, AutomationException
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void start(IEditor editor) throws IOException, AutomationException
editor
- A reference to a com.esri.arcgis.editor.IEditor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void finish(IEnvelope invalEnv) throws IOException, AutomationException
invalEnv
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |