|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISketchOperation2
Provides access to members that control undo/redo capabilities for edit sketch modifications.
ISketchOperation2 was added to provide a new implementation for the Finish method. The new implementation allows tools to give more information about what they modified; typically, the edited sketch point is passed back to clients listening to editor events (IEditEvents2).
For example, if a point is deleted from an edit sketch and ISketchOperation2::Finish is used to complete the operation, the deleted point is passed to clients responding to IEditEvents2::OnVertexDeleted.
IEnvelope
,
IEditAttributeProperties
,
IOperation
Method Summary | |
---|---|
void |
finish(IEnvelope invalEnv,
int opType,
Object data)
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. |
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
All modifications made to an edit sketch should be made between calls to Start and Finish . Start caches the edit sketch's geometry in case the operation is undone; when this occurs, the modified geometry is replaced by the cached geometry.
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, int opType, Object data) throws IOException, AutomationException
InvalEnv determines the envelope that will be invalidated (refreshed) when the sketch operation is completed. OpType determines which method on IEditor::IEditSketch2 will be fired to notify all listeners that the edit sketch has changed and give them appropriate information as to how the edit sketch was modified. Data is a variant value that can pass an IPoint as an argument to the appropriate method on IEditSketch2, such as OnVertexAdded.
invalEnv
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)opType
- A com.esri.arcgis.editor.esriSketchOperationType constant (in)data
- A Variant (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 |