com.esri.arcgis.datasourcesraster
Class IRasterBandProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.datasourcesraster.IRasterBandProxy
All Implemented Interfaces:
IRasterBand, Externalizable, Serializable

public class IRasterBandProxy
extends com.esri.arcgis.interop.Dispatch
implements IRasterBand, Serializable

Provides access to members that control a raster band object.

Remarks

IRasterBand interface provides access to statistics, histogram, raster attribute table, and colormap of the raster band.

The RasterDataset method returns a reference to the RasterDataset that contains this band.

The AttributeTable method returns a table if the raster band contains, or calculates a virtual table if the number of unique values of the raster band is less than 2048. The raster table can not be modified using ITable interface.

The ComputeStatsAndHist method calculates statistics and a histogram for the band.

The HasStatistics, HasHistogram, and HasColormap methods set the output parameter to True if the band contains a histogram, colormap, or statistics and False if the band does not.

Product Availability

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

See Also:
IRasterPyramid3, Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  IRasterBandProxy()
           
  IRasterBandProxy(Object obj)
           
protected IRasterBandProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 boolean canCopy()
          Returns true if this dataset can be copied.
 void computeStatsAndHist()
          Calculates statistics and histogram if not previously stored.
 IDataset copy(String copyName, IWorkspace copyWorkspace)
          Copies this raster band to a new dataset with the specified name.
 ITable getAttributeTable()
          The attribute table of this raster band.
 String getBandname()
          The name of this raster band.
 IRasterClassNames getClassNames()
          The class names (titles).
 IRasterColormap getColormap()
          The colormap of this raster band.
 IContrastTable getContrastTable()
          The contrast look-up table of this band.
 IRasterHistogram getHistogram()
          The histogram of this raster band.
 IRasterDataset getRasterDataset()
          The RasterDataset associated with this raster band.
 int getRepresentationType()
          The suggested representation type.
 IRasterStatistics getStatistics()
          The statistics of this raster band.
 void hasColormap(boolean[] b)
          Indicates if this band has a colormap.
 void hasStatistics(boolean[] b)
          Indicates if this band has statistics.
 void hasTable(boolean[] b)
          Indicates if this band has an attribute table.
 boolean isDirectlyOpened()
          Indicates if the band was opened directly.
 void removeListener(String iidStr, Object theListener)
           
 void setContrastTable(IContrastTable cont)
          The contrast look-up table of this band.
 void setRepresentationType(int pVal)
          The suggested representation type.
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

IRasterBandProxy

public IRasterBandProxy()

IRasterBandProxy

public IRasterBandProxy(Object obj)
                 throws IOException
Throws:
IOException

IRasterBandProxy

protected IRasterBandProxy(Object obj,
                           String iid)
                    throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

hasTable

public void hasTable(boolean[] b)
              throws IOException,
                     AutomationException
Indicates if this band has an attribute table.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
hasTable in interface IRasterBand
Parameters:
b - The b (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

hasStatistics

public void hasStatistics(boolean[] b)
                   throws IOException,
                          AutomationException
Indicates if this band has statistics.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
hasStatistics in interface IRasterBand
Parameters:
b - The b (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

hasColormap

public void hasColormap(boolean[] b)
                 throws IOException,
                        AutomationException
Indicates if this band has a colormap.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
hasColormap in interface IRasterBand
Parameters:
b - The b (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getStatistics

public IRasterStatistics getStatistics()
                                throws IOException,
                                       AutomationException
The statistics of this raster band.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getStatistics in interface IRasterBand
Returns:
A reference to a com.esri.arcgis.datasourcesraster.IRasterStatistics
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

computeStatsAndHist

public void computeStatsAndHist()
                         throws IOException,
                                AutomationException
Calculates statistics and histogram if not previously stored.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

getHistogram

public IRasterHistogram getHistogram()
                              throws IOException,
                                     AutomationException
The histogram of this raster band.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getHistogram in interface IRasterBand
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.

getColormap

public IRasterColormap getColormap()
                            throws IOException,
                                   AutomationException
The colormap of this raster band.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getColormap in interface IRasterBand
Returns:
A reference to a com.esri.arcgis.geodatabase.IRasterColormap
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttributeTable

public ITable getAttributeTable()
                         throws IOException,
                                AutomationException
The attribute table of this raster band.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getAttributeTable in interface IRasterBand
Returns:
A reference to a com.esri.arcgis.geodatabase.ITable
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getClassNames

public IRasterClassNames getClassNames()
                                throws IOException,
                                       AutomationException
The class names (titles).

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getClassNames in interface IRasterBand
Returns:
A reference to a com.esri.arcgis.datasourcesraster.IRasterClassNames
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getRasterDataset

public IRasterDataset getRasterDataset()
                                throws IOException,
                                       AutomationException
The RasterDataset associated with this raster band.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getRasterDataset in interface IRasterBand
Returns:
A reference to a com.esri.arcgis.geodatabase.IRasterDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getRepresentationType

public int getRepresentationType()
                          throws IOException,
                                 AutomationException
The suggested representation type.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getRepresentationType in interface IRasterBand
Returns:
A com.esri.arcgis.datasourcesraster.rstRepresentationType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setRepresentationType

public void setRepresentationType(int pVal)
                           throws IOException,
                                  AutomationException
The suggested representation type.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setRepresentationType in interface IRasterBand
Parameters:
pVal - A com.esri.arcgis.datasourcesraster.rstRepresentationType constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getContrastTable

public IContrastTable getContrastTable()
                                throws IOException,
                                       AutomationException
The contrast look-up table of this band.

Remarks

This method should not be used by application developers.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getContrastTable in interface IRasterBand
Returns:
A reference to a com.esri.arcgis.datasourcesraster.IContrastTable
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setContrastTable

public void setContrastTable(IContrastTable cont)
                      throws IOException,
                             AutomationException
The contrast look-up table of this band.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

canCopy

public boolean canCopy()
                throws IOException,
                       AutomationException
Returns true if this dataset can be copied.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

copy

public IDataset copy(String copyName,
                     IWorkspace copyWorkspace)
              throws IOException,
                     AutomationException
Copies this raster band to a new dataset with the specified name.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
copy in interface IRasterBand
Parameters:
copyName - The copyName (in)
copyWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getBandname

public String getBandname()
                   throws IOException,
                          AutomationException
The name of this raster band.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getBandname in interface IRasterBand
Returns:
The bandname
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isDirectlyOpened

public boolean isDirectlyOpened()
                         throws IOException,
                                AutomationException
Indicates if the band was opened directly.

Remarks

This method should not be used by application developers.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
isDirectlyOpened in interface IRasterBand
Returns:
The bDirectlyOpened
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.