com.esri.arcgis.editor
Interface ISnapEnvironment

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
ISnapEnvironment2, ISnapEnvironment3
All Known Implementing Classes:
Editor, ISnapEnvironment2Proxy, ISnapEnvironment3Proxy, ISnapEnvironmentProxy

public interface ISnapEnvironment
extends java.io.Serializable

COM Interface 'ISnapEnvironment'. Generated 3/19/2015 1:21:02 PM from 'C:\ArcGIS\COM\esriEditor.olb'

Description: 'Provides access to members that manage the snap agents used by the editor.' 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 java.lang.String IID
          Deprecated. Internal use only
static int IID99305f46_ef10_11d0_aaca_0000f804eb00
           
static int xxDummy
          Deprecated. Internal use only
 
Method Summary
 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 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.
 

Field Detail

IID99305f46_ef10_11d0_aaca_0000f804eb00

static final int IID99305f46_ef10_11d0_aaca_0000f804eb00
See Also:
Constant Field Values

xxDummy

static final int xxDummy
Deprecated. Internal use only
See Also:
Constant Field Values

IID

static final java.lang.String IID
Deprecated. Internal use only
See Also:
Constant Field Values
Method Detail

snapPoint

boolean snapPoint(IPoint point)
                  throws java.io.IOException,
                         AutomationException
Attempts to snap the point using the current snap environment.

Parameters:
point - A reference to a com.esri.arcgis.geometry.IPoint (in)
Returns:
The snapped
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSnapToleranceUnits

int getSnapToleranceUnits()
                          throws java.io.IOException,
                                 AutomationException
The units used for the snap tolerance.

Returns:
A com.esri.arcgis.editor.esriSnapToleranceUnits constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSnapToleranceUnits

void setSnapToleranceUnits(int units)
                           throws java.io.IOException,
                                  AutomationException
The units used for the snap tolerance.

Parameters:
units - A com.esri.arcgis.editor.esriSnapToleranceUnits constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSnapTolerance

double getSnapTolerance()
                        throws java.io.IOException,
                               AutomationException
The snap tolerance, measured in pixels or map units.

Returns:
The tol
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSnapTolerance

void setSnapTolerance(double tol)
                      throws java.io.IOException,
                             AutomationException
The snap tolerance, measured in pixels or map units.

Parameters:
tol - The tol (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSnapAgentCount

int getSnapAgentCount()
                      throws java.io.IOException,
                             AutomationException
The number of active snap agents.

Returns:
The count
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSnapAgent

ISnapAgent getSnapAgent(int index)
                        throws java.io.IOException,
                               AutomationException
A snap agent at the given index.

Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.editor.ISnapAgent
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clearSnapAgents

void clearSnapAgents()
                     throws java.io.IOException,
                            AutomationException
Removes all snap agents.

Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeSnapAgent

void removeSnapAgent(int index)
                     throws java.io.IOException,
                            AutomationException
Removes the snap agent at the given index.

Parameters:
index - The index (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addSnapAgent

void addSnapAgent(ISnapAgent snapAgent)
                  throws java.io.IOException,
                         AutomationException
Adds a new snap agent to the snap environment.

Parameters:
snapAgent - A reference to a com.esri.arcgis.editor.ISnapAgent (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.