com.esri.arcgis.display
Class BasicRasterPicture

java.lang.Object
  extended by com.esri.arcgis.display.BasicRasterPicture
All Implemented Interfaces:
IRasterPicture, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class BasicRasterPicture
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IRasterPicture

A lightweight object for displaying some raster formats in a simple manner.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
BasicRasterPicture()
          Constructs a BasicRasterPicture using ArcGIS Engine.
BasicRasterPicture(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
BasicRasterPicture theBasicRasterPicture = (BasicRasterPicture) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 IColor getTransparentColor()
          The transparent color if there is any.
 int hashCode()
          the hashcode for this object
 IPicture loadPicture(String fileName)
          Loads the picture.
 
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

BasicRasterPicture

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

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

BasicRasterPicture

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

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

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

loadPicture

public IPicture loadPicture(String fileName)
                     throws IOException,
                            AutomationException
Loads the picture.

Product Availability

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

Specified by:
loadPicture in interface IRasterPicture
Parameters:
fileName - The fileName (in)
Returns:
A reference to a com.esri.arcgis.support.ms.stdole.IPicture
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTransparentColor

public IColor getTransparentColor()
                           throws IOException,
                                  AutomationException
The transparent color if there is any.

Product Availability

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

Specified by:
getTransparentColor in interface IRasterPicture
Returns:
A reference to a com.esri.arcgis.display.IColor
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.