|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.editor.ISnapEnvironmentProxy
public class ISnapEnvironmentProxy
Provides access to members that manage the snap agents used by the editor.
The ISnapEnvironment interface is on the Editor CoClass. You can access ISnapEnvironment from any other interface on the Editor CoClass.
ISnapEnvironment
,
ISnapAgent
,
IEditProperties
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
esriSnapToleranceUnits
,
IEditSketch
,
Serialized FormField Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
ISnapEnvironmentProxy()
|
|
ISnapEnvironmentProxy(Object obj)
|
protected |
ISnapEnvironmentProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
addSnapAgent(ISnapAgent snapAgent)
Adds a new snap agent to the snap environment. |
void |
clearSnapAgents()
Removes all snap agents. |
ISnapAgent |
getSnapAgent(int index)
A snap agent at the given index. |
int |
getSnapAgentCount()
The number of active snap agents. |
double |
getSnapTolerance()
The snap tolerance, measured in pixels or map units. |
int |
getSnapToleranceUnits()
The units used for the snap tolerance. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
removeSnapAgent(int index)
Removes the snap agent at the given index. |
void |
setSnapTolerance(double tol)
The snap tolerance, measured in pixels or map units. |
void |
setSnapToleranceUnits(int units)
The units used for the snap tolerance. |
boolean |
snapPoint(IPoint point)
Attempts to snap the point using the current snap environment. |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public ISnapEnvironmentProxy()
public ISnapEnvironmentProxy(Object obj) throws IOException
IOException
protected ISnapEnvironmentProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
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 ISnapEnvironment
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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 ISnapEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSnapToleranceUnits(int units) throws IOException, AutomationException
setSnapToleranceUnits
in interface ISnapEnvironment
units
- 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 ISnapEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSnapTolerance(double tol) throws IOException, AutomationException
setSnapTolerance
in interface ISnapEnvironment
tol
- 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 ISnapEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISnapAgent getSnapAgent(int index) throws IOException, AutomationException
getSnapAgent
in interface ISnapEnvironment
index
- 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 ISnapEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeSnapAgent(int index) throws IOException, AutomationException
removeSnapAgent
in interface ISnapEnvironment
index
- 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 ISnapEnvironment
snapAgent
- A reference to a com.esri.arcgis.editor.ISnapAgent (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |