|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.carto.IFeatureSelectionProxy
public class IFeatureSelectionProxy
Provides access to members that control feature selection.
IFeatureSelection is a very useful interface to manage or perform selection on a layer or to modify the way the selection is displayed.
The following methods and properties are useful to manage the selection:
The CombinationMethod property is not used.
SelectionSet returns a SelectionSet corresponding to the current selection on the layer.
Clear will clear an existing selection.
Add adds one single feature to the selection.
SelectFeatures will perform a selection based on a query filter. If nothing is used as a query filter all the features will be selected. You can also specify a combination method. The justOne parameter tells the search to stop once it has found one feature.
Call SelectionChanged after modifying SelectionSet to fire update events on the layer.
The following methods and properties are useful to modify the way the selection is displayed:
SelectionSymbol will return or set the symbol used to display selected features on the layer.
SetSelectionSymbol is a boolean used to indicate if the SelectionSymbol is used or not to draw the selection. For feature layers, this is similar to using the "Show selected features...with this symbol" option in the layer properties.
SelectionColor is equivalent to using the "Show selected features...with this color" option in the layer properties.
If BufferDistance is set to a value greater than 0, a buffer will be drawn around the selected features. This is similar to using the Buffer Selection tool that can be added to the map with the Customize command found in the Tools menu.
| Field Summary | |
|---|---|
boolean |
noncastable
|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
|---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
| Constructor Summary | |
|---|---|
|
IFeatureSelectionProxy()
|
|
IFeatureSelectionProxy(Object obj)
|
protected |
IFeatureSelectionProxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
add(IFeature feature)
Adds a feature to the selection set. |
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
clear()
Clears the selection. |
double |
getBufferDistance()
Buffer distance used for the selection. |
int |
getCombinationMethod()
Combination method for the selection. |
IColor |
getSelectionColor()
Selection color. |
ISelectionSet |
getSelectionSet()
The selected set of features. |
ISymbol |
getSelectionSymbol()
Selection symbol. |
boolean |
isSetSelectionSymbol()
Indicates if the selected set of features is drawn using the SelectionSymbol. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
selectFeatures(IQueryFilter filter,
int method,
boolean justOne)
Selects features based upon the specifed criteria and combination method. |
void |
selectionChanged()
Fires the features layer update event. |
void |
setBufferDistance(double distance)
Buffer distance used for the selection. |
void |
setCombinationMethod(int method)
Combination method for the selection. |
void |
setSelectionColorByRef(IColor color)
Selection color. |
void |
setSelectionSetByRef(ISelectionSet selectionSet)
The selected set of features. |
void |
setSelectionSymbolByRef(ISymbol symbol)
Selection symbol. |
void |
setSetSelectionSymbol(boolean setSymbol)
Indicates if the selected set of features is drawn using the SelectionSymbol. |
| 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 IFeatureSelectionProxy()
public IFeatureSelectionProxy(Object obj)
throws IOException
IOException
protected IFeatureSelectionProxy(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.DispatchIOException
public void removeListener(String iidStr,
Object theListener)
throws IOException
removeListener in class com.esri.arcgis.interop.DispatchIOException
public ISelectionSet getSelectionSet()
throws IOException,
AutomationException
getSelectionSet in interface IFeatureSelectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSelectionSetByRef(ISelectionSet selectionSet)
throws IOException,
AutomationException
setSelectionSetByRef in interface IFeatureSelectionselectionSet - A reference to a com.esri.arcgis.geodatabase.ISelectionSet (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getCombinationMethod()
throws IOException,
AutomationException
getCombinationMethod in interface IFeatureSelectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCombinationMethod(int method)
throws IOException,
AutomationException
setCombinationMethod in interface IFeatureSelectionmethod - A com.esri.arcgis.carto.esriSelectionResultEnum constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getBufferDistance()
throws IOException,
AutomationException
getBufferDistance in interface IFeatureSelectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setBufferDistance(double distance)
throws IOException,
AutomationException
setBufferDistance in interface IFeatureSelectiondistance - The distance (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSetSelectionSymbol()
throws IOException,
AutomationException
isSetSelectionSymbol in interface IFeatureSelectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSetSelectionSymbol(boolean setSymbol)
throws IOException,
AutomationException
setSetSelectionSymbol in interface IFeatureSelectionsetSymbol - The setSymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IColor getSelectionColor()
throws IOException,
AutomationException
getSelectionColor in interface IFeatureSelectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSelectionColorByRef(IColor color)
throws IOException,
AutomationException
setSelectionColorByRef in interface IFeatureSelectioncolor - A reference to a com.esri.arcgis.display.IColor (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISymbol getSelectionSymbol()
throws IOException,
AutomationException
getSelectionSymbol in interface IFeatureSelectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSelectionSymbolByRef(ISymbol symbol)
throws IOException,
AutomationException
setSelectionSymbolByRef in interface IFeatureSelectionsymbol - 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 void add(IFeature feature)
throws IOException,
AutomationException
add in interface IFeatureSelectionfeature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void selectFeatures(IQueryFilter filter,
int method,
boolean justOne)
throws IOException,
AutomationException
selectFeatures in interface IFeatureSelectionfilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)method - A com.esri.arcgis.carto.esriSelectionResultEnum constant (in)justOne - The justOne (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void clear()
throws IOException,
AutomationException
clear in interface IFeatureSelectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void selectionChanged()
throws IOException,
AutomationException
selectionChanged in interface IFeatureSelectionIOException - 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 | ||||||||