|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.editor.DimensionEditExtension
public class DimensionEditExtension
An editor extension for creating and editing dimension features.
DimensionEditExtension is an Editor extension used to manage and create Geodatabase annotation features. The DimensionEditExtension coclass can be accessed using IApplication::FindExtension and the CLSID for "esriEditor.DimensionEditExtension".
Field Summary |
---|
Fields inherited from interface com.esri.arcgis.system.IExtension |
---|
IID, IID7f657ec9_dbf1_11d2_9f2f_00c04f6bc69e, xxDummy |
Constructor Summary | |
---|---|
DimensionEditExtension()
Constructs a DimensionEditExtension using ArcGIS Engine. |
|
DimensionEditExtension(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. DimensionEditExtension theDimensionEditExtension = (DimensionEditExtension) 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. |
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 |
static String |
getClsid()
getClsid. |
int |
getCreateStyleID()
The style id of newly created dimension features. |
IEnumDimensionConstructor |
getDimensionConstructors()
The dimension constructors for creating new dimensions. |
IEditor |
getEditor()
The editor application extension. |
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 |
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 |
isDimensionTarget()
Indicates if a dimension feature class is the current editor target. |
boolean |
isHasFeedback()
Indicates whether the SketchExtension will use a custom feedback. |
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 |
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 |
setCreateStyleID(int styleID)
The style id of newly created dimension features. |
void |
setCurrentConstructorByRef(IDimensionConstructor rhs1)
The currently selected dimension constructor. |
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 |
startup(Object initializationData)
Starts up the extension with the given initialization data. |
IGeometry |
stopFeedback()
Called when the feedback is no longer necessary. |
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 DimensionEditExtension() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic DimensionEditExtension(Object obj) throws IOException
DimensionEditExtension theDimensionEditExtension = (DimensionEditExtension) obj;
obj
to DimensionEditExtension
.
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 int getCreateStyleID() throws IOException, AutomationException
Each Dimension Style has a unique ID value within a dimension feature class. A dimension style is used each time a new dimension feature is created. The style used for the creation of the feature is determined using CreateStyleID property.
When an invalid CreateStyleID value is set, CreateStyleID returns -1.
getCreateStyleID
in interface IDimensionEditExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCreateStyleID(int styleID) throws IOException, AutomationException
setCreateStyleID
in interface IDimensionEditExtension
styleID
- The styleID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumDimensionConstructor getDimensionConstructors() throws IOException, AutomationException
Returns the current dimension constructors under the component category 'ESRI Dimension Constructors', returning them in an IEnumDimensionConstructor.
getDimensionConstructors
in interface IDimensionEditExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCurrentConstructorByRef(IDimensionConstructor rhs1) throws IOException, AutomationException
Sets the DimensionConstructor used to create new dimension features. A reference to an DimensionConstructor is often acquired by obtaining a reference to IEnumDimensionConstructor and looping through until the desired constructor is returned.
setCurrentConstructorByRef
in interface IDimensionEditExtension
rhs1
- A reference to a com.esri.arcgis.editor.IDimensionConstructor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isDimensionTarget() throws IOException, AutomationException
Determines if the editor's target layer is a dimension feature class.
isDimensionTarget
in interface IDimensionEditExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEditor getEditor() throws IOException, AutomationException
Use the Editor to provide quick access the ArcMap Editor. This is particularly useful to QI to Editor::IEditLayers to get the IEditLayers::CurrentLayer. Once you have the CurrentLayer you can access its DimensionClassExtension to retrieve IDimensionClassExtension::ReferenceScaleUnits and IDimensionClassExtension::ReferenceScale. These properties are helpful when building a custom dimension constructor.
getEditor
in interface IDimensionEditExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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 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.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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |