com.esri.arcgis.datasourcesraster
Class RasterHistograms

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

public class RasterHistograms
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IRasterHistograms

An array of raster histograms.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
RasterHistograms()
          Constructs a RasterHistograms using ArcGIS Engine.
RasterHistograms(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterHistograms theRasterHistograms = (RasterHistograms) obj;
 
Method Summary
 void add(IRasterHistogram pHistogram)
          Adds a raster histogram.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int getCount()
          The raster histogram count.
 IRasterHistogram getElement(int index)
          The raster histogram at the specified position.
 int hashCode()
          the hashcode for this object
 void insert(int index, IRasterHistogram pHistogram)
          Adds a raster histogram at the specified position.
 void remove(int index)
          Removes the raster histogram at the specified position.
 void removeAll()
          Removes all raster histograms.
 
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

RasterHistograms

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

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

RasterHistograms

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

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

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

getCount

public int getCount()
             throws IOException,
                    AutomationException
The raster histogram count.

Product Availability

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

Specified by:
getCount in interface IRasterHistograms
Returns:
The pCount
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getElement

public IRasterHistogram getElement(int index)
                            throws IOException,
                                   AutomationException
The raster histogram at the specified position.

Product Availability

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

Specified by:
getElement in interface IRasterHistograms
Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.datasourcesraster.IRasterHistogram
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

public void remove(int index)
            throws IOException,
                   AutomationException
Removes the raster histogram at the specified position.

Product Availability

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

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

removeAll

public void removeAll()
               throws IOException,
                      AutomationException
Removes all raster histograms.

Product Availability

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

Specified by:
removeAll in interface IRasterHistograms
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public void add(IRasterHistogram pHistogram)
         throws IOException,
                AutomationException
Adds a raster histogram.

Product Availability

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

Specified by:
add in interface IRasterHistograms
Parameters:
pHistogram - A reference to a com.esri.arcgis.datasourcesraster.IRasterHistogram (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

insert

public void insert(int index,
                   IRasterHistogram pHistogram)
            throws IOException,
                   AutomationException
Adds a raster histogram at the specified position.

Product Availability

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

Specified by:
insert in interface IRasterHistograms
Parameters:
index - The index (in)
pHistogram - A reference to a com.esri.arcgis.datasourcesraster.IRasterHistogram (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.