|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.editor.AnnotationEditExtension
public class AnnotationEditExtension
An editor extension for creating and editing annotation features.
The AnnotationEditExtension is an editor extension to manage and create Geodatabase annotation features. The primary interface IAnnotationEditExtension can be accessed using IEditor::FindExtension and the CLSID for "esriEditor.AnnotationEditExtension".
Field Summary |
---|
Fields inherited from interface com.esri.arcgis.system.IExtension |
---|
IID, IID7f657ec9_dbf1_11d2_9f2f_00c04f6bc69e, xxDummy |
Constructor Summary | |
---|---|
AnnotationEditExtension()
Constructs a AnnotationEditExtension using ArcGIS Engine. |
|
AnnotationEditExtension(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. AnnotationEditExtension theAnnotationEditExtension = (AnnotationEditExtension) obj; |
Method Summary | |
---|---|
void |
activate(IEditor editor)
Called when the sketch extension is about to be used. |
void |
afterDrawSketch(IEditEventsAfterDrawSketchEvent theEvent)
Called after the edit sketch is drawn. |
boolean |
applies(IEditor editor)
Indicates whether this extension applies to the current edit environment. |
void |
beforeStopEditing(IEditEvents2BeforeStopEditingEvent theEvent)
Fired before StopEditing happens. |
void |
beforeStopOperation(IEditEvents2BeforeStopOperationEvent theEvent)
Called before StopOperation is called. |
void |
beforeStoreFeature(IFeature feature,
IGeometry geometry)
Lets the extension know the feature is about to be stored. |
IDisplayFeedback |
createFeedback()
Called when a new feedback is needed. |
IDisplayFeedback |
createPreSketchFeedback()
Called when a new feedback is needed before the sketch starts. |
IGeometry |
createSketchGeometry(IFeature feature)
The geometry that will be used in the sketch when modifying a feature. |
void |
deactivate()
Called when the sketch extension is no longer needed. |
boolean |
equals(Object o)
Compare this object with another |
IEnumAnnotationConstructor |
getAnnotationConstructors()
The annotation constructors for creating new annotations. |
static String |
getClsid()
getClsid. |
ITextSymbol |
getConstructionSymbol()
The symbol to be used for newly created annotation features. |
int |
getConstructionSymbolID()
The symbol id of newly created annotation features. |
String |
getConstructionText()
The current text that will be used to construct the annotation. |
IAnnotationConstructor |
getCurrentConstructor()
The currently selected annotation constructor. |
int |
getLinkedFeatureID()
The linked feature id for the newly created annotation feature. |
String |
getName()
The name of the extension. |
int |
getSketchGeometryType()
The geometry type used for the edit sketch when creating new features. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isAnnotationTarget()
Indicates if an annotation feature class is the current editor target. |
boolean |
isCanDeleteVertices()
Indicates whether the sketch allows the deleting of vertices. |
boolean |
isCanInsertVertices()
Indicates whether the sketch allows the inserting of additional vertices. |
boolean |
isCanMoveVertices()
Indicates whether the sketch allows the moving of vertices. |
boolean |
isHasFeedback()
Indicates whether the SketchExtension will use a custom feedback. |
boolean |
isHasPreSketchFeedback()
Indicates whether the SketchExtension will use a custom feedback before the sketch starts. |
void |
onAbort(IEditEvents2OnAbortEvent theEvent)
Called when AbortOperation is called. |
void |
onChangeFeature(IEditEventsOnChangeFeatureEvent theEvent)
Called when features are modified. |
void |
onConflictsDetected(IEditEventsOnConflictsDetectedEvent theEvent)
Called when editing conflicts are detected during save. |
void |
onCreateFeature(IEditEventsOnCreateFeatureEvent theEvent)
Called when new features are created. |
void |
onCurrentLayerChanged(IEditEventsOnCurrentLayerChangedEvent theEvent)
Called when the current layer changes. |
void |
onCurrentTaskChanged(IEditEventsOnCurrentTaskChangedEvent theEvent)
Called when the current task changes. |
void |
onCurrentZChanged(IEditEvents2OnCurrentZChangedEvent theEvent)
Called when the CurrentZ changes. |
void |
onDeleteFeature(IEditEventsOnDeleteFeatureEvent theEvent)
Called when features are deleted. |
void |
onKeyDown(int keyState,
int shift)
Called when a key is pressed. |
void |
onKeyUp(int keyState,
int shift)
Called when a key is pressed. |
void |
onRedo(IEditEventsOnRedoEvent theEvent)
Called when RedoOperation is called. |
void |
onSaveEdits(IEditEvents2OnSaveEditsEvent theEvent)
Called when edits are saved. |
void |
onSelectionChanged(IEditEventsOnSelectionChangedEvent theEvent)
Called when the selection changes. |
void |
onSketchFinished(IEditEventsOnSketchFinishedEvent theEvent)
Called when the edit sketch is finished. |
void |
onSketchModified(IEditEventsOnSketchModifiedEvent theEvent)
Called when the edit sketch is modified. |
void |
onStartEditing(IEditEventsOnStartEditingEvent theEvent)
Called when editing begins. |
void |
onStartOperation(IEditEvents2OnStartOperationEvent theEvent)
Called when StartOperation is called. |
void |
onStopEditing(IEditEventsOnStopEditingEvent theEvent)
Called when editing ends. |
void |
onStopOperation(IEditEvents2OnStopOperationEvent theEvent)
Called when StopOperation is called. |
void |
onUndo(IEditEventsOnUndoEvent theEvent)
Called when UndoOperation is called. |
void |
onVertexAdded(IEditEvents2OnVertexAddedEvent theEvent)
Called after a point/vertex is added to the sketch. |
void |
onVertexDeleted(IEditEvents2OnVertexDeletedEvent theEvent)
Called after a point is deleted from the sketch. |
void |
onVertexMoved(IEditEvents2OnVertexMovedEvent theEvent)
Called after a vertex/point has been moved in the sketch. |
void |
setConstructionSymbolID(int text)
The symbol id of newly created annotation features. |
void |
setConstructionText(String text)
The current text that will be used to construct the annotation. |
void |
setCurrentConstructorByRef(IAnnotationConstructor constructor)
The currently selected annotation constructor. |
void |
setLinkedFeatureID(int featureID)
The linked feature id for the newly created annotation feature. |
void |
shutdown()
Shuts down the extension. |
void |
startFeedback(IPoint point)
Called when the feedback needs to be started. |
void |
startFeedbackFromShape(IGeometry shape)
Called when the feedback needs to be started using an existing geometry. |
void |
startPreSketchFeedback(IPoint point)
Called when the feedback needs to be started. |
void |
startup(Object initializationData)
Starts up the extension with the given initialization data. |
IGeometry |
stopFeedback()
Called when the feedback is no longer necessary. |
void |
stopPreSketchFeedback()
Called when the feedback needs to be stopped. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public AnnotationEditExtension() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic AnnotationEditExtension(Object obj) throws IOException
AnnotationEditExtension theAnnotationEditExtension = (AnnotationEditExtension) obj;
obj
to AnnotationEditExtension
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getName() throws IOException, AutomationException
getName
in interface IExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startup(Object initializationData) throws IOException, AutomationException
startup
in interface IExtension
initializationData
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void shutdown() throws IOException, AutomationException
shutdown
in interface IExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumAnnotationConstructor getAnnotationConstructors() throws IOException, AutomationException
Returns the current annotation constructors under the component category 'ESRI Annotation Constructors', returning them in an IEnumAnnotationConstructor.
getAnnotationConstructors
in interface IAnnotationEditExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IAnnotationConstructor getCurrentConstructor() throws IOException, AutomationException
CurrentConstructor returns an IAnnotationConstructor representing the AnnotationExitExtension's current annotation constructor.
getCurrentConstructor
in interface IAnnotationEditExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCurrentConstructorByRef(IAnnotationConstructor constructor) throws IOException, AutomationException
Use this property to check or change the editor's current annotation construction method. When the editor's current task is 'Create New Feature' and the IEditLayers::CurrentLayer is an annotation layer, IAnnotationEditExtension::CurrentConstructor determines the geometry of the edit sketch used to complete the new annotation.
setCurrentConstructorByRef
in interface IAnnotationEditExtension
constructor
- A reference to a com.esri.arcgis.editor.IAnnotationConstructor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isAnnotationTarget() throws IOException, AutomationException
Determines if the editor's target layer is an annotation feature class. This could also be determined by querying the GeometryType of the target layer's feature class. This property returns True for both 8.3 annotation feature classes and annotation updated or created in 9.0.
isAnnotationTarget
in interface IAnnotationEditExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getConstructionText() throws IOException, AutomationException
ConstructionText determines the text string used for constructing new annotation features. ConstructionText may contain a value containing line break characters to construct stacked text. To set the ConstructionText to be multi-line you can use your development environment's carriage return character in the string you set to the ConstructionText property. If the ConstructionText value is an empty string, the AnnotationEditExtension will automatically use the default string "Text".
getConstructionText
in interface IAnnotationEditExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setConstructionText(String text) throws IOException, AutomationException
Use this property to determine the text string used during the creation of new annotation features. Changing this property does not impact the text of existing annotation features.
setConstructionText
in interface IAnnotationEditExtension
text
- The text (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getConstructionSymbolID() throws IOException, AutomationException
Use this property to control the symbol used for constructing new annotation features. When setting the value of ConstructionSymbolID You should check the target annotation feature class' symbol collection to ensure that the ID exists; if it does not exist an error will be returned.
getConstructionSymbolID
in interface IAnnotationEditExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setConstructionSymbolID(int text) throws IOException, AutomationException
setConstructionSymbolID
in interface IAnnotationEditExtension
text
- The text (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITextSymbol getConstructionSymbol() throws IOException, AutomationException
Returns the current text symbol from the symbol collection of the current target annotation feature class. Use the symbol returned when creating feedback for a custom annotation constructor.
getConstructionSymbol
in interface IAnnotationEditExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getLinkedFeatureID() throws IOException, AutomationException
This property allows you to set the FeatureID value for newly-constructed annotation. The value determines the feature in the origin class it is linked to if the annotation feature class is feature-linked.
getLinkedFeatureID
in interface IAnnotationEditExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLinkedFeatureID(int featureID) throws IOException, AutomationException
setLinkedFeatureID
in interface IAnnotationEditExtension
featureID
- The featureID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean applies(IEditor editor) throws IOException, AutomationException
The ::Applies() method is called by the controller when attempting to determine if the extension applies or not.
If more than one class is found implementing IEditSketchExtension the current tool or task will utilize the first extension which ::Applies() returns VARIANT_TRUE.
applies
in interface IEditSketchExtension
applies
in interface IEditSketchExtension2
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.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public void activate(IEditor editor) throws IOException, AutomationException
The ::Activate() method is called by the controller when the EditSktechExtension has been applied and is being initiated for use.
This method is called only if ::Applies() returns VARIANT_TRUE.
Use this method to obtain a reference to the controller (Editor).
activate
in interface IEditSketchExtension
activate
in interface IEditSketchExtension2
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.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public void deactivate() throws IOException, AutomationException
The ::Deactivate() method is the last method called by the controller on the extension. Use it to release any unneeded memory reference pointers which the extension may have been holding on to.
deactivate
in interface IEditSketchExtension
deactivate
in interface IEditSketchExtension2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public void beforeStoreFeature(IFeature feature, IGeometry geometry) throws IOException, AutomationException
The ::BeforeStoreFeature() method is the final call before the feature and its geometry are stored into the base table. Use this method to obtain the sketch geometry, modify it if necessary, and pass it back to the feature.
beforeStoreFeature
in interface IEditSketchExtension
beforeStoreFeature
in interface IEditSketchExtension2
feature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)geometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public boolean isCanInsertVertices() throws IOException, AutomationException
isCanInsertVertices
in interface IEditSketchExtension
isCanInsertVertices
in interface IEditSketchExtension2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public boolean isCanDeleteVertices() throws IOException, AutomationException
isCanDeleteVertices
in interface IEditSketchExtension
isCanDeleteVertices
in interface IEditSketchExtension2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public boolean isCanMoveVertices() throws IOException, AutomationException
isCanMoveVertices
in interface IEditSketchExtension
isCanMoveVertices
in interface IEditSketchExtension2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public int getSketchGeometryType() throws IOException, AutomationException
The ::SketchGeometryType() method is used to specify the geometry type of the editsketch. Keep in mind that this can be different than the geometry type of the feature.
You may want the geometry type of the editsketch to be polygon yet ultimately store it in a featureclass of geometry type polyline.
getSketchGeometryType
in interface IEditSketchExtension
getSketchGeometryType
in interface IEditSketchExtension2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public IGeometry createSketchGeometry(IFeature feature) throws IOException, AutomationException
Use this method when either 1) modifying an existing feature's geometry or 2) creating a new geometry for the EditSketch to use initially.
You can start with the geometry of the feature you have been given the reference to, possibly modify it, and pass it back out -or- create a completely new geometry for intial use by the EditSketch.
This is primarily used in conjunction with the modify task.
createSketchGeometry
in interface IEditSketchExtension
createSketchGeometry
in interface IEditSketchExtension2
feature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public boolean isHasFeedback() throws IOException, AutomationException
Use this method to indicate whether the EditSketchExtension will provide the controller with a custom feedback object.
Returning a value of VARIANT_TRUE will indicate to the controller that it must call the ::CreateFeedback() method in order to create the custom feedback object to be used.
isHasFeedback
in interface IEditSketchExtension
isHasFeedback
in interface IEditSketchExtension2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public IDisplayFeedback createFeedback() throws IOException, AutomationException
The ::CreateFeedback() method is called by the controller to initiate the creation of a custom feedback object associated to the EditSketchExtension .
Use this method to create your feedback object and pass it out so the Editor can use it.
createFeedback
in interface IEditSketchExtension
createFeedback
in interface IEditSketchExtension2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public void startFeedback(IPoint point) throws IOException, AutomationException
The ::StartFeedback() method is called by the controller after the custom feedback object has been created and is ready for use.
This method passes a copy of the Editor's ::CurrentLocation() as input. This point can be used as the starting point for the DisplayFeedback.
startFeedback
in interface IEditSketchExtension
startFeedback
in interface IEditSketchExtension2
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.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public IGeometry stopFeedback() throws IOException, AutomationException
The ::StopFeedback() is called to when the feedback object is no longer needed for the operation.
Use this method to call ::Stop() on the feedback object and return the geometry of that object if necessary.
Example: If your custom feedback object is a type of INewBezierCurveFeedback calling ::Stop() will end feedback and return the geometry so it can be used as the geometry of the resulting feature.
stopFeedback
in interface IEditSketchExtension
stopFeedback
in interface IEditSketchExtension2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public void startFeedbackFromShape(IGeometry shape) throws IOException, AutomationException
The ::StartFeedbackFromShape() method is called by the controller to determine if the custom feedback object will be supplied with an initial geometry.
Example: Pass in a circular geometry and resize it via the feedback to determine a buffer zone.
startFeedbackFromShape
in interface IEditSketchExtension
startFeedbackFromShape
in interface IEditSketchExtension2
shape
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public boolean isHasPreSketchFeedback() throws IOException, AutomationException
Use this method to indicate whether the EditSketchExtension will provide the controller with a custom feedback object used prior to that of the Edit Sketch.
Returning a value of VARIANT_TRUE will indicate to the controller that it must call the ::CreatePreSketchFeedback() method in order to create the custom feedback object to be used.
isHasPreSketchFeedback
in interface IEditSketchExtension2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public IDisplayFeedback createPreSketchFeedback() throws IOException, AutomationException
The ::CreatePreSketchFeedback() method is called by the controller to initiate the creation of a custom feedback object associated to the EditSketchExtension.
This feedback object will be used prior that of the feedback object associated to the Edit Sketch.
Use this method to create your PreSketchFeedback object and pass it out so the Editor can use it.
createPreSketchFeedback
in interface IEditSketchExtension2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public void startPreSketchFeedback(IPoint point) throws IOException, AutomationException
The ::StartPreSketchFeedback() method is called by the controller after the presketch custom feedback object has been created and is ready for use.
This method passes a copy of the Editor's ::CurrentLocation() as input. This point can be used as the starting point for the DisplayFeedback.
startPreSketchFeedback
in interface IEditSketchExtension2
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.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public void stopPreSketchFeedback() throws IOException, AutomationException
The ::StopPreSketchFeedback() is called to when the presketch feedback object is no longer needed for the operation.
Use this method to call ::Stop() on the presketch feedback object and return the geometry of that object if necessary.
stopPreSketchFeedback
in interface IEditSketchExtension2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public void onKeyDown(int keyState, int shift) throws IOException, AutomationException
Use this event to associate a hotkey to your custom sketch tool.
onKeyDown
in interface IEditSketchExtension2
keyState
- The keyState (in)shift
- The shift (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public void onKeyUp(int keyState, int shift) throws IOException, AutomationException
Use this event to associate a hotkey to your custom sketch tool.
onKeyUp
in interface IEditSketchExtension2
keyState
- The keyState (in)shift
- The shift (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISnapEnvironment
,
IEditProperties
,
IExtension
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
public void onSelectionChanged(IEditEventsOnSelectionChangedEvent theEvent) throws IOException, AutomationException
onSelectionChanged
in interface IEditEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onCurrentLayerChanged(IEditEventsOnCurrentLayerChangedEvent theEvent) throws IOException, AutomationException
onCurrentLayerChanged
in interface IEditEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onCurrentTaskChanged(IEditEventsOnCurrentTaskChangedEvent theEvent) throws IOException, AutomationException
onCurrentTaskChanged
in interface IEditEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onSketchModified(IEditEventsOnSketchModifiedEvent theEvent) throws IOException, AutomationException
onSketchModified
in interface IEditEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onSketchFinished(IEditEventsOnSketchFinishedEvent theEvent) throws IOException, AutomationException
onSketchFinished
in interface IEditEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void afterDrawSketch(IEditEventsAfterDrawSketchEvent theEvent) throws IOException, AutomationException
afterDrawSketch
in interface IEditEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onStartEditing(IEditEventsOnStartEditingEvent theEvent) throws IOException, AutomationException
onStartEditing
in interface IEditEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onStopEditing(IEditEventsOnStopEditingEvent theEvent) throws IOException, AutomationException
onStopEditing
in interface IEditEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onConflictsDetected(IEditEventsOnConflictsDetectedEvent theEvent) throws IOException, AutomationException
onConflictsDetected
in interface IEditEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onUndo(IEditEventsOnUndoEvent theEvent) throws IOException, AutomationException
onUndo
in interface IEditEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onRedo(IEditEventsOnRedoEvent theEvent) throws IOException, AutomationException
onRedo
in interface IEditEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onCreateFeature(IEditEventsOnCreateFeatureEvent theEvent) throws IOException, AutomationException
onCreateFeature
in interface IEditEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onChangeFeature(IEditEventsOnChangeFeatureEvent theEvent) throws IOException, AutomationException
onChangeFeature
in interface IEditEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onDeleteFeature(IEditEventsOnDeleteFeatureEvent theEvent) throws IOException, AutomationException
onDeleteFeature
in interface IEditEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onCurrentZChanged(IEditEvents2OnCurrentZChangedEvent theEvent) throws IOException, AutomationException
The OnCurrentZChanged event is fired when the value for IEditor::CurrentZ is modified. IEditor::CurrentZ can be altered programmatically or through the Current Z control available under the Editor category in the Customize dialog.
onCurrentZChanged
in interface IEditEvents2
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onVertexMoved(IEditEvents2OnVertexMovedEvent theEvent) throws IOException, AutomationException
OnVertexMoved is fired when the location of a vertex in the edit sketch is modified. If the an edit sketch vertex is modified programmatically, call IEditSketch2::VertexMoved to ensure all clients listening for this event are notified.
onVertexMoved
in interface IEditEvents2
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onVertexAdded(IEditEvents2OnVertexAddedEvent theEvent) throws IOException, AutomationException
When IEditSketch2::VertexAdded is called, all clients listening to IEditEvents2::OnVertexAdded are notified. This may be used to ensure the maximum number of points in a particular sketch is not exceeded, or if vertex attributes need to be set on each vertex when it is added to the edit sketch.
onVertexAdded
in interface IEditEvents2
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onVertexDeleted(IEditEvents2OnVertexDeletedEvent theEvent) throws IOException, AutomationException
When IEditSketch2::VertexDeleted is called, all clients listening to IEditEvents2::OnVertexDeleted are notified.
onVertexDeleted
in interface IEditEvents2
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void beforeStopEditing(IEditEvents2BeforeStopEditingEvent theEvent) throws IOException, AutomationException
The BeforeStopEditing event is called before edits are committed or discarded. Use this event to perform any processing of the features before the edits are committed.
beforeStopEditing
in interface IEditEvents2
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onAbort(IEditEvents2OnAbortEvent theEvent) throws IOException, AutomationException
OnAbort is called whenever an edit operation is aborted.
onAbort
in interface IEditEvents2
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onStartOperation(IEditEvents2OnStartOperationEvent theEvent) throws IOException, AutomationException
OnStartOperation is raised when IEditor::StartOperation is called. The OnStartOperation event is not fired for SketchOperations.
onStartOperation
in interface IEditEvents2
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void beforeStopOperation(IEditEvents2BeforeStopOperationEvent theEvent) throws IOException, AutomationException
BeforeStopOperation is called before the operation is finished (when the sketch is discarded). Use this event to manipulate the sketch geometry before it is committed.
beforeStopOperation
in interface IEditEvents2
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onStopOperation(IEditEvents2OnStopOperationEvent theEvent) throws IOException, AutomationException
OnStopOperation is called when the operation is successfully completed. At this point the feature has been created but the edit sketch is still available.
onStopOperation
in interface IEditEvents2
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onSaveEdits(IEditEvents2OnSaveEditsEvent theEvent) throws IOException, AutomationException
The OnSaveEdits event is fired whenever a user issues the Save Edits command in the Editor. This event is not raised when a user stops an edit session and chooses to save edits, or if IEditor::StopEditing is called.
onSaveEdits
in interface IEditEvents2
theEvent
- The event
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 |