com.esri.arcgis.datasourcesraster
Class RasterCalcUniqueValues

java.lang.Object
  extended by com.esri.arcgis.datasourcesraster.RasterCalcUniqueValues
All Implemented Interfaces:
IRasterCalcUniqueValues, IRasterCalcUniqueValues2, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class RasterCalcUniqueValues
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IRasterCalcUniqueValues, IRasterCalcUniqueValues2

COM Class 'RasterCalcUniqueValues'. Generated 3/19/2015 1:20:42 PM from 'C:\ArcGIS\COM\esriDataSourcesRaster.olb'

Description 'A helper class for calculating raster unique values.' 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.datasourcesraster.IRasterCalcUniqueValues2
IID, IID7c39b731_a6a8_4843_a734_ff607331e57a, xxDummy
 
Fields inherited from interface com.esri.arcgis.datasourcesraster.IRasterCalcUniqueValues
IIDb065f7f9_c202_466c_b111_f6a89c55ab29
 
Constructor Summary
RasterCalcUniqueValues()
          Constructs a RasterCalcUniqueValues using ArcGIS Engine.
RasterCalcUniqueValues(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterCalcUniqueValues theRasterCalcUniqueValues = (RasterCalcUniqueValues) obj;
 
Method Summary
 void addFromRaster(IRaster pRaster, int iBand, IUniqueValues pUniqueValues)
          Adds values from a given band of a Raster.
 void addFromRasterAsDecimal(IRaster pRaster, int iBand, double precision, IUniqueValues pUniqueValues)
          Adds decimal values truncated to a given precision from a given band of a Raster.
 void addFromTable(ICursor pCursor, int iValueField, int iCountField, IUniqueValues pUniqueValues)
          Adds values of a field of a table.
 boolean equals(java.lang.Object o)
          Compare this object with another
static java.lang.String getClsid()
          getClsid.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int getMaxUniqueValueCount()
          The maximum number of unique values.
 int hashCode()
          the hashcode for this object
 void release()
          Release a RasterCalcUniqueValues.
 void setMaxUniqueValueCount(int pMaxCount)
          The maximum number of unique values.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RasterCalcUniqueValues

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

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

RasterCalcUniqueValues

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

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

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 RasterCalcUniqueValues.

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

addFromTable

public void addFromTable(ICursor pCursor,
                         int iValueField,
                         int iCountField,
                         IUniqueValues pUniqueValues)
                  throws java.io.IOException,
                         AutomationException
Adds values of a field of a table.

Specified by:
addFromTable in interface IRasterCalcUniqueValues
Parameters:
pCursor - A reference to a com.esri.arcgis.geodatabase.ICursor (in)
iValueField - The iValueField (in)
iCountField - The iCountField (in)
pUniqueValues - A reference to a com.esri.arcgis.datasourcesraster.IUniqueValues (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addFromRaster

public void addFromRaster(IRaster pRaster,
                          int iBand,
                          IUniqueValues pUniqueValues)
                   throws java.io.IOException,
                          AutomationException
Adds values from a given band of a Raster.

Specified by:
addFromRaster in interface IRasterCalcUniqueValues
Parameters:
pRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
iBand - The iBand (in)
pUniqueValues - A reference to a com.esri.arcgis.datasourcesraster.IUniqueValues (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addFromRasterAsDecimal

public void addFromRasterAsDecimal(IRaster pRaster,
                                   int iBand,
                                   double precision,
                                   IUniqueValues pUniqueValues)
                            throws java.io.IOException,
                                   AutomationException
Adds decimal values truncated to a given precision from a given band of a Raster.

Specified by:
addFromRasterAsDecimal in interface IRasterCalcUniqueValues
Parameters:
pRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
iBand - The iBand (in)
precision - The precision (in)
pUniqueValues - A reference to a com.esri.arcgis.datasourcesraster.IUniqueValues (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMaxUniqueValueCount

public int getMaxUniqueValueCount()
                           throws java.io.IOException,
                                  AutomationException
The maximum number of unique values.

Specified by:
getMaxUniqueValueCount in interface IRasterCalcUniqueValues2
Returns:
The pMaxCount
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMaxUniqueValueCount

public void setMaxUniqueValueCount(int pMaxCount)
                            throws java.io.IOException,
                                   AutomationException
The maximum number of unique values.

Specified by:
setMaxUniqueValueCount in interface IRasterCalcUniqueValues2
Parameters:
pMaxCount - The pMaxCount (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.