com.esri.arcgis.datasourcesraster
Interface IUniqueValues

All Superinterfaces:
Serializable
All Known Subinterfaces:
IUniqueValues2
All Known Implementing Classes:
UniqueValues

public interface IUniqueValues
extends Serializable

Provides access to members that controls unique values.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 int add(int value, int count)
          Adds a value if necessary and returns its value ID.
 void delete(int value)
          Deletes a value.
 void empty()
          Empties unique values.
 int getCount()
          The total number of unique values.
 void getHistogram(Object[] pUniqueValues, Object[] pCounts)
          The historgram of values.
 int getMax()
          The maximum of values.
 int getMin()
          The minimum of values.
 int getUniqueCount(int idnex)
          The unique value count at a given index.
 Object getUniqueValue(int index)
          The unique value at a given index.
 int lookup(int value)
          Looks up unique index of a given value.
 

Method Detail

lookup

int lookup(int value)
           throws IOException,
                  AutomationException
Looks up unique index of a given value.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
value - The value (in)
Returns:
The index
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

int add(int value,
        int count)
        throws IOException,
               AutomationException
Adds a value if necessary and returns its value ID.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
value - The value (in)
count - The count (in)
Returns:
The index
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

delete

void delete(int value)
            throws IOException,
                   AutomationException
Deletes a value.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
value - The value (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

empty

void empty()
           throws IOException,
                  AutomationException
Empties unique values.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUniqueValue

Object getUniqueValue(int index)
                      throws IOException,
                             AutomationException
The unique value at a given index.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
index - The index (in)
Returns:
A Variant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUniqueCount

int getUniqueCount(int idnex)
                   throws IOException,
                          AutomationException
The unique value count at a given index.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
idnex - The idnex (in)
Returns:
The uniqueCount
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCount

int getCount()
             throws IOException,
                    AutomationException
The total number of unique values.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMin

int getMin()
           throws IOException,
                  AutomationException
The minimum of values.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Returns:
The min
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMax

int getMax()
           throws IOException,
                  AutomationException
The maximum of values.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Returns:
The max
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHistogram

void getHistogram(Object[] pUniqueValues,
                  Object[] pCounts)
                  throws IOException,
                         AutomationException
The historgram of values.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
pUniqueValues - A Variant (out: use single element array)
pCounts - A Variant (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.