|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEditTask
Provides access to a task that receives notification when the sketch is complete.
You can find and set an edit task either by using the Name property in conjunction with IEdtior::TaskCount and IEditor::Task or by IEditTaskSearch
IEditAttributeProperties
,
IEditSketch
Method Summary | |
---|---|
void |
activate(IEditor editor,
IEditTask oldTask)
Called by the editor when the task becomes active. |
void |
deactivate()
Called by the editor when the task becomes inactive. |
String |
getName()
The name of the edit task. |
void |
onDeleteSketch()
Notifies the task that the edit sketch has been deleted. |
void |
onFinishSketch()
Notifies the task that the edit sketch is complete. |
Method Detail |
---|
String getName() throws IOException, AutomationException
The Name property is usually used with IEdtior::TaskCount and IEditor::Task to change the editor's current task. It is not a good idea to set an edit task via its index as this may change and is likely different for different users.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IExtension
,
IEditTask
,
ISketchTool
,
esriSketchConstraint
,
IEditSketch
void activate(IEditor editor, IEditTask oldTask) throws IOException, AutomationException
editor
- A reference to a com.esri.arcgis.editor.IEditor (in)oldTask
- A reference to a com.esri.arcgis.editor.IEditTask (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IExtension
,
IEditAttributeProperties
,
IEditSketch
void deactivate() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IExtension
,
IEditTask
,
IEditSketch
void onFinishSketch() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IExtension
,
IEditTask
,
IEditSketch
void onDeleteSketch() throws IOException, AutomationException
OnDeleteSketch gives an edit task an opportunity to clean up any steps that were already completed. For example, if you had added any SketchOperation to the operation stack you may want to remove them.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IExtension
,
IEditTask
,
IEditSketch
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |