|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISelectionEnvironment
Provides access to members that control the selection environment.
ISelectionEnvironment controls the way the selection is created and displayed. The application's selection environment is available via IMxApplication::SelectionEnvironment.
AreaSelectionMethod, LinearSelectionMethod and PointSelectionMethod define the spatial relations used to select interactively the different kinds of features. This is similar to the options found in the Selection Options dialog in ArcMap for the interactive selection but it can be set differently depending on the feature's geometry type.
Also a different search distance can be set for each type using the AreaSearchDistance, LinearSearchDistance and PointSearchDistance. These distance are used when searching by proximity for instance when using the IMap::SelectByShape method.
The CombinationMethod property defines how the selection performed will combine with an existing selection.
The DefaultColor property allows you to replace the default light blue of selected object with your favorite color.
The SearchTolerance property defines a global search tolerance to use for selection operations as exemplified in the IAnchorPoint example.
com.esri.arcgis.carto.IMxApplication
Method Summary | |
---|---|
double |
getAreaSearchDistance()
Distance used for selecting areas by proximity. |
int |
getAreaSelectionMethod()
Selection method used for areas. |
int |
getCombinationMethod()
Combination method for the selection results. |
IColor |
getDefaultColor()
Default selection color. |
double |
getLinearSearchDistance()
Distance used for selecting lines by proximity. |
int |
getLinearSelectionMethod()
Selection method used for lines. |
double |
getPointSearchDistance()
Distance used for selecting points by proximity. |
int |
getPointSelectionMethod()
Selection method used for points. |
int |
getSearchTolerance()
Search tolerance in device units. |
void |
setAreaSearchDistance(double distance)
Distance used for selecting areas by proximity. |
void |
setAreaSelectionMethod(int method)
Selection method used for areas. |
void |
setCombinationMethod(int method)
Combination method for the selection results. |
void |
setDefaultColorByRef(IColor color)
Default selection color. |
void |
setLinearSearchDistance(double distance)
Distance used for selecting lines by proximity. |
void |
setLinearSelectionMethod(int method)
Selection method used for lines. |
void |
setPointSearchDistance(double distance)
Distance used for selecting points by proximity. |
void |
setPointSelectionMethod(int method)
Selection method used for points. |
void |
setSearchTolerance(int tolerance)
Search tolerance in device units. |
Method Detail |
---|
int getPointSelectionMethod() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPointSelectionMethod(int method) throws IOException, AutomationException
method
- A com.esri.arcgis.geodatabase.esriSpatialRelEnum constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getPointSearchDistance() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPointSearchDistance(double distance) throws IOException, AutomationException
distance
- The distance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getLinearSelectionMethod() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLinearSelectionMethod(int method) throws IOException, AutomationException
method
- A com.esri.arcgis.geodatabase.esriSpatialRelEnum constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getLinearSearchDistance() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLinearSearchDistance(double distance) throws IOException, AutomationException
distance
- The distance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getAreaSelectionMethod() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAreaSelectionMethod(int method) throws IOException, AutomationException
method
- A com.esri.arcgis.geodatabase.esriSpatialRelEnum constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getAreaSearchDistance() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAreaSearchDistance(double distance) throws IOException, AutomationException
distance
- The distance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCombinationMethod() throws IOException, AutomationException
The combination method defines how the selection performed will combine with an existing selection. It is the programmatic equivalent of the pulldown menus found in the selection dialogs in ArcMap.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCombinationMethod(int method) throws IOException, AutomationException
method
- A com.esri.arcgis.carto.esriSelectionResultEnum constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSearchTolerance() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSearchTolerance(int tolerance) throws IOException, AutomationException
tolerance
- The tolerance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IColor getDefaultColor() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultColorByRef(IColor color) throws IOException, AutomationException
color
- A reference to a com.esri.arcgis.display.IColor (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 |