|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.FeatureCache
public class FeatureCache
A cache of features in memory for a particular spatial extent.
The FeatureCache object is used for organizing small collections of features for operation which require quick access to them. The feature cache is intended for small numbers of features, roughly 10, and is not intended to be a large data store due to its usage of memory.
Constructor Summary | |
---|---|
FeatureCache()
Constructs a FeatureCache using ArcGIS Engine. |
|
FeatureCache(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. FeatureCache theFeatureCache = (FeatureCache) obj; |
Method Summary | |
---|---|
void |
addFeatures(IFeatureClass fclass)
Fills the cache with features from the featureclass. |
void |
addFeatures(IFeatureClass fclass,
IEnvelope clip)
Fills the cache with features from the featureclass. |
void |
addLayers(IEnumLayer layers,
IEnvelope clip)
Fills the cache with the features from the specified layers. |
boolean |
contains(IPoint point)
Returns true if the point is contained in the cache. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
getCount()
The number of features in the cache. |
IFeature |
getFeature(int index)
The nth feature. |
int |
hashCode()
the hashcode for this object |
void |
initialize(IPoint point,
double size)
Initializes the cache with a given size and location. |
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 FeatureCache() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic FeatureCache(Object obj) throws IOException
FeatureCache theFeatureCache = (FeatureCache) obj;
obj
to FeatureCache
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void initialize(IPoint point, double size) throws IOException, AutomationException
This method initializes the cache using an envelope created from the point by expanding it in height and width according to the specified size value. Size should be in the same units as the point.
initialize
in interface IFeatureCache
initialize
in interface IFeatureCache2
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)size
- The size (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addFeatures(IFeatureClass fclass) throws IOException, AutomationException
Adds the features in the specified features class that fit within the envelope the cache was initialized with to the cache.
addFeatures
in interface IFeatureCache
fclass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean contains(IPoint point) throws IOException, AutomationException
contains
in interface IFeatureCache
contains
in interface IFeatureCache2
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 getCount() throws IOException, AutomationException
getCount
in interface IFeatureCache
getCount
in interface IFeatureCache2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeature getFeature(int index) throws IOException, AutomationException
getFeature
in interface IFeatureCache
getFeature
in interface IFeatureCache2
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addFeatures(IFeatureClass fclass, IEnvelope clip) throws IOException, AutomationException
Adds the features in the specified features class to the cache. Only features that fit within the intersection of the clip envelope and the cache's internal envelope (specified during initialization) will be added.
addFeatures
in interface IFeatureCache2
fclass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)clip
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addLayers(IEnumLayer layers, IEnvelope clip) throws IOException, AutomationException
Adds the features in the specified layers to the cache. Only features that fit within the intersection of the clip envelope and the cache's internal envelope (specified during initialization) will be added.
addLayers
in interface IFeatureCache2
layers
- A reference to a com.esri.arcgis.carto.IEnumLayer (in)clip
- A reference to a com.esri.arcgis.geometry.IEnvelope (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 |