com.esri.arcgis.carto
Class FeatureCache

java.lang.Object
  extended by com.esri.arcgis.carto.FeatureCache
All Implemented Interfaces:
IFeatureCache, IFeatureCache2, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class FeatureCache
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IFeatureCache, IFeatureCache2

COM Class 'FeatureCache'. Generated 3/19/2015 1:20:41 PM from 'C:\ArcGIS\COM\esriCarto.olb'

Description 'A cache of features in memory for a particular spatial extent.' 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 =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.carto.IFeatureCache
IID, IIDa802ba71_d947_11d1_8484_0000f875b9c6, xxDummy
 
Fields inherited from interface com.esri.arcgis.carto.IFeatureCache2
IID, IIDfcf1e491_5ba6_11d4_8367_0080c7e20671, xxDummy
 
Constructor Summary
FeatureCache()
          Constructs a FeatureCache using ArcGIS Engine.
FeatureCache(java.lang.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(java.lang.Object o)
          Compare this object with another
static java.lang.String getClsid()
          getClsid.
 int getCount()
          The number of features in the cache.
 IFeature getFeature(int index)
          The nth feature.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int hashCode()
          the hashcode for this object
 void initialize(IPoint point, double size)
          Initializes the cache with a given size and location.
 void release()
          Release a FeatureCache.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureCache

public FeatureCache()
             throws java.io.IOException,
                    java.net.UnknownHostException
Constructs a FeatureCache using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

FeatureCache

public FeatureCache(java.lang.Object obj)
             throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
FeatureCache theFeatureCache = (FeatureCache) obj;

Construct a FeatureCache using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to FeatureCache.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a FeatureCache.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

initialize

public void initialize(IPoint point,
                       double size)
                throws java.io.IOException,
                       AutomationException
Initializes the cache with a given size and location.

Specified by:
initialize in interface IFeatureCache
Specified by:
initialize in interface IFeatureCache2
Parameters:
point - A reference to a com.esri.arcgis.geometry.IPoint (in)
size - The size (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addFeatures

public void addFeatures(IFeatureClass fclass)
                 throws java.io.IOException,
                        AutomationException
Fills the cache with features from the featureclass. All previously loaded features in the cache are removed.

Specified by:
addFeatures in interface IFeatureCache
Parameters:
fclass - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

contains

public boolean contains(IPoint point)
                 throws java.io.IOException,
                        AutomationException
Returns true if the point is contained in the cache.

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

getCount

public int getCount()
             throws java.io.IOException,
                    AutomationException
The number of features in the cache.

Specified by:
getCount in interface IFeatureCache
Specified by:
getCount in interface IFeatureCache2
Returns:
The count
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFeature

public IFeature getFeature(int index)
                    throws java.io.IOException,
                           AutomationException
The nth feature.

Specified by:
getFeature in interface IFeatureCache
Specified by:
getFeature in interface IFeatureCache2
Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeature
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addFeatures

public void addFeatures(IFeatureClass fclass,
                        IEnvelope clip)
                 throws java.io.IOException,
                        AutomationException
Fills the cache with features from the featureclass. Clip envelope may be null.

Specified by:
addFeatures in interface IFeatureCache2
Parameters:
fclass - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
clip - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addLayers

public void addLayers(IEnumLayer layers,
                      IEnvelope clip)
               throws java.io.IOException,
                      AutomationException
Fills the cache with the features from the specified layers. Clip envelope may be null.

Specified by:
addLayers in interface IFeatureCache2
Parameters:
layers - A reference to a com.esri.arcgis.carto.IEnumLayer (in)
clip - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.