|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.editor.FeatureSnap
public class FeatureSnap
COM Class 'FeatureSnap'. Generated 3/19/2015 1:20:50 PM from 'C:\ArcGIS\COM\esriEditor.olb'
Description 'Snap agent that snaps to a feature in a specified way.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
Field Summary | |
---|---|
static long |
serialVersionUID
|
Fields inherited from interface com.esri.arcgis.editor.IFeatureSnapAgent2 |
---|
IID, IID7c41ef14_bc5f_4848_8a4d_9478fc492213, xxDummy |
Fields inherited from interface com.esri.arcgis.editor.IFeatureSnapAgent |
---|
IID2866e6b4_c00b_11d0_802b_0000f8037368 |
Fields inherited from interface com.esri.arcgis.editor.ISnapAgent |
---|
IID2866e6b3_c00b_11d0_802b_0000f8037368 |
Fields inherited from interface com.esri.arcgis.system.IPersistStream |
---|
IID, IID00000109_0000_0000_c000_000000000046, xxDummy |
Fields inherited from interface com.esri.arcgis.system.IPersist |
---|
IID0000010c_0000_0000_c000_000000000046 |
Fields inherited from interface com.esri.arcgis.system.IExtension |
---|
IID, IID7f657ec9_dbf1_11d2_9f2f_00c04f6bc69e, xxDummy |
Fields inherited from interface com.esri.arcgis.editor.ISnapAgentFeedback |
---|
IID, IID475742fa_d9e2_4c41_ba2a_ba86d044cdc1, xxDummy |
Fields inherited from interface com.esri.arcgis.editor.IEditEvents |
---|
IID, IID44276913_98c1_11d1_8464_0000f875b9c6, xxDummy |
Constructor Summary | |
---|---|
FeatureSnap()
Constructs a FeatureSnap using ArcGIS Engine. |
|
FeatureSnap(java.lang.Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. FeatureSnap theFeatureSnap = (FeatureSnap) obj; |
Method Summary | |
---|---|
void |
afterDrawSketch(IEditEventsAfterDrawSketchEvent theEvent)
Called after the edit sketch is drawn. |
boolean |
equals(java.lang.Object o)
Compare this object with another |
void |
getClassID(GUID[] pClassID)
getClassID |
static java.lang.String |
getClsid()
getClsid. |
IFeatureCache |
getFeatureCache()
The FeatureCache associated with the feature snap agent. |
IFeatureClass |
getFeatureClass()
The featureclass the feature snap agent snaps to. |
int |
getHitType()
The part of a geometry the feature snap agent snaps to. |
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Deprecated. Internal use only. |
java.lang.String |
getName()
The name of the snap agent shown in the UI. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
java.lang.String |
getSnapText()
Snap Agent Feedback string. |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
boolean |
isZSnappingEnabled()
Indicates whether this Agent will snap in Z. |
void |
load(IStream pstm)
load |
void |
onChange(IObjectClassEventsOnChangeEvent theEvent)
This event is fired when an object's attributes or geometry is updated. |
void |
onChangeFeature(IEditEventsOnChangeFeatureEvent theEvent)
Called when features are modified. |
void |
onConflictsDetected(IEditEventsOnConflictsDetectedEvent theEvent)
Called when editing conflicts are detected during save. |
void |
onCreate(IObjectClassEventsOnCreateEvent theEvent)
This event is fired when a new object is created in the object class. |
void |
onCreateFeature(IEditEventsOnCreateFeatureEvent theEvent)
Called when new features are created. |
void |
onCurrentLayerChanged(IEditEventsOnCurrentLayerChangedEvent theEvent)
Called when the current layer changes. |
void |
onCurrentTaskChanged(IEditEventsOnCurrentTaskChangedEvent theEvent)
Called when the current task changes. |
void |
onDelete(IObjectClassEventsOnDeleteEvent theEvent)
This event is fired when an object is deleted from the object class. |
void |
onDeleteFeature(IEditEventsOnDeleteFeatureEvent theEvent)
Called when features are deleted. |
void |
onRedo(IEditEventsOnRedoEvent theEvent)
Called when RedoOperation is called. |
void |
onSelectionChanged(IEditEventsOnSelectionChangedEvent theEvent)
Called when the selection changes. |
void |
onSketchFinished(IEditEventsOnSketchFinishedEvent theEvent)
Called when the edit sketch is finished. |
void |
onSketchModified(IEditEventsOnSketchModifiedEvent theEvent)
Called when the edit sketch is modified. |
void |
onStartEditing(IEditEventsOnStartEditingEvent theEvent)
Called when editing begins. |
void |
onStopEditing(IEditEventsOnStopEditingEvent theEvent)
Called when editing ends. |
void |
onUndo(IEditEventsOnUndoEvent theEvent)
Called when UndoOperation is called. |
void |
readExternal(java.io.ObjectInput in)
|
void |
release()
Release a FeatureSnap. |
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setFeatureClassByRef(IFeatureClass featClass)
The featureclass the feature snap agent snaps to. |
void |
setHitType(int hitType)
The part of a geometry the feature snap agent snaps to. |
void |
setZSnappingEnabled(boolean zSnapEnabled)
Indicates whether this Agent will snap in Z. |
void |
shutdown()
Shuts down the extension. |
boolean |
snap(IGeometry geom,
IPoint point,
double tolerance)
Called by the editor to perform the actual snapping logic. |
void |
startup(java.lang.Object initializationData)
Starts up the extension with the given initialization data. |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public FeatureSnap() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problems
java.net.UnknownHostException
- if there are interop problemspublic FeatureSnap(java.lang.Object obj) throws java.io.IOException
FeatureSnap theFeatureSnap = (FeatureSnap) obj;
obj
to FeatureSnap
.
obj
- an object returned from ArcGIS Engine or Server
java.io.IOException
- if there are interop problemsMethod Detail |
---|
public static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public void setZSnappingEnabled(boolean zSnapEnabled) throws java.io.IOException, AutomationException
setZSnappingEnabled
in interface IFeatureSnapAgent2
zSnapEnabled
- The zSnapEnabled (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isZSnappingEnabled() throws java.io.IOException, AutomationException
isZSnappingEnabled
in interface IFeatureSnapAgent2
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFeatureClassByRef(IFeatureClass featClass) throws java.io.IOException, AutomationException
setFeatureClassByRef
in interface IFeatureSnapAgent
featClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureClass getFeatureClass() throws java.io.IOException, AutomationException
getFeatureClass
in interface IFeatureSnapAgent
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHitType(int hitType) throws java.io.IOException, AutomationException
setHitType
in interface IFeatureSnapAgent
hitType
- A com.esri.arcgis.geometry.esriGeometryHitPartType constant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getHitType() throws java.io.IOException, AutomationException
getHitType
in interface IFeatureSnapAgent
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureCache getFeatureCache() throws java.io.IOException, AutomationException
getFeatureCache
in interface IFeatureSnapAgent
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getName() throws java.io.IOException, AutomationException
getName
in interface ISnapAgent
getName
in interface IExtension
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean snap(IGeometry geom, IPoint point, double tolerance) throws java.io.IOException, AutomationException
snap
in interface ISnapAgent
geom
- A reference to a com.esri.arcgis.geometry.IGeometry (in)point
- A reference to a com.esri.arcgis.geometry.IPoint (in)tolerance
- The tolerance (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws java.io.IOException, AutomationException
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws java.io.IOException, AutomationException
isDirty
in interface IPersistStream
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws java.io.IOException, AutomationException
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws java.io.IOException, AutomationException
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws java.io.IOException, AutomationException
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startup(java.lang.Object initializationData) throws java.io.IOException, AutomationException
startup
in interface IExtension
initializationData
- A Variant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void shutdown() throws java.io.IOException, AutomationException
shutdown
in interface IExtension
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getSnapText() throws java.io.IOException, AutomationException
getSnapText
in interface ISnapAgentFeedback
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onSelectionChanged(IEditEventsOnSelectionChangedEvent theEvent) throws java.io.IOException, AutomationException
onSelectionChanged
in interface IEditEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onCurrentLayerChanged(IEditEventsOnCurrentLayerChangedEvent theEvent) throws java.io.IOException, AutomationException
onCurrentLayerChanged
in interface IEditEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onCurrentTaskChanged(IEditEventsOnCurrentTaskChangedEvent theEvent) throws java.io.IOException, AutomationException
onCurrentTaskChanged
in interface IEditEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onSketchModified(IEditEventsOnSketchModifiedEvent theEvent) throws java.io.IOException, AutomationException
onSketchModified
in interface IEditEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onSketchFinished(IEditEventsOnSketchFinishedEvent theEvent) throws java.io.IOException, AutomationException
onSketchFinished
in interface IEditEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void afterDrawSketch(IEditEventsAfterDrawSketchEvent theEvent) throws java.io.IOException, AutomationException
afterDrawSketch
in interface IEditEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onStartEditing(IEditEventsOnStartEditingEvent theEvent) throws java.io.IOException, AutomationException
onStartEditing
in interface IEditEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onStopEditing(IEditEventsOnStopEditingEvent theEvent) throws java.io.IOException, AutomationException
onStopEditing
in interface IEditEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onConflictsDetected(IEditEventsOnConflictsDetectedEvent theEvent) throws java.io.IOException, AutomationException
onConflictsDetected
in interface IEditEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onUndo(IEditEventsOnUndoEvent theEvent) throws java.io.IOException, AutomationException
onUndo
in interface IEditEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onRedo(IEditEventsOnRedoEvent theEvent) throws java.io.IOException, AutomationException
onRedo
in interface IEditEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onCreateFeature(IEditEventsOnCreateFeatureEvent theEvent) throws java.io.IOException, AutomationException
onCreateFeature
in interface IEditEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onChangeFeature(IEditEventsOnChangeFeatureEvent theEvent) throws java.io.IOException, AutomationException
onChangeFeature
in interface IEditEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onDeleteFeature(IEditEventsOnDeleteFeatureEvent theEvent) throws java.io.IOException, AutomationException
onDeleteFeature
in interface IEditEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onCreate(IObjectClassEventsOnCreateEvent theEvent) throws java.io.IOException, AutomationException
onCreate
in interface IObjectClassEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onDelete(IObjectClassEventsOnDeleteEvent theEvent) throws java.io.IOException, AutomationException
onDelete
in interface IObjectClassEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onChange(IObjectClassEventsOnChangeEvent theEvent) throws java.io.IOException, AutomationException
In the event that a feature should be deleted due to an OnChange event, it is not recommended that the event handler delete the feature itself. Instead, an exception should be thrown to the application, where it can be made responsible for deleting the feature.
The OnChange event is not fired during a Topology Validation for performance reasons as a large number of features may be changed during a Validate. In addition, features may be changed many times.
onChange
in interface IObjectClassEvents
theEvent
- The event
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |