com.esri.arcgis.datasourcesraster
Class RasterClassNames

java.lang.Object
  extended by com.esri.arcgis.datasourcesraster.RasterClassNames
All Implemented Interfaces:
IRasterClassNames, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class RasterClassNames
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IRasterClassNames

A list of class (category) names.

Description

This object is new at ArcGIS 9.3.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
RasterClassNames()
          Constructs a RasterClassNames using ArcGIS Engine.
RasterClassNames(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterClassNames theRasterClassNames = (RasterClassNames) obj;
 
Method Summary
 int bin(double pixval)
          Converts pixels to indices.
 void create(int numNames)
          Create Class Names safe array.
 boolean equals(Object o)
          Compare this object with another
 String getClassName(int nEntry)
          The class name at the current entry.
static String getClsid()
          getClsid.
 Object getNames()
          String array of class (category) names.
 int getSize()
          The number of Class Names for the band.
 int hashCode()
          the hashcode for this object
 void setClassName(int nEntry, String pClassName)
          The class name at the current entry.
 
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

RasterClassNames

public RasterClassNames()
                 throws IOException,
                        UnknownHostException
Constructs a RasterClassNames using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

RasterClassNames

public RasterClassNames(Object obj)
                 throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterClassNames theRasterClassNames = (RasterClassNames) obj;

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

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

getClsid

public static String getClsid()
getClsid.


equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

create

public void create(int numNames)
            throws IOException,
                   AutomationException
Create Class Names safe array.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
create in interface IRasterClassNames
Parameters:
numNames - The numNames (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSize

public int getSize()
            throws IOException,
                   AutomationException
The number of Class Names for the band.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getSize in interface IRasterClassNames
Returns:
The pNumNames
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setClassName

public void setClassName(int nEntry,
                         String pClassName)
                  throws IOException,
                         AutomationException
The class name at the current entry.

Product Availability

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

Specified by:
setClassName in interface IRasterClassNames
Parameters:
nEntry - The nEntry (in)
pClassName - The pClassName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getClassName

public String getClassName(int nEntry)
                    throws IOException,
                           AutomationException
The class name at the current entry.

Product Availability

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

Specified by:
getClassName in interface IRasterClassNames
Parameters:
nEntry - The nEntry (in)
Returns:
The pClassName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

bin

public int bin(double pixval)
        throws IOException,
               AutomationException
Converts pixels to indices.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
bin in interface IRasterClassNames
Parameters:
pixval - The pixval (in)
Returns:
The pIndex
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNames

public Object getNames()
                throws IOException,
                       AutomationException
String array of class (category) names.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getNames in interface IRasterClassNames
Returns:
A Variant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.