|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.editor.Editor
public class Editor
The Object Editor Extension.
IWorkspaceEdit,
ISpatialCacheManager,
IWorkspaceEditEvents,
Editor,
IFeatureClass.createFeature(),
Serialized Form| Field Summary |
|---|
| Fields inherited from interface com.esri.arcgis.system.IExtension |
|---|
IID, IID7f657ec9_dbf1_11d2_9f2f_00c04f6bc69e, xxDummy |
| Constructor Summary | |
|---|---|
Editor(Object obj)
Construct a Editor using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
|---|---|
void |
abortOperation()
Aborts an edit operation. |
void |
addIEditEvents2Listener(IEditEvents2 theListener)
addIEditEvents2Listener. |
void |
addIEditEvents3Listener(IEditEvents3 theListener)
addIEditEvents3Listener. |
void |
addIEditEvents4Listener(IEditEvents4 theListener)
addIEditEvents4Listener. |
void |
addIEditEvents5Listener(IEditEvents5 theListener)
addIEditEvents5Listener. |
void |
addIEditEventsListener(IEditEvents theListener)
addIEditEventsListener. |
void |
addPoint(IPoint point,
boolean allowUndo)
Adds a point to the edit sketch. |
void |
addSnapAgent(ISnapAgent snapAgent)
Adds a new snap agent to the snap environment. |
void |
addTemplates(IArray editTemplateArray)
Adds the specified edit template. |
void |
afterDraw(IActiveViewEventsAfterDrawEvent theEvent)
Fired after the specified phase is drawn. |
void |
afterItemDraw(IActiveViewEventsAfterItemDrawEvent theEvent)
Fired after an individual view item is drawn. |
void |
applyZ(IPoint point)
Applies editor's Z-capture logic to point if it isn't already z-aware. |
void |
clearSelectedVertices()
Clears selected vertices. |
void |
clearSnapAgents()
Removes all snap agents. |
void |
clearWYSIWYGSketchSymbol()
Clears the WYSIWYG Sketch symbol and its properties. |
void |
contentsChanged(IActiveViewEventsContentsChangedEvent theEvent)
Fired when the contents of the view changes. |
void |
contentsCleared(IActiveViewEventsContentsClearedEvent theEvent)
Fired when the contents of the view is cleared. |
void |
createAccelerators()
Called to create the keyboard accelerators for this extension. |
IGeometry |
createSearchShape(IPoint point)
Creates a geometry using the point and the current search tolerance. |
void |
delayEvents(boolean delay)
Used to batch operations together and minimize notifications. |
void |
drapeGeometry(IGeometry geometry,
boolean addVertices,
IGeometry[] outputGeometry)
Drapes a geometry to the current surface.. |
void |
enableUndoRedo(boolean enabled)
Enable/disable the undo/redo capabilities. |
boolean |
equals(Object o)
Compare this object with another |
void |
finalizeZs(IGeometry geometry)
Resolves NaN Zs to definite values. |
IExtension |
findExtension(IUID extensionID)
Finds the extension given an id. |
IExtension |
findExtension(Object nameOrID)
Finds the extension by CLSID (IUID) or name (String). |
void |
finishSketch()
Completes the current edit sketch. |
void |
finishSketchPart()
Completes a part for the current edit sketch. |
void |
focusMapChanged(IActiveViewEventsFocusMapChangedEvent theEvent)
Fired when a new map is made active. |
boolean |
fullPointSnap(IPoint point)
Always attempts to snap the point using the current snap environment. |
IMarkerSymbol |
getActiveSelectedVertexSymbol()
Symbol used to draw the selected active vertex of the edit sketch. |
IMarkerSymbol |
getActiveSketchVertexSymbol()
Symbol used to draw the selected vertices of the edit sketch. |
double |
getAngularCorrectionOffset()
Angular Correction Offset. |
int |
getAngularUnitPrecision()
Precision used to display angular units. |
ISet |
getAttributeEditClasses()
The list of applicable feature classes. |
IAttributeTransfer |
getAttributeTransfer()
The current attribute type. |
IAnchorPoint |
getAuxiliarySelectionAnchor()
The auxiliary selection anchor. |
void |
getClassID(GUID[] pClassID)
getClassID |
IFeatureLayer |
getCurrentLayer()
Indicates the editor's target layer which new features are added to. |
int |
getCurrentSubtype()
The sub type for new features in the CurrentLayer. |
IEditTask |
getCurrentTask()
The current edit task. |
IEditTemplate |
getCurrentTemplate()
The current edit template. |
double |
getCurrentZ()
Current Z value for the edit sketch. |
int |
getDirectionType()
Direction Type. |
int |
getDirectionUnits()
Direction Units. |
IScreenDisplay |
getDisplay()
Reference to the current display. |
double |
getDistanceCorrectionFactor()
Distance Correction Factor. |
IEnumFeature |
getEditSelection()
The selected features which are editable. |
IEditSketchExtension |
getEditSketchExtension()
The current edit sketch extension. |
int |
getEditState()
The editor's current edit state. |
IWorkspace |
getEditWorkspace()
Reference to the workspace being edited. |
IExtension |
getExtension(int index)
The extension at the specified index. |
IUID |
getExtensionCLSID(int index)
The CLSID of the extension at the specified index. |
int |
getExtensionCount()
The number of extensions loaded in the application. |
IGeometry |
getGeometry()
Geometry stored in the edit sketch. |
int |
getGeometryType()
Type of the geometry stored in the edit sketch. |
IPoint |
getLastPoint()
The last point in the edit sketch. |
ICallout |
getLeaderSymbol()
Symbol used to draw a leader. |
IPoint |
getLocation()
The last known location of the mouse. |
IMap |
getMap()
Reference to the map being edited. |
int |
getMultiuserEditSessionMode()
The multiuser session mode that is used when editing. |
ISymbol |
getMultiWordSelectionSymbol()
Symbol used to draw selected words in multiword annotation. |
String |
getName()
The name of the extension. |
INotifyZFinalize |
getNotifyZFinalize()
Callback used to notify if ZCapture mode fails. |
IApplication |
getParent()
Reference to the parent application. |
int |
getPart()
The index of the current part of the sketch. |
int |
getReportPrecision()
Controls the number of decimal places the editor reports numbers with. |
IWorkspace |
getScratchWorkspace()
Reference to the editor's scratch workspace. |
int |
getSegment()
The index of the current segment of the sketch. |
int |
getSelectedVertexCount()
The number of selected vertices. |
IMarkerSymbol |
getSelectedVertexSymbol()
Symbol used to draw the active vertex of the edit sketch. |
IAnchorPoint |
getSelectionAnchor()
The selection anchor point. |
int |
getSelectionCount()
The number of selected features which are editable. |
IShapeConstructor |
getShapeConstructor()
The currently activated Shape Constructor. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
ILineSymbol |
getSketchSymbol()
Symbol used to draw the lines of the edit sketch. |
IMarkerSymbol |
getSketchVertexSymbol()
Symbol used to draw the vertices of the edit sketch. |
ISnapAgent |
getSnapAgent(int index)
A snap agent at the given index. |
int |
getSnapAgentCount()
The number of active snap agents. |
IMarkerSymbol |
getSnapSymbol()
Symbol used to draw the snap location. |
double |
getSnapTolerance()
The snap tolerance, measured in pixels or map units. |
int |
getSnapToleranceUnits()
The units used for the snap tolerance. |
double |
getSnapZTolerance()
The snap tolerance used for z-values, measured in map units. |
int |
getStickyMoveTolerance()
Controls the sticky move tolerance. |
int |
getStreamGroupingCount()
Controls the number of points to group together when streaming. |
double |
getStreamTolerance()
Controls the streaming tolerance, measured in map units. |
IFunctionalSurface |
getSurface()
Surface used for Z capture. |
IEditTask |
getTask(int index)
An edit task by index. |
IEditTask |
getTaskByUniqueName(String uniqueName)
An edit task by unique name. |
int |
getTaskCount()
The number of edit tasks. |
IEditTemplate |
getTemplate(int index)
The edit template for the specified index. |
int |
getTemplateCount()
The number of edit templates. |
int |
getVertex()
The index of the current vertex of the sketch. |
ISymbol |
getWYSIWYGSketchSymbol()
The WYSIWYG symbol for the sketch. |
int |
getZCaptureType()
Determines method used for z-capture. |
double |
getZDrapingTolerance()
Determines the allowable error from the surface when draping. |
double |
getZOffset()
Determines offset applied to z-value when new vertex is added to edit sketch. |
IMarkerSymbol |
getZSnapSymbol()
Symbol used to indicate when vertex is snapped in Z. |
boolean |
hasEdits()
Indicates whether edits have been made during the session. |
int |
hashCode()
the hashcode for this object |
IFeatureConstruction |
initializeFeatureConstruction()
Initialize a FeatureConstruction object that will use the Editor's ZEnvironment settings. |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
invertAgent(IPoint loc,
int hdc)
Draws the editor's snapping agent. |
boolean |
isAttributeEditAll()
Indicates if the pre-populate attributes dialog is used for all layers or just the selected layers. |
boolean |
isAutoReconcileConflictsByAttribute()
Indicates whether conflicts will be detected and resolved by attributes. |
boolean |
isAutoReconcileEditSessionWins()
Indicates whether conflicts are resolved in favor of the edit session. |
boolean |
isAutoSaveChecksConflicts()
Indicates whether the editor checks if conflicts were detected during auto reconciliation prior to automatically saving. |
boolean |
isAutoSaveOnVersionRedefined()
Indicates whether the stop editing process should automatically reconcile an edit session and save the version without notification. |
boolean |
isAuxiliarySelectionAnchorEnabled()
Indicates whether the selection anchor is drawn. |
boolean |
isClassicSnapping()
Indicates whether the classic editing snapping will be used. |
void |
isDirty()
isDirty |
boolean |
isDraping()
Indicates whether sketches are draped onto the surface. |
boolean |
isEditable(IFeatureLayer layer)
Determines if a specific feature layer is editable. |
boolean |
isMAware()
Indicates if the edit sketch geometry will contain Ms. |
boolean |
isNonversionedAttributionEnabled()
Indicates if the attribute query for newly created features is enabled. |
boolean |
isPartComplete()
Indicates whether FinishPart has been called on the edit sketch. |
boolean |
isShowAnnoHandles()
Indicates whether the edit annotation tool will show the resize and rotate handles. |
boolean |
isShowConstructionToolbars()
Indicates whether construction toolbars will be displayed while drawing a sketch. |
boolean |
isSketchSymbolIsWYSIWYG()
Indicates whether the sketch symbol is WYSIWYG. |
boolean |
isSketchSymbolRespectsRefScale()
Indicates whether the sketch symbol should respect the map's reference scale. |
boolean |
isSnapTips()
Indicates whether to show the snap tips. |
boolean |
isSnapToSketch()
Indicates whether the sketch will be added to the snapping cache. |
boolean |
isStretchGeometry()
Indicates if the edit sketch is stretched when one of its vertices is moved. |
boolean |
isUseFollowLineFeatureMode()
Indicates whether the edit annotation tool will use follow feature mode when moving annotation related to lines. |
boolean |
isUseFollowPolygonFeatureMode()
Indicates whether the edit annotation tool will use follow feature mode when moving annotation related to polygons. |
boolean |
isUseGroundToGrid()
Indicates whether to use Ground to Grid. |
boolean |
isUseSnapZTolerance()
Indicates whether the SnapZTolerance property is used when Z snapping. |
boolean |
isUseWYSIWYGSketchSymbol()
Indicates whether the sketch is drawn with WYSIWYG symbology. |
boolean |
isUseZDrapingTolerance()
Indicates whether the ZDrapingTolerance property is used when adding segments to the edit sketch. |
boolean |
isUseZOffset()
Indicates whether new z-values are modified by the ZOffset property. |
boolean |
isVertexSelected(int part,
int vertex)
Is a vertex selected. |
boolean |
isZAware()
Indicates if the edit sketch geometry will contain Zs. |
void |
itemAdded(IActiveViewEventsItemAddedEvent theEvent)
Fired when an item is added to the view. |
void |
itemDeleted(IActiveViewEventsItemDeletedEvent theEvent)
Fired when an item is deleted from the view. |
void |
itemReordered(IActiveViewEventsItemReorderedEvent theEvent)
Fired when a view item is reordered. |
void |
load(IStream pstm)
load |
void |
modifySketch()
Call to notify listeners that the sketch has been changed. |
void |
readExternal(ObjectInput in)
|
void |
redoOperation()
Redo an edit operation. |
void |
refreshSketch()
Invalidates the portion of the display that is occupied by the sketch. |
void |
removeAllTemplatesInLayer(ILayer layer)
Removes all templates from the specified layer. |
void |
removeAllTemplatesInMap(IMap map)
Removes all templates from the specified map. |
void |
removeIEditEvents2Listener(IEditEvents2 theListener)
removeIEditEvents2Listener. |
void |
removeIEditEvents3Listener(IEditEvents3 theListener)
removeIEditEvents3Listener. |
void |
removeIEditEvents4Listener(IEditEvents4 theListener)
removeIEditEvents4Listener. |
void |
removeIEditEvents5Listener(IEditEvents5 theListener)
removeIEditEvents5Listener. |
void |
removeIEditEventsListener(IEditEvents theListener)
removeIEditEventsListener. |
void |
removeSnapAgent(int index)
Removes the snap agent at the given index. |
void |
removeTemplate(IEditTemplate editTemplate)
Removes the specified edit template. |
void |
resetAuxiliarySelectionAnchorLocation()
Places the auxiliary selection anchor near the main anchor. |
void |
save(IStream pstm,
int fClearDirty)
save |
IEnumFeature |
searchSelection(IPoint point)
Searches the edit selection using the given location. |
void |
selectionChanged(IActiveViewEventsSelectionChangedEvent theEvent)
Call this function to fire the selection changed event. |
void |
selectVertex(int part,
int vertex)
Selects a vertex. |
void |
setActiveSelectedVertexSymbolByRef(IMarkerSymbol symbol)
Symbol used to draw the selected active vertex of the edit sketch. |
void |
setActiveSketchVertexSymbolByRef(IMarkerSymbol symbol)
Symbol used to draw the selected vertices of the edit sketch. |
void |
setAngularCorrectionOffset(double angOffset)
Angular Correction Offset. |
void |
setAngularUnitPrecision(int auPrecision)
Precision used to display angular units. |
void |
setAttributeEditAll(boolean pFlag)
Indicates if the pre-populate attributes dialog is used for all layers or just the selected layers. |
void |
setAttributeEditClassesByRef(ISet ppClasses)
The list of applicable feature classes. |
void |
setAttributeTransferType(String rhs1)
The current attribute type. |
void |
setAutoReconcileConflictsByAttribute(boolean byatt)
Indicates whether conflicts will be detected and resolved by attributes. |
void |
setAutoReconcileEditSessionWins(boolean editWins)
Indicates whether conflicts are resolved in favor of the edit session. |
void |
setAutoSaveChecksConflicts(boolean checksConflicts)
Indicates whether the editor checks if conflicts were detected during auto reconciliation prior to automatically saving. |
void |
setAutoSaveOnVersionRedefined(boolean stretch)
Indicates whether the stop editing process should automatically reconcile an edit session and save the version without notification. |
void |
setAuxiliarySelectionAnchorEnabled(boolean auxSelAnchorEnabled)
Indicates whether the selection anchor is drawn. |
void |
setClassicSnapping(boolean snap)
Indicates whether the classic editing snapping will be used. |
void |
setCurrentLayer(IFeatureLayer layer,
int subtype)
The editor's target layer and subtype for new features. |
void |
setCurrentTaskByRef(IEditTask task)
The current edit task. |
void |
setCurrentTemplateByRef(IEditTemplate editTemplate)
The current edit template. |
void |
setCurrentZ(double z)
Current Z value for the edit sketch. |
void |
setDirectionType(int dirType)
Direction Type. |
void |
setDirectionUnits(int dirUnits)
Direction Units. |
void |
setDistanceCorrectionFactor(double distFactor)
Distance Correction Factor. |
void |
setDraping(boolean useDraping)
Indicates whether sketches are draped onto the surface. |
void |
setEditSketchExtensionByRef(IEditSketchExtension extension)
The current edit sketch extension. |
void |
setGeometryByRef(IGeometry geometry)
Geometry stored in the edit sketch. |
void |
setGeometryType(int geomType)
Type of the geometry stored in the edit sketch. |
void |
setLeaderSymbolByRef(ICallout callout)
Symbol used to draw a leader. |
void |
setMAware(boolean aware)
Indicates if the edit sketch geometry will contain Ms. |
void |
setMultiuserEditSessionMode(int esm)
The multiuser session mode that is used when editing. |
void |
setMultiWordSelectionSymbolByRef(ISymbol symbol)
Symbol used to draw selected words in multiword annotation. |
void |
setNonversionedAttributionEnabled(boolean pFlag)
Indicates if the attribute query for newly created features is enabled. |
void |
setNotifyZFinalizeByRef(INotifyZFinalize callback)
Callback used to notify if ZCapture mode fails. |
void |
setReportPrecision(int numDecs)
Controls the number of decimal places the editor reports numbers with. |
void |
setSelectedVertexSymbolByRef(IMarkerSymbol symbol)
Symbol used to draw the active vertex of the edit sketch. |
void |
setShapeConstructorByRef(IShapeConstructor shapeConstructor)
The currently activated Shape Constructor. |
void |
setShowAnnoHandles(boolean flag)
Indicates whether the edit annotation tool will show the resize and rotate handles. |
void |
setShowConstructionToolbars(boolean showConstructionToolbars)
Indicates whether construction toolbars will be displayed while drawing a sketch. |
void |
setSketchSymbolByRef(ILineSymbol symbol)
Symbol used to draw the lines of the edit sketch. |
void |
setSketchVertexSymbolByRef(IMarkerSymbol symbol)
Symbol used to draw the vertices of the edit sketch. |
void |
setSnapSymbolByRef(IMarkerSymbol symbol)
Symbol used to draw the snap location. |
void |
setSnapTips(boolean tips)
Indicates whether to show the snap tips. |
void |
setSnapTolerance(double tol)
The snap tolerance, measured in pixels or map units. |
void |
setSnapToleranceUnits(int units)
The units used for the snap tolerance. |
void |
setSnapToSketch(boolean snap)
Indicates whether the sketch will be added to the snapping cache. |
void |
setSnapZTolerance(double tolerance)
The snap tolerance used for z-values, measured in map units. |
void |
setStickyMoveTolerance(int tol)
Controls the sticky move tolerance. |
void |
setStreamGroupingCount(int tol)
Controls the number of points to group together when streaming. |
void |
setStreamTolerance(double tol)
Controls the streaming tolerance, measured in map units. |
void |
setStretchGeometry(boolean stretch)
Indicates if the edit sketch is stretched when one of its vertices is moved. |
void |
setSurfaceByRef(IFunctionalSurface surface)
Surface used for Z capture. |
void |
setUseFollowLineFeatureMode(boolean flag)
Indicates whether the edit annotation tool will use follow feature mode when moving annotation related to lines. |
void |
setUseFollowPolygonFeatureMode(boolean flag)
Indicates whether the edit annotation tool will use follow feature mode when moving annotation related to polygons. |
void |
setUseGroundToGrid(boolean g2g)
Indicates whether to use Ground to Grid. |
void |
setUseSnapZTolerance(boolean useSnapZTolerance)
Indicates whether the SnapZTolerance property is used when Z snapping. |
void |
setUseWYSIWYGSketchSymbol(boolean useWYSIWYGSketchSymbol)
Indicates whether the sketch is drawn with WYSIWYG symbology. |
void |
setUseZDrapingTolerance(boolean useZDrapingTolerance)
Indicates whether the ZDrapingTolerance property is used when adding segments to the edit sketch. |
void |
setUseZOffset(boolean useZOffset)
Indicates whether new z-values are modified by the ZOffset property. |
void |
setWYSIWYGSketchSymbol(ISymbol symbol,
boolean isWYSIWYG,
boolean respectsRefScale)
The WYSIWYG Sketch symbol and its properties. |
void |
setZAware(boolean aware)
Indicates if the edit sketch geometry will contain Zs. |
void |
setZCaptureType(int zCaptureType)
Determines method used for z-capture. |
void |
setZDrapingTolerance(double zDrapingTolerance)
Determines the allowable error from the surface when draping. |
void |
setZOffset(double zOffset)
Determines offset applied to z-value when new vertex is added to edit sketch. |
void |
setZSnapSymbolByRef(IMarkerSymbol symbol)
Symbol used to indicate when vertex is snapped in Z. |
void |
shutdown()
Shuts down the extension. |
boolean |
snapPoint(IPoint point)
Attempts to snap the point using the current snap environment. |
boolean |
snapToIntersection(IPoint point,
IGeometry pIntersection)
Attempts to snap the specified point to the given intersection. |
void |
spatialReferenceChanged(IActiveViewEventsSpatialReferenceChangedEvent theEvent)
Fired when the spatial reference is changed. |
void |
startEditing(IWorkspace workspace)
Starts an edit session. |
void |
startOperation()
Starts an edit operation. |
void |
startup(Object initializationData)
Starts up the extension with the given initialization data. |
void |
stopEditing(boolean saveChanges)
Stops an edit session. |
void |
stopOperation(String menuText)
Stops an edit operation. |
void |
templateModified(IEditTemplate editTemplate)
Broadcasts the change to the rest of the system. |
void |
undoOperation()
Undo an edit operation. |
void |
unselectVertex(int part,
int vertex)
Unselects a vertex. |
void |
vertexAdded(IPoint point)
Call to notify listeners that a sketch vertex has been added. |
void |
vertexDeleted(IPoint point)
Call to notify listeners that a sketch vertex has been deleted. |
void |
vertexMoved(IPoint point)
Call to notify listeners that a sketch vertex has been moved. |
void |
viewRefreshed(IActiveViewEventsViewRefreshedEvent theEvent)
Fired when view is refreshed before draw happens. |
void |
writeExternal(ObjectOutput out)
|
| 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 Editor(Object obj)
throws IOException
obj to Editor. *
Editor o = (Editor)obj; // will not work
Editor o = new Editor(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
Editor theEditor = (Editor) obj;| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void addIEditEventsListener(IEditEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.editor.IEditEvents interface.
IOException - If there are communications problems.
public void removeIEditEventsListener(IEditEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.editor.IEditEvents interface.
IOException - If there are communications problems.
public void addIEditEvents2Listener(IEditEvents2 theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.editor.IEditEvents2 interface.
IOException - If there are communications problems.
public void removeIEditEvents2Listener(IEditEvents2 theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.editor.IEditEvents2 interface.
IOException - If there are communications problems.
public void addIEditEvents3Listener(IEditEvents3 theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.editor.IEditEvents3 interface.
IOException - If there are communications problems.
public void removeIEditEvents3Listener(IEditEvents3 theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.editor.IEditEvents3 interface.
IOException - If there are communications problems.
public void addIEditEvents4Listener(IEditEvents4 theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.editor.IEditEvents4 interface.
IOException - If there are communications problems.
public void removeIEditEvents4Listener(IEditEvents4 theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.editor.IEditEvents4 interface.
IOException - If there are communications problems.
public void addIEditEvents5Listener(IEditEvents5 theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.editor.IEditEvents5 interface.
IOException - If there are communications problems.
public void removeIEditEvents5Listener(IEditEvents5 theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.editor.IEditEvents5 interface.
IOException - If there are communications problems.
public IApplication getParent()
throws IOException,
AutomationException
getParent in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IApplication,
IEditor.getEditState()
public int getEditState()
throws IOException,
AutomationException
getEditState in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.esriEditState
public IMap getMap()
throws IOException,
AutomationException
getMap in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IMap
public IScreenDisplay getDisplay()
throws IOException,
AutomationException
getDisplay in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IWorkspace getEditWorkspace()
throws IOException,
AutomationException
getEditWorkspace in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IWorkspace getScratchWorkspace()
throws IOException,
AutomationException
getScratchWorkspace in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void startEditing(IWorkspace workspace)
throws IOException,
AutomationException
Data from multiple workspaces may be loaded into a single map. However, the editor can only edit one workspace at a time. For this reason, when calling StartEditing, you must specify the workspace you wish to edit and this workspace must be represented in the focus map. If no feature layers from the workspace are present in the focus map, StartEditing will fail.
StartEditing may also fail if the data is read-only or if it is non versioned SDE data.
Any references to features, cursors, or other
geodatabase classes that you intend to use in the edit session
should be acquired inside the edit session.
startEditing in interface IEditorworkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void stopEditing(boolean saveChanges)
throws IOException,
AutomationException
stopEditing in interface IEditorsaveChanges - The saveChanges (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean hasEdits()
throws IOException,
AutomationException
If Not pEditor.HasEdits Then
pEditor.StopEditing False
Else
'
'Code to prompt for Save Changes (Yes/No)
'
End If
hasEdits in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void startOperation()
throws IOException,
AutomationException
All edits to features that participate in a Topology or Geometric Network must be bracketed within an edit operation.
If you call StartOperation when an edit operation has already been started, you will get an error.
startOperation in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditor.stopOperation(String)
public void abortOperation()
throws IOException,
AutomationException
abortOperation in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void stopOperation(String menuText)
throws IOException,
AutomationException
All edits to features that participate in a Topology or Geometric Network must be bracketed within an edit operation.
stopOperation in interface IEditormenuText - The menuText (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditor.startOperation()
public void undoOperation()
throws IOException,
AutomationException
undoOperation in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void redoOperation()
throws IOException,
AutomationException
redoOperation in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void enableUndoRedo(boolean enabled)
throws IOException,
AutomationException
Use EnableUndoRedo to control whether edits to features can be rolled back. Edits made programmatically must be done within an edit operation in order to roll back an operation. If EnableUndoRedo is False then any changes are committed. To discard those edits the current edit session must be stopped and edits not saved. This method is a shortcut to calling IWorkspaceEdit::EnableUndoRedo on the current edit workspace.
enableUndoRedo in interface IEditorenabled - The enabled (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void delayEvents(boolean delay)
throws IOException,
AutomationException
delayEvents in interface IEditordelay - The delay (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumFeature getEditSelection()
throws IOException,
AutomationException
public void GetMapSelection()
{
//Get a reference to IApplication app in ICommand::OnCreate
hook parameter.
IEditor sEditor = app.FindExtensionByName("ESRI Object
Editor") as IEditor;
IEnumFeature enumFeature = sEditor.EditSelection;
enumFeature.Reset();
IFeature selFeature = enumFeature.Next();
for (int fCount = 0; fCount < sEditor.SelectionCount;
fCount++)
{
IGeometry selGeometry = selFeature.Shape;
'Put code here to do something with the
geometry
System.Windows.Forms.MessageBox.Show(selGeometry.GeometryType);
selFeature = enumFeature.Next;
}
}
getEditSelection in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSelectionCount()
throws IOException,
AutomationException
getSelectionCount in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IExtension findExtension(IUID extensionID)
throws IOException,
AutomationException
findExtension in interface IEditorextensionID - A reference to a com.esri.arcgis.system.IUID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getTaskCount()
throws IOException,
AutomationException
getTaskCount in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditor.getTask(int),
IEditor.getCurrentTask(),
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask),
IEditor.setCurrentTaskByRef(com.esri.arcgis.editor.IEditTask),
IEditTask.deactivate(),
IEditTask.onFinishSketch(),
IEditTask.onDeleteSketch(),
IEditTask.getName()
public IEditTask getTask(int index)
throws IOException,
AutomationException
getTask in interface IEditorindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCurrentTaskByRef(IEditTask task)
throws IOException,
AutomationException
setCurrentTaskByRef in interface IEditortask - A reference to a com.esri.arcgis.editor.IEditTask (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditor.getTask(int),
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask),
IEditTask.deactivate(),
IEditTask.onFinishSketch(),
IEditTask.onDeleteSketch(),
IEditTask.getName(),
IEditor.getTaskCount()
public IEditTask getCurrentTask()
throws IOException,
AutomationException
getCurrentTask in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditor.getTask(int),
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask),
IEditTask.deactivate(),
IEditTask.onFinishSketch(),
IEditTask.onDeleteSketch(),
IEditTask.getName(),
IEditor.getTaskCount()
public IGeometry createSearchShape(IPoint point)
throws IOException,
AutomationException
createSearchShape in interface IEditorpoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumFeature searchSelection(IPoint point)
throws IOException,
AutomationException
searchSelection in interface IEditorpoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void invertAgent(IPoint loc,
int hdc)
throws IOException,
AutomationException
invertAgent in interface IEditorloc - A reference to a com.esri.arcgis.geometry.IPoint (in)hdc - The hdc (A COM typedef) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditProperties.getSnapSymbol()
public IAnchorPoint getSelectionAnchor()
throws IOException,
AutomationException
getSelectionAnchor in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditor2.getAuxiliarySelectionAnchor()
public IPoint getLocation()
throws IOException,
AutomationException
getLocation in interface IEditorIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ISketchTool,
esriSketchConstraint
public IAnchorPoint getAuxiliarySelectionAnchor()
throws IOException,
AutomationException
The AuxiliarySelectionAnchor is a second selection anchor that can be used in tandem with the Editor's SelectionAnchor. The AuxiliarySelectionAnchor is represented as a small '+' sign on the display.
In some cases you may want to rotate features around the Editor's selection anchor and snap them to other feature geometries. Like the SelectionAnchor, the AuxiliarySelectionAnchor honors any active snap agents.
getAuxiliarySelectionAnchor in interface IEditor2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAuxiliarySelectionAnchorEnabled()
throws IOException,
AutomationException
The auxiliary selection anchor can be displayed at any point; however, it can only be used while using the Editor's Scale or Rotate tools.
isAuxiliarySelectionAnchorEnabled in interface IEditor2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAuxiliarySelectionAnchorEnabled(boolean auxSelAnchorEnabled)
throws IOException,
AutomationException
setAuxiliarySelectionAnchorEnabled in interface IEditor2auxSelAnchorEnabled - The auxSelAnchorEnabled (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void resetAuxiliarySelectionAnchorLocation()
throws IOException,
AutomationException
Resets the auxiliary selection anchor to the default location. The anchor location is also reset whenever the feature selection changes.
resetAuxiliarySelectionAnchorLocation in interface IEditor2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getTemplateCount()
throws IOException,
AutomationException
This method returns the total number of templates for all layers within the current edit workspace. The returned value will be 0 if you are not in an edit session. To examine templates for layers outside an edit session refer to IEditTemplateManager in the Carto assembly.
getTemplateCount in interface IEditor3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEditTemplate getTemplate(int index)
throws IOException,
AutomationException
getTemplate in interface IEditor3index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addTemplates(IArray editTemplateArray)
throws IOException,
AutomationException
addTemplates in interface IEditor3editTemplateArray - A reference to a com.esri.arcgis.system.IArray (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeTemplate(IEditTemplate editTemplate)
throws IOException,
AutomationException
removeTemplate in interface IEditor3editTemplate - A reference to a com.esri.arcgis.carto.IEditTemplate (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeAllTemplatesInLayer(ILayer layer)
throws IOException,
AutomationException
removeAllTemplatesInLayer in interface IEditor3layer - A reference to a com.esri.arcgis.carto.ILayer (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeAllTemplatesInMap(IMap map)
throws IOException,
AutomationException
removeAllTemplatesInMap in interface IEditor3map - A reference to a com.esri.arcgis.carto.IMap (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEditTemplate getCurrentTemplate()
throws IOException,
AutomationException
getCurrentTemplate in interface IEditor3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCurrentTemplateByRef(IEditTemplate editTemplate)
throws IOException,
AutomationException
setCurrentTemplateByRef in interface IEditor3editTemplate - A reference to a com.esri.arcgis.carto.IEditTemplate (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void templateModified(IEditTemplate editTemplate)
throws IOException,
AutomationException
templateModified in interface IEditor3editTemplate - A reference to a com.esri.arcgis.carto.IEditTemplate (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getPart()
throws IOException,
AutomationException
You must right-click on the desired part of the edit sketch to set this property correctly. The wrong part index will be returned if you do not right-click on the desired part beforehand. For example, if an edit sketch has two parts, Part will always return a 0 (all sketches have at least one part) until you right click on the second part.
getPart in interface IEditSketchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditSketch.getSegment(),
IEditSketch.getVertex()
public int getSegment()
throws IOException,
AutomationException
You must right-click on the desired segment in the edit sketch to set this property correctly. The wrong segment index will be returned if you do not right-click on the desired segment beforehand. A value of -1 indicates no segment has been selected. For example, if your last right-click was on an edit sketch vertex, the Segment property will return a value of -1.
getSegment in interface IEditSketchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditSketch.getVertex(),
IEditSketch.getPart()
public int getVertex()
throws IOException,
AutomationException
You must right-click on the desired vertex in the edit sketch to set this property correctly. The wrong vertex index will be returned if you do not right-click on the desired vertex beforehand. A value of -1 means no vertex has been selected. For example, if your last right-click was on a segment in the edit sketch, the Vertex property will be set to -1.
Use Part, Segment and Vertex when creating custom commands for the sketch context menu. For example, to delete a vertex in the edit sketch, right-click on the vertex to retrieve its index and call IPointCollection::RemovePoints .
getVertex in interface IEditSketchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditSketch.getSegment(),
IEditSketch.getPart()
public int getGeometryType()
throws IOException,
AutomationException
getGeometryType in interface IEditSketchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setGeometryType(int geomType)
throws IOException,
AutomationException
setGeometryType in interface IEditSketchgeomType - A com.esri.arcgis.geometry.esriGeometryType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGeometry getGeometry()
throws IOException,
AutomationException
getGeometry in interface IEditSketchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setGeometryByRef(IGeometry geometry)
throws IOException,
AutomationException
setGeometryByRef in interface IEditSketchgeometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addPoint(IPoint point,
boolean allowUndo)
throws IOException,
AutomationException

addPoint in interface IEditSketchpoint - A reference to a com.esri.arcgis.geometry.IPoint (in)allowUndo - The allowUndo (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void refreshSketch()
throws IOException,
AutomationException
refreshSketch in interface IEditSketchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void finishSketch()
throws IOException,
AutomationException
finishSketch in interface IEditSketchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void finishSketchPart()
throws IOException,
AutomationException
finishSketchPart in interface IEditSketchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPoint getLastPoint()
throws IOException,
AutomationException
getLastPoint in interface IEditSketchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void modifySketch()
throws IOException,
AutomationException
modifySketch in interface IEditSketchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isZAware()
throws IOException,
AutomationException
If the EditSketch geometry contains elevation (z) values, the ZAware property will return a boolean value of True.
To view the z values for the edit sketch right click over a sketch segment and display the edit sketch properties dialog. If the sketch is ZAware, an additional column will appear next to the y column showing the z values.
isZAware in interface IEditSketch2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setZAware(boolean aware)
throws IOException,
AutomationException
setZAware in interface IEditSketch2aware - The aware (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getCurrentZ()
throws IOException,
AutomationException
getCurrentZ in interface IEditSketch2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCurrentZ(double z)
throws IOException,
AutomationException
setCurrentZ in interface IEditSketch2z - The z (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setEditSketchExtensionByRef(IEditSketchExtension extension)
throws IOException,
AutomationException
setEditSketchExtensionByRef in interface IEditSketch2extension - A reference to a com.esri.arcgis.editor.IEditSketchExtension (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEditSketchExtension getEditSketchExtension()
throws IOException,
AutomationException
Returns the current edit sketch extension. Dimensions and Geodatabase annotation features utilize edit sketch extensions when creating and modifying their geometry.
getEditSketchExtension in interface IEditSketch2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void vertexAdded(IPoint point)
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.
vertexAdded in interface IEditSketch2point - A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void vertexDeleted(IPoint point)
throws IOException,
AutomationException
When IEditSketch2::VertexDeleted is called, all clients listening to IEditEvents2::OnVertexDeleted are notified. This may be used to ensure the minimum number of points in a particular sketch is not exceeded.
vertexDeleted in interface IEditSketch2point - A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void vertexMoved(IPoint point)
throws IOException,
AutomationException
When IEditSketch2::VertexMoved is called, all clients listening to IEditEvents2::OnVertexMoved are notified.
vertexMoved in interface IEditSketch2point - A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isMAware()
throws IOException,
AutomationException
If the EditSketch geometry contains measures (Ms), the MAware property will return a boolean value of True.
To view the m values for the edit sketch right click over a sketch segment and display the properties dialog. If the sketch is MAware, an additional column will appear to the right showing the m values.
If the edit sketch is m-aware, all newly inserted vertices will have a value of NaN. Inserting an m-aware sketch into a feature that is not m-aware will return an error.
isMAware in interface IEditSketch2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMAware(boolean aware)
throws IOException,
AutomationException
setMAware in interface IEditSketch2aware - The aware (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isPartComplete()
throws IOException,
AutomationException
Use this property to determine when the current part of the sketch is finished.
isPartComplete in interface IEditSketch2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isVertexSelected(int part,
int vertex)
throws IOException,
AutomationException
isVertexSelected in interface IEditSketch3part - The part (in)vertex - The vertex (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void clearSelectedVertices()
throws IOException,
AutomationException
clearSelectedVertices in interface IEditSketch3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void selectVertex(int part,
int vertex)
throws IOException,
AutomationException
selectVertex in interface IEditSketch3part - The part (in)vertex - The vertex (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void unselectVertex(int part,
int vertex)
throws IOException,
AutomationException
unselectVertex in interface IEditSketch3part - The part (in)vertex - The vertex (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSelectedVertexCount()
throws IOException,
AutomationException
getSelectedVertexCount in interface IEditSketch3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setWYSIWYGSketchSymbol(ISymbol symbol,
boolean isWYSIWYG,
boolean respectsRefScale)
throws IOException,
AutomationException
setWYSIWYGSketchSymbol in interface IEditSketch3symbol - A reference to a com.esri.arcgis.display.ISymbol (in)isWYSIWYG - The isWYSIWYG (in)respectsRefScale - The respectsRefScale (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void clearWYSIWYGSketchSymbol()
throws IOException,
AutomationException
clearWYSIWYGSketchSymbol in interface IEditSketch3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISymbol getWYSIWYGSketchSymbol()
throws IOException,
AutomationException
getWYSIWYGSketchSymbol in interface IEditSketch3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSketchSymbolIsWYSIWYG()
throws IOException,
AutomationException
isSketchSymbolIsWYSIWYG in interface IEditSketch3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSketchSymbolRespectsRefScale()
throws IOException,
AutomationException
isSketchSymbolRespectsRefScale in interface IEditSketch3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IShapeConstructor getShapeConstructor()
throws IOException,
AutomationException
getShapeConstructor in interface IEditSketch3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setShapeConstructorByRef(IShapeConstructor shapeConstructor)
throws IOException,
AutomationException
setShapeConstructorByRef in interface IEditSketch3shapeConstructor - A reference to a com.esri.arcgis.editor.IShapeConstructor (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getName()
throws IOException,
AutomationException
getName in interface IExtensionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void startup(Object initializationData)
throws IOException,
AutomationException
startup in interface IExtensioninitializationData - 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 IExtensionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void contentsChanged(IActiveViewEventsContentsChangedEvent theEvent)
throws IOException,
AutomationException
The Map object fires this event when a new document is loaded. Adding a new layer to a Map does not trigger this event.
The PageLayout object fires the event when IGraphicsContainer::DeleteAllElements in called and when a new document is loaded.
contentsChanged in interface IActiveViewEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IActiveView.contentsChanged()
public void contentsCleared(IActiveViewEventsContentsClearedEvent theEvent)
throws IOException,
AutomationException
contentsCleared in interface IActiveViewEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void itemAdded(IActiveViewEventsItemAddedEvent theEvent)
throws IOException,
AutomationException
The Map fires the event every time a new layer is added.
The PageLayout fires this event whenever a new element is added to the layout. Elements include not only graphics but data frames as well.
itemAdded in interface IActiveViewEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void itemDeleted(IActiveViewEventsItemDeletedEvent theEvent)
throws IOException,
AutomationException
The PageLayout object fires this event whenever elements are deleted from the layout.
The Map object fires this event when a layer is removed.
itemDeleted in interface IActiveViewEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void itemReordered(IActiveViewEventsItemReorderedEvent theEvent)
throws IOException,
AutomationException
The Map objects only fire this event whenever IMap::MoveLayer is called. In the ArcMap application, this occurs when you reorder layers in the table of contents. The Map will also fire this event when new layers are added.
The PageLayout object fires this event when changing the order of graphics. For example, IGraphicsContainer::BringToFront, PutElementOrder, SendToBack, SendBackward, and BringForward all fire this event. These functions are on ArcMap's Drawing menu under the Order pull right menu. Although the Map object is also a graphics container, it does not fire this event when its graphics are reordered.
itemReordered in interface IActiveViewEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void selectionChanged(IActiveViewEventsSelectionChangedEvent theEvent)
throws IOException,
AutomationException
selectionChanged in interface IActiveViewEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void viewRefreshed(IActiveViewEventsViewRefreshedEvent theEvent)
throws IOException,
AutomationException
Method that gets fired in response to IActiveView::Refresh and IActiveView::PartialRefresh.
This event is useful in the case where you're watching for something to change in the view and there aren't any specific events for that change (e.g. ContentsChanged, ItemAdded). You can always listen for this method as a last resort. Care must be taken however to be very efficient in your implementation of this event because it will be called quite often.
The event parameters directly coincide with the arguments to IActiveView::PartialRefresh. For additional information about the arguments, see the help for that method.
If the event object connects to both the layout and a map, then the view parameter tells you which object initiated the event.
In an implementation of this method you typically want to check the phase and respond to only one. Otherwise, your code will execute multiple times per drawing sequence.
viewRefreshed in interface IActiveViewEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void afterDraw(IActiveViewEventsAfterDrawEvent theEvent)
throws IOException,
AutomationException
afterDraw in interface IActiveViewEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void afterItemDraw(IActiveViewEventsAfterItemDrawEvent theEvent)
throws IOException,
AutomationException
AfterItemDraw can be used to execute after each individual item has drawn. Event firing can be an expensive operation (time consuming) when there are many layers in a map, however. As a result, the AfterItemDraw event is only fired when the IViewManger::VerboseEvents property is set to True. By default this property is False.
afterItemDraw in interface IActiveViewEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void focusMapChanged(IActiveViewEventsFocusMapChangedEvent theEvent)
throws IOException,
AutomationException
focusMapChanged in interface IActiveViewEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void spatialReferenceChanged(IActiveViewEventsSpatialReferenceChangedEvent theEvent)
throws IOException,
AutomationException
spatialReferenceChanged in interface IActiveViewEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean snapPoint(IPoint point)
throws IOException,
AutomationException
As an example: there may be several FeatureSnap agents present. Each receives a point from the current cursor location, which is passed to the agent via the SnapPoint method. If the conditions for a snap are met, the boolean value of the agent returns TRUE, the point's coordinates are updated based on the active FeatureSnap's conditions and the same point is returned to SnapPoint. In the Editor, the InvertAgent location is always set equal to this point. Thus, when snapping conditions are met, the InvertAgent (blue dot) is passed the point with altered coordinates, and the corresponding location shift is manifested as a "snap".
snapPoint in interface ISnapEnvironmentpoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSnapToleranceUnits()
throws IOException,
AutomationException
SnapToleranceUnits defines the method of type esriSnapToleranceUnits used to define the radius used by active snap agents. The default value is esriSnapTolerancePixels.
getSnapToleranceUnits in interface ISnapEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSnapToleranceUnits(int units)
throws IOException,
AutomationException
setSnapToleranceUnits in interface ISnapEnvironmentunits - A com.esri.arcgis.editor.esriSnapToleranceUnits constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getSnapTolerance()
throws IOException,
AutomationException
getSnapTolerance in interface ISnapEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSnapTolerance(double tol)
throws IOException,
AutomationException
setSnapTolerance in interface ISnapEnvironmenttol - The tol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSnapAgentCount()
throws IOException,
AutomationException
getSnapAgentCount in interface ISnapEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISnapAgent getSnapAgent(int index)
throws IOException,
AutomationException
getSnapAgent in interface ISnapEnvironmentindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void clearSnapAgents()
throws IOException,
AutomationException
clearSnapAgents in interface ISnapEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeSnapAgent(int index)
throws IOException,
AutomationException
removeSnapAgent in interface ISnapEnvironmentindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addSnapAgent(ISnapAgent snapAgent)
throws IOException,
AutomationException
AddSnapAgent activates and adds to the snap environment any valid snap agent, such as FeatureSnap, AnchorSnap, or PerpendicularSnap.
addSnapAgent in interface ISnapEnvironmentsnapAgent - A reference to a com.esri.arcgis.editor.ISnapAgent (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseSnapZTolerance()
throws IOException,
AutomationException
Boolean value that determines whether z-aware snap agents use a defined tolerance when evaluating if a point meets the snap agent's criteria. The tolerance is defined using ISnapEnvironment2::SnapZTolerance. Default value is FALSE.
isUseSnapZTolerance in interface ISnapEnvironment2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseSnapZTolerance(boolean useSnapZTolerance)
throws IOException,
AutomationException
setUseSnapZTolerance in interface ISnapEnvironment2useSnapZTolerance - The useSnapZTolerance (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getSnapZTolerance()
throws IOException,
AutomationException
Double value that defines the cylinder (defined as distance positively and negatively from snap point's Z-value) used to determine whether the point snaps to another feature. The z-snap tolerance is evaluated only after a snap agent in XY is satisfied. Default value is 0. SnapZTolerance is only applied when IEditorZ::UseSnapZTolerance is TRUE.
getSnapZTolerance in interface ISnapEnvironment2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSnapZTolerance(double tolerance)
throws IOException,
AutomationException
The SnapZTolerance property defines the height region bounding the input point location and will be used in conjunction with the XY tolerance. It is always expressed in z-units, and the search for a potential snap point candidate is made within the cylinder region it defines.
Note: The z-unit is determined based on the first editable layer added to the map
setSnapZTolerance in interface ISnapEnvironment2tolerance - The tolerance (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean snapToIntersection(IPoint point,
IGeometry pIntersection)
throws IOException,
AutomationException
snapToIntersection in interface ISnapEnvironment3point - A reference to a com.esri.arcgis.geometry.IPoint (in)pIntersection - A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean fullPointSnap(IPoint point)
throws IOException,
AutomationException
fullPointSnap in interface ISnapEnvironment3point - A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCurrentLayer(IFeatureLayer layer,
int subtype)
throws IOException,
AutomationException
setCurrentLayer in interface IEditLayerslayer - A reference to a com.esri.arcgis.carto.IFeatureLayer (in)subtype - The subtype (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IFeatureLayer getCurrentLayer()
throws IOException,
AutomationException
Use this property to check the editor's current layer. Use the SetCurrentLayer property to set the current layer. The current layer is the layer that new features are typically written to. For example, the CreateNewFeature Task, the Buffer command, and the CopyParallel command all create new features and store them in the current layer. Custom tools and tasks do not have to model this behavior. All layers that return TRUE for IsEditable, are editable simulataneously. To edit features in a particular layer, you do not have to call SetCurrentLayer method for that layer.
getCurrentLayer in interface IEditLayersIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getCurrentSubtype()
throws IOException,
AutomationException
getCurrentSubtype in interface IEditLayersIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isEditable(IFeatureLayer layer)
throws IOException,
AutomationException
isEditable in interface IEditLayerslayer - A reference to a com.esri.arcgis.carto.IFeatureLayer (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getReportPrecision()
throws IOException,
AutomationException
getReportPrecision in interface IEditPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setReportPrecision(int numDecs)
throws IOException,
AutomationException
setReportPrecision in interface IEditPropertiesnumDecs - The numDecs (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getStreamTolerance()
throws IOException,
AutomationException
getStreamTolerance in interface IEditPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setStreamTolerance(double tol)
throws IOException,
AutomationException
setStreamTolerance in interface IEditPropertiestol - The tol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getStreamGroupingCount()
throws IOException,
AutomationException
getStreamGroupingCount in interface IEditPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setStreamGroupingCount(int tol)
throws IOException,
AutomationException
setStreamGroupingCount in interface IEditPropertiestol - The tol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isStretchGeometry()
throws IOException,
AutomationException
This property determines whether or not the edit sketch is stretched proportionally when a vertex is moved. The following diagrams illustrate this point better. In both cases, the upper right vertex was moved.
Moving a vertex with StretchGeometry set to True: 
Moving a vertex with StrechGeometry set to False: 
isStretchGeometry in interface IEditPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setStretchGeometry(boolean stretch)
throws IOException,
AutomationException
This property determines whether or not the edit sketch is stretched proportionally when a vertex is moved. The following diagrams illustrate this point better. In both cases, the upper right vertex was moved.
Moving a vertex with StretchGeometry set to True 
Moving a vertex with StrechGeometry set to False: 
setStretchGeometry in interface IEditPropertiesstretch - The stretch (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILineSymbol getSketchSymbol()
throws IOException,
AutomationException
getSketchSymbol in interface IEditPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditProperties.getSelectedVertexSymbol(),
IEditProperties.getSketchVertexSymbol(),
IEditProperties.getSnapSymbol()
public void setSketchSymbolByRef(ILineSymbol symbol)
throws IOException,
AutomationException
setSketchSymbolByRef in interface IEditPropertiessymbol - A reference to a com.esri.arcgis.display.ILineSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMarkerSymbol getSketchVertexSymbol()
throws IOException,
AutomationException
getSketchVertexSymbol in interface IEditPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditProperties.getSelectedVertexSymbol(),
IEditProperties.getSnapSymbol(),
IEditProperties.getSketchSymbol()
public void setSketchVertexSymbolByRef(IMarkerSymbol symbol)
throws IOException,
AutomationException
setSketchVertexSymbolByRef in interface IEditPropertiessymbol - A reference to a com.esri.arcgis.display.IMarkerSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMarkerSymbol getSelectedVertexSymbol()
throws IOException,
AutomationException
getSelectedVertexSymbol in interface IEditPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditProperties.getSketchVertexSymbol(),
IEditProperties.getSnapSymbol(),
IEditProperties.getSketchSymbol()
public void setSelectedVertexSymbolByRef(IMarkerSymbol symbol)
throws IOException,
AutomationException
setSelectedVertexSymbolByRef in interface IEditPropertiessymbol - A reference to a com.esri.arcgis.display.IMarkerSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMarkerSymbol getSnapSymbol()
throws IOException,
AutomationException
getSnapSymbol in interface IEditPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditProperties.getSketchVertexSymbol(),
IEditProperties.getSelectedVertexSymbol(),
IEditor.invertAgent(com.esri.arcgis.geometry.IPoint, int)
public void setSnapSymbolByRef(IMarkerSymbol symbol)
throws IOException,
AutomationException
setSnapSymbolByRef in interface IEditPropertiessymbol - A reference to a com.esri.arcgis.display.IMarkerSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAutoSaveOnVersionRedefined()
throws IOException,
AutomationException
AutoReconciliation provides the user the ability to delay the save process for after the reconciliation. This allows the user to inspect the results of the reconciliation prior to saving.
If AutoSaveOnVersionRedefined = True, auto reconciliation will automatically reconcile the edit session with the version's current database state and save, making changes available to others using the database.
If AutoSaveOnVersionRedefined = False, when a save occurs, the edit session will be reconciled with the version's current database state, and then a message will inform the user that the edit session has been reconciled but has not been saved.
isAutoSaveOnVersionRedefined in interface IEditPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAutoSaveOnVersionRedefined(boolean stretch)
throws IOException,
AutomationException
setAutoSaveOnVersionRedefined in interface IEditPropertiesstretch - The stretch (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getStickyMoveTolerance()
throws IOException,
AutomationException
StickyMoveTolerance determines the minimum distance (measured in pixels) the cursor must move before the edit is completed. This can be helpful in preventing small inadvertent shifts of features when editing. The default value is 0.
getStickyMoveTolerance in interface IEditProperties2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setStickyMoveTolerance(int tol)
throws IOException,
AutomationException
setStickyMoveTolerance in interface IEditProperties2tol - The tol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSnapTips()
throws IOException,
AutomationException
isSnapTips in interface IEditProperties2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSnapTips(boolean tips)
throws IOException,
AutomationException
setSnapTips in interface IEditProperties2tips - The tips (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAngularUnitPrecision(int auPrecision)
throws IOException,
AutomationException
setAngularUnitPrecision in interface IEditProperties2auPrecision - The auPrecision (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getAngularUnitPrecision()
throws IOException,
AutomationException
AngularUnitPrecision determines the number of digits displayed after the decimal place. The default is 4.
getAngularUnitPrecision in interface IEditProperties2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDirectionType(int dirType)
throws IOException,
AutomationException
setDirectionType in interface IEditProperties2dirType - A com.esri.arcgis.system.esriDirectionType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDirectionType()
throws IOException,
AutomationException
IEditProperties::DirectionType determines the method of measurement for direction values. The default value is esriDTPolar.
getDirectionType in interface IEditProperties2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDirectionUnits(int dirUnits)
throws IOException,
AutomationException
setDirectionUnits in interface IEditProperties2dirUnits - A com.esri.arcgis.system.esriDirectionUnits constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDirectionUnits()
throws IOException,
AutomationException
The direction units define how angles are specified; how many parts a complete circle is divided into and how to interpret the angle value entered. The default value is esriDUDecimalDegrees.
getDirectionUnits in interface IEditProperties2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDistanceCorrectionFactor(double distFactor)
throws IOException,
AutomationException
setDistanceCorrectionFactor in interface IEditProperties2distFactor - The distFactor (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getDistanceCorrectionFactor()
throws IOException,
AutomationException
Use this property to determine the distance amount applied when length measurements are input into the editor. The value may be accessed or modified at any time; however, it is applied only when IEditProperties::UseGroundToGrid is set to True. The default value is 0 (no correction).
getDistanceCorrectionFactor in interface IEditProperties2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAngularCorrectionOffset(double angOffset)
throws IOException,
AutomationException
setAngularCorrectionOffset in interface IEditProperties2angOffset - The angOffset (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getAngularCorrectionOffset()
throws IOException,
AutomationException
AngularCorrectionOffset determines the amount of correction applied to each entered angular value. The offset is specified in radians. This property may be accessed at any time; it is only applied when the IEditProperties2::UseGroundToGrid is True. The default value is 0 (no correction).
getAngularCorrectionOffset in interface IEditProperties2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseGroundToGrid(boolean g2g)
throws IOException,
AutomationException
Use this property to control whether any distance or direction offsets are applied to angle or length values respectively when using the editor. If UseGroundToGrid is True then the distance offset specified by IEditProperties2::DistanceCorrectionFactor and the angular offset specified by IEditProperties2::AngularCorrectionFactor are used.
setUseGroundToGrid in interface IEditProperties2g2g - The g2g (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseGroundToGrid()
throws IOException,
AutomationException
Use this property to control whether any distance or direction offsets are applied to angle or length values respectively when using the editor. If UseGroundToGrid is True then the distance offset specified by IEditProperties2::DistanceCorrectionFactor and the angular offset specified by IEditProperties2::AngularCorrectionFactor are used.
isUseGroundToGrid in interface IEditProperties2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMultiuserEditSessionMode()
throws IOException,
AutomationException
getMultiuserEditSessionMode in interface IEditProperties3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMultiuserEditSessionMode(int esm)
throws IOException,
AutomationException
setMultiuserEditSessionMode in interface IEditProperties3esm - A com.esri.arcgis.geodatabase.esriMultiuserEditSessionMode constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAutoSaveChecksConflicts()
throws IOException,
AutomationException
isAutoSaveChecksConflicts in interface IEditProperties3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAutoSaveChecksConflicts(boolean checksConflicts)
throws IOException,
AutomationException
setAutoSaveChecksConflicts in interface IEditProperties3checksConflicts - The checksConflicts (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAutoReconcileConflictsByAttribute()
throws IOException,
AutomationException
isAutoReconcileConflictsByAttribute in interface IEditProperties3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAutoReconcileConflictsByAttribute(boolean byatt)
throws IOException,
AutomationException
setAutoReconcileConflictsByAttribute in interface IEditProperties3byatt - The byatt (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAutoReconcileEditSessionWins()
throws IOException,
AutomationException
isAutoReconcileEditSessionWins in interface IEditProperties3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAutoReconcileEditSessionWins(boolean editWins)
throws IOException,
AutomationException
setAutoReconcileEditSessionWins in interface IEditProperties3editWins - The editWins (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseWYSIWYGSketchSymbol()
throws IOException,
AutomationException
This property determines whether or not the feature being edited or created is drawn using the renderer’s symbol, or the classic edit sketch symbology.
isUseWYSIWYGSketchSymbol in interface IEditProperties4IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseWYSIWYGSketchSymbol(boolean useWYSIWYGSketchSymbol)
throws IOException,
AutomationException
setUseWYSIWYGSketchSymbol in interface IEditProperties4useWYSIWYGSketchSymbol - The useWYSIWYGSketchSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isClassicSnapping()
throws IOException,
AutomationException
Setting this property to true enables classic snapping (ArcGIS 9.3.1 and prior versions snapping environment UI).
In the UI this is set in the general tab on the Editor Options dialog.
isClassicSnapping in interface IEditProperties4IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setClassicSnapping(boolean snap)
throws IOException,
AutomationException
setClassicSnapping in interface IEditProperties4snap - The snap (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSnapToSketch()
throws IOException,
AutomationException
Setting this property to true adds the sketch to the snapping cache.
In the UI this property is set via the Snap to Sketch menu item on the Snapping toolbar.
isSnapToSketch in interface IEditProperties4IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSnapToSketch(boolean snap)
throws IOException,
AutomationException
setSnapToSketch in interface IEditProperties4snap - The snap (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isShowConstructionToolbars()
throws IOException,
AutomationException
Setting this property to true will display the construction mini toolbar during sketch construction.
In the UI this is set in the General tab on the Editor Options dialog.
isShowConstructionToolbars in interface IEditProperties4IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setShowConstructionToolbars(boolean showConstructionToolbars)
throws IOException,
AutomationException
setShowConstructionToolbars in interface IEditProperties4showConstructionToolbars - The showConstructionToolbars (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMarkerSymbol getActiveSketchVertexSymbol()
throws IOException,
AutomationException
Use this property to change the symbology of the selected vertices in the edit sketch. By default, selected edit sketch vertices are drawn as hollow green squares.
In the UI this is set in the general tab on the Editor Options dialog.
getActiveSketchVertexSymbol in interface IEditProperties4IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditProperties.getSketchVertexSymbol(),
IEditProperties.getSketchSymbol()
public void setActiveSketchVertexSymbolByRef(IMarkerSymbol symbol)
throws IOException,
AutomationException
setActiveSketchVertexSymbolByRef in interface IEditProperties4symbol - A reference to a com.esri.arcgis.display.IMarkerSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMarkerSymbol getActiveSelectedVertexSymbol()
throws IOException,
AutomationException
Use this property to change the symbology of the last point in the edit sketch when it is selected. By default this point is drawn as a red hollow square.
In the UI this is set in the general tab on the Editor Options dialog.
getActiveSelectedVertexSymbol in interface IEditProperties4IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IEditProperties.getSketchVertexSymbol(),
IEditProperties.getSketchSymbol()
public void setActiveSelectedVertexSymbolByRef(IMarkerSymbol symbol)
throws IOException,
AutomationException
setActiveSelectedVertexSymbolByRef in interface IEditProperties4symbol - A reference to a com.esri.arcgis.display.IMarkerSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IAttributeTransfer getAttributeTransfer()
throws IOException,
AutomationException
getAttributeTransfer in interface IAttributeTransferTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAttributeTransferType(String rhs1)
throws IOException,
AutomationException
setAttributeTransferType in interface IAttributeTransferTyperhs1 - The rhs1 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getExtensionCount()
throws IOException,
AutomationException
Returns the number of extensions currently loaded in the application.
getExtensionCount in interface IExtensionManagerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IExtension getExtension(int index)
throws IOException,
AutomationException
getExtension in interface IExtensionManagerindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IUID getExtensionCLSID(int index)
throws IOException,
AutomationException
getExtensionCLSID in interface IExtensionManagerindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IExtension findExtension(Object nameOrID)
throws IOException,
AutomationException
The FindExtension method will get an extension by either its name string or by its CLSID. Using IExtensionManager is not the only way to get a reference to an extension; the IApplication interface has FindExtensionByCLSID and FindExtensionByName methods.
nameOrID is a variant representing the identifier of the extension. This can either be the UID of the extension or the name string.
COM coclasses are identified by a globally unique identifier (GUID). There two formats for the GUID for a coclass: a class ID (CLSID) and a ProgID. The ProgID is a text alias for a CLSID. The UID coclass can be used to represent the GUID of an extension object. You can set the IUID.Value property to either the CLSID or the ProgID.
To find the Name, CLSID, and ProgID of an ESRI extension, refer to the following technical document:
ArcObjects Developer Help > Technical Documents > Names and IDs > Extensions
findExtension in interface IExtensionManagernameOrID - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void createAccelerators()
throws IOException,
AutomationException
The CreateAccelerators method creates the accelerators for the extension. This method is called when the accelerator table is created during application startup, when a new document is created, or when a document is opened.
When you use the CreateAccelerators method to assign an accelerator to one of the commands in your extension, you should check to make sure that no other command is currently using the key combination that you want to use.
createAccelerators in interface IExtensionAcceleratorsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IAccelerator,
IAcceleratorTable
public void getClassID(GUID[] pClassID)
throws IOException,
AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID in interface IPersistpClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void isDirty()
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty in interface IPersistStreamIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void load(IStream pstm)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void save(IStream pstm,
int fClearDirty)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)fClearDirty - The fClearDirty (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax in interface IPersistStreampcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
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 ISupportErrorInforiid - 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 ICallout getLeaderSymbol()
throws IOException,
AutomationException
The LeaderSymbol property accepts objects that support ICallout. MarkerTextBackground objects cannot be used for the LeaderSymbol property. This property is an application-level setting and is used in ArcMap to add a leader to an annotation feature if the annotation feature's symbol does not have one defined.
getLeaderSymbol in interface IEditAnnotationPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLeaderSymbolByRef(ICallout callout)
throws IOException,
AutomationException
setLeaderSymbolByRef in interface IEditAnnotationPropertiescallout - A reference to a com.esri.arcgis.display.ICallout (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isShowAnnoHandles()
throws IOException,
AutomationException
isShowAnnoHandles in interface IEditAnnotationPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setShowAnnoHandles(boolean flag)
throws IOException,
AutomationException
setShowAnnoHandles in interface IEditAnnotationPropertiesflag - The flag (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseFollowLineFeatureMode()
throws IOException,
AutomationException
isUseFollowLineFeatureMode in interface IEditAnnotationPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseFollowLineFeatureMode(boolean flag)
throws IOException,
AutomationException
setUseFollowLineFeatureMode in interface IEditAnnotationPropertiesflag - The flag (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseFollowPolygonFeatureMode()
throws IOException,
AutomationException
isUseFollowPolygonFeatureMode in interface IEditAnnotationPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseFollowPolygonFeatureMode(boolean flag)
throws IOException,
AutomationException
setUseFollowPolygonFeatureMode in interface IEditAnnotationPropertiesflag - The flag (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISymbol getMultiWordSelectionSymbol()
throws IOException,
AutomationException
This property controls the symbology used to define the selected paths (words) of a multiword annotation. Multipart annotation is stored as a series of paths allowing each path's position to be modified independently from the remaining paths of the annotation feature. You can check to see if an annotation feature contains multiple paths using the IMultipartTextElement::IsMultipart property.
getMultiWordSelectionSymbol in interface IEditAnnotationPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMultiWordSelectionSymbolByRef(ISymbol symbol)
throws IOException,
AutomationException
setMultiWordSelectionSymbolByRef in interface IEditAnnotationPropertiessymbol - A reference to a com.esri.arcgis.display.ISymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isNonversionedAttributionEnabled()
throws IOException,
AutomationException
isNonversionedAttributionEnabled in interface IEditAttributePropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setNonversionedAttributionEnabled(boolean pFlag)
throws IOException,
AutomationException
setNonversionedAttributionEnabled in interface IEditAttributePropertiespFlag - The pFlag (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAttributeEditAll()
throws IOException,
AutomationException
This property reports if the Editor is currently enabled for short transactional editing on all the editable Feature Classes within the TOC.
Use this property to determine if short transactions are enabled for all the editable layers.
isAttributeEditAll in interface IEditAttributePropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAttributeEditAll(boolean pFlag)
throws IOException,
AutomationException
This property reports if the Editor is currently enabled for short transactional editing on all the editable Feature Classes within the TOC.
Use this property to enable short transactions for all the editable layers.
setAttributeEditAll in interface IEditAttributePropertiespFlag - The pFlag (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISet getAttributeEditClasses()
throws IOException,
AutomationException
This property reports the collection of editable Feature Classes which the Editor currently has enabled for short transactional editing. So you must be in an edit session for the editor to access the editable Feature Classes.
Use this property to return the collection of Feature Class objects enabled for short transactional editing.
getAttributeEditClasses in interface IEditAttributePropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAttributeEditClassesByRef(ISet ppClasses)
throws IOException,
AutomationException
This property reports the collection of editable Feature Classes which the Editor currently has enabled for short transactional editing.
Use this property to set the collection of Feature Class objects enabled for short transactional editing.
setAttributeEditClassesByRef in interface IEditAttributePropertiesppClasses - A reference to a com.esri.arcgis.system.ISet (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEditTask getTaskByUniqueName(String uniqueName)
throws IOException,
AutomationException
getTaskByUniqueName in interface IEditTaskSearchuniqueName - The uniqueName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void drapeGeometry(IGeometry geometry,
boolean addVertices,
IGeometry[] outputGeometry)
throws IOException,
AutomationException
Drapes the input geometry on the editor's current surface (defined by IEditorZ::Surface). If addVertices is FALSE, then only Z values for existing vertices in the input geometry will be updated. If addVertices is TRUE, then new vertices will be inserted at changes in elevation defined by the surface. Existing vertices are not updated when addVertices is TRUE.
drapeGeometry in interface IEditorZgeometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)addVertices - The addVertices (in)outputGeometry - A reference to a com.esri.arcgis.geometry.IGeometry (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void applyZ(IPoint point)
throws IOException,
AutomationException
This method checks to determine that incoming point is Z-aware; if it is not, this method will set it to be Z-aware and apply the current Z assignment behavior to the incoming point in the following order: ZCaptureType, ZOffset. If the z-assignment fails (usually because the z-capture type is surface, and the retrieval of the z-value fails) then the client can receive this message through INotifyZFinalize, and is given an opportunity to specify a valid z-value.
Note: If the incoming point is already z-aware then this method does not alter the incoming point.
applyZ in interface IEditorZpoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void finalizeZs(IGeometry geometry)
throws IOException,
AutomationException
This method ensures a particular geometry has a valid set of z values defined. This method attempts to interpolate the z-value of any non-simple points in the geometry; if result is non-simple then the Failed method of the class implementing INotifyZFinalize and hooked into IEditorZ::NotifyZFinalize is given an opportunity to manipulate the Z values. If the client handles this, the method checks for simplicity and defines the offending z-values as necessary to successfully store the feature (using IEditSketch2::CurrentZ).
finalizeZs in interface IEditorZgeometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getZCaptureType()
throws IOException,
AutomationException
ZCaptureType defines the current method the editor uses to assign z-values for newly created or edited vertices. The default value is esriZCaptureCurrentZ. When using one either esriCaptureInterpolateZ or esriCaptureSurfaceZ, the resulting z-value may not be defined; if these sources do not produce a valid z-value (non-NaN) then the editor applies the value defined in IEditSketch2::CurrentZ.
getZCaptureType in interface IEditorZIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setZCaptureType(int zCaptureType)
throws IOException,
AutomationException
setZCaptureType in interface IEditorZzCaptureType - A com.esri.arcgis.editor.esriZCaptureType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseZOffset()
throws IOException,
AutomationException
Use this property to define whether an offset (specified through IEditorZ::ZOffset) is applied to a z-value captured using the editor. Default value is FALSE.
isUseZOffset in interface IEditorZIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseZOffset(boolean useZOffset)
throws IOException,
AutomationException
This property will apply an offset to the z-value generated by the editor's ZCaptureType. Default value is 0. The ZOffset is not applied unless IEditorZ::UseZOffset is TRUE.
setUseZOffset in interface IEditorZuseZOffset - The useZOffset (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getZOffset()
throws IOException,
AutomationException
This property will apply an offset to the z-value generated by the editor's ZCaptureType. Default value is 0. The ZOffset is not applied unless IEditorZ::UseZOffset is TRUE.
getZOffset in interface IEditorZIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setZOffset(double zOffset)
throws IOException,
AutomationException
setZOffset in interface IEditorZzOffset - The zOffset (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseZDrapingTolerance()
throws IOException,
AutomationException
Determines whether a draping tolerance (defined in IEditorZ::ZDrapingTolerance) is applied to limit the number of points added to the sketch. Default value is FALSE.
isUseZDrapingTolerance in interface IEditorZIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseZDrapingTolerance(boolean useZDrapingTolerance)
throws IOException,
AutomationException
setUseZDrapingTolerance in interface IEditorZuseZDrapingTolerance - The useZDrapingTolerance (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getZDrapingTolerance()
throws IOException,
AutomationException
Double value that defines the maximum offset used to generalize the draped geometry. Will only remove points inserted via draping; does not affect any points explicitly defined by the user. Default value is 0. ZDrapingTolerance is only applied when IEditorZ::UseZDrapingTolerance is TRUE.
getZDrapingTolerance in interface IEditorZIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setZDrapingTolerance(double zDrapingTolerance)
throws IOException,
AutomationException
setZDrapingTolerance in interface IEditorZzDrapingTolerance - The zDrapingTolerance (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isDraping()
throws IOException,
AutomationException
This property determines whether new segments added to the edit sketch are draped onto the defined surface. This behavior is only active when the editor's ZCaptureType is SurfaceZ. When draping is TRUE and the ZCaptureType is SurfaceZ then a new vertex will be inserted at each elevation change in the surface (triangle edges in TINs, cell boundaries in Rasters). When using very accurate surfaces, the number of points can be very high. To minimize the number of vertices inserted into the sketch, a tolerance can be defined using IEditorZ::ZDrapingTolerance; this uses the Douglas-Poiker algorithm to determine significant vertices in Z. The Default value is FALSE.
isDraping in interface IEditorZIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDraping(boolean useDraping)
throws IOException,
AutomationException
setDraping in interface IEditorZuseDraping - The useDraping (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IFunctionalSurface getSurface()
throws IOException,
AutomationException
This property defines the surface used to calculate new z-values. By default, the surface for the editor is built from any available sources (Terrains, Tins, and Rasters) added to the map.
If you choose to use a particular surface for z-capture, assign your surface to this property. This overrides the default "composite" surface defined by the available surfaces defined in your map. This surface does not need to be obtained through a layer in the map, although this is an efficient way to access surface-related information. Any layer associated with this surface does not need to be visible in order to be used for z-capture.
Setting this property to NULL will revert back to the "composite" surface defined by the surfaces in the map.
This property is only active when the editor's ZCaptureType is set to SurfaceZ.
getSurface in interface IEditorZIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSurfaceByRef(IFunctionalSurface surface)
throws IOException,
AutomationException
setSurfaceByRef in interface IEditorZsurface - A reference to a com.esri.arcgis.geometry.IFunctionalSurface (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMarkerSymbol getZSnapSymbol()
throws IOException,
AutomationException
Use this property to change the symbol displayed when the editor snaps to a particular snap agent in Z coordinate space. The Z snap symbol is displayed if you are working with an edit sketch that is Z-aware and the Z-snapping is set. The ZSnapSymbol is identical to the editor's SnapSymbol by default; if SnapTips (IEditProperties2::SnapTips) are enabled, the Z-value of the snapped location is added to the SnapTip when displayed.
The snap agent knows to draw the snap symbol twice, once to get rid of the old symbol and once to draw the symbol at its new location. When setting the symbol, don't forget to set its ROP property (on the ISymbol interface) to esriROPNotXOrPen. This setting allows the symbol to erase itself when drawn twice in the same location.
getZSnapSymbol in interface IEditorZIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setZSnapSymbolByRef(IMarkerSymbol symbol)
throws IOException,
AutomationException
setZSnapSymbolByRef in interface IEditorZsymbol - A reference to a com.esri.arcgis.display.IMarkerSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INotifyZFinalize getNotifyZFinalize()
throws IOException,
AutomationException
Callback mechanism used when Z capture fails; allows the registered client an opportunity to define Zs prior to editor applying default fallback behavior to ensure Z simplicity (ensures Zs are not defined as NaN and geometry is Z-aware). To receive notification when Z assignment fails, you will need to implement INotifyZFinalize on your class and assign a reference to this property. Only one class can modify or receive this notification; you should code defensively to ensure that another extension is not already plugged in. To unhook, set the NotifyZFinalize property to null.
getNotifyZFinalize in interface IEditorZIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setNotifyZFinalizeByRef(INotifyZFinalize callback)
throws IOException,
AutomationException
setNotifyZFinalizeByRef in interface IEditorZcallback - A reference to a com.esri.arcgis.editor.INotifyZFinalize (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IFeatureConstruction initializeFeatureConstruction()
throws IOException,
AutomationException
initializeFeatureConstruction in interface IEditorZIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||