|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.controls.ARFeatureSet
public class ARFeatureSet
ARFeatureSet object.
Use the ARFeatureSet object to iterate over the set of ARFeature objects that are returned from the IARLayer::QueryARFeatures , IARMap::QueryARFeatures and IARGlobe::QueryARFeatures methods. Unlike the ARFeatureCursor, the ARFeatureSet supports retrieving ARFeature objects that have already been retrieved and supports making multiple passes over the features. This is useful if there are a small number of ARFeature objects; an ARFeatureSet can consume a lot of memory and take a long time to be populated.
Constructor Summary | |
---|---|
ARFeatureSet(Object obj)
Construct a ARFeatureSet using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
void |
centerAt()
Centers the map display on the center of the ARFeatureSet. |
boolean |
equals(Object o)
Compare this object with another |
void |
flash()
Flashes the features in the ARFeatureSet. |
void |
flicker()
Flickers the features in the ARFeatureSet. |
IARFeature |
getARFeature(int index)
The feature at the specified index. |
int |
getARFeatureCount()
The number of features in the ARFeatureSet. |
Object |
getCustomProperty()
A property to associate data with an object. |
int |
hashCode()
the hashcode for this object |
void |
highlight(boolean bHighlight,
int color)
Highlights the features in the ARFeatureSet. |
IARFeature |
next()
Retrieves the next feature in the ARFeatureSet. |
void |
reset()
Resets the ARFeatureSet to the beginning. |
void |
setCustomProperty(Object pVal)
A property to associate data with an object. |
void |
zoomTo()
Zooms the map to display the ARFeatureSet. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public ARFeatureSet(Object obj) throws IOException
obj
to ARFeatureSet
. *
ARFeatureSet o = (ARFeatureSet)obj; // will not work
ARFeatureSet o = new ARFeatureSet(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
ARFeatureSet theARFeatureSet = (ARFeatureSet) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int getARFeatureCount() throws IOException, AutomationException
The ARFeatureCount property returns the number of ARFeature's within the ARFeatureSet.
getARFeatureCount
in interface IARFeatureSet
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IARFeature getARFeature(int index) throws IOException, AutomationException
getARFeature
in interface IARFeatureSet
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IARFeature next() throws IOException, AutomationException
The Next method advances the ARFeatureSet by one, and returns the ARFeature object at that position.
next
in interface IARFeatureSet
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void reset() throws IOException, AutomationException
Resets the ARFeatureSet to the beginning. To make subsequent passes through the ARFeatureSet use the Reset method to go back to the first ARFeature in the collection.
reset
in interface IARFeatureSet
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getCustomProperty() throws IOException, AutomationException
Use the CustomProperty to associate any useful data with the ARFeatureSet. This is similar to a 'Tag' property, and can be use to store strings, numbers and objects.
getCustomProperty
in interface IARFeatureSet
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCustomProperty(Object pVal) throws IOException, AutomationException
setCustomProperty
in interface IARFeatureSet
pVal
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void centerAt() throws IOException, AutomationException
Centers the extent of all the features in the ARFeatureSet on the display to make them visible. The extent of the ARMap will change, but the IARMap::MapScale will remain the same. By default the screen is automatically refreshed.
centerAt
in interface IARFeatureSet
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void flash() throws IOException, AutomationException
Flashes all the features in the ARFeatureSet once on the display. The greater the ARFeatureCount, the longer it will take to flash the features. Before using the Flash method use the ZoomTo or CenterAt method to ensure that the ARFeature is visible in the ARMap display area to the user.
flash
in interface IARFeatureSet
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void flicker() throws IOException, AutomationException
Flickers all the features in the ARFeatureSet on the display. This is like flashing the features four times in quick succession. The greater the ARFeatureCount, the longer it will take to flicker the features. Before using the Flicker method use the ZoomTo or CenterAt method to ensure that the ARFeature is visible in the ARMap display area to the user.
flicker
in interface IARFeatureSet
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void zoomTo() throws IOException, AutomationException
Zooms to the extent of all the features in the ARFeatureSet to make them visible on the display. This may change the IARMap::MapScale. By default the screen is automatically refreshed.
zoomTo
in interface IARFeatureSet
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void highlight(boolean bHighlight, int color) throws IOException, AutomationException
Highlights all the features in the ARFeatureSet on the display. By deafult the screen is automatically refreshed.
This method acts on an instance of an object. In order to toggle the highlighting of an ARFeatureSet, one must work with the same instance of the object.
The Highlight method triggers the following events:
OnBeforeScreenDraw
OnAfterScreenDraw
highlight
in interface IARFeatureSet
bHighlight
- The bHighlight (in)color
- The color (A COM typedef) (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 |