com.esri.arcgis.support.ms.stdole
Class StdPicture

java.lang.Object
  extended by com.esri.arcgis.support.ms.stdole.StdPicture
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IPicture, Picture, Serializable

public class StdPicture
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, Picture, IPicture

See Also:
Serialized Form

Constructor Summary
StdPicture()
          Constructs a StdPicture using ArcGIS Engine.
StdPicture(Object obj)
          Construct a StdPicture using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 int getAttributes()
          getAttributes
static String getClsid()
          getClsid.
 int getCurDC()
          getCurDC
 int getHandle()
          getHandle
 int getHeight()
          getHeight
 int getHPal()
          getHPal
 short getType()
          getType
 int getWidth()
          getWidth
 int hashCode()
          the hashcode for this object
 boolean isKeepOriginalFormat()
          isKeepOriginalFormat
 void pictureChanged()
          pictureChanged
 void render(int hdc, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, int prcWBounds)
          render
 void saveAsFile(int pstm, boolean fSaveMemCopy, int[] pcbSize)
          saveAsFile
 void selectPicture(int hdcIn, int[] phdcOut, int[] phbmpOut)
          selectPicture
 void setHandle(int rhs)
          setHandle
 void setHdc(int hdc)
          setHdc
 void setHeight(int rhs)
          setHeight
 void setHPal(int rhs)
          setHPal
 void setKeepOriginalFormat(boolean pfkeep)
          setKeepOriginalFormat
 void setType(short rhs)
          setType
 void setWidth(int rhs)
          setWidth
 Image toImage()
          Converts this Picture to a Java Image
 
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

StdPicture

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

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

StdPicture

public StdPicture(Object obj)
           throws IOException
Construct a StdPicture using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to StdPicture.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems StdPicture theStdPicture = (StdPicture) obj;
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

getHandle

public int getHandle()
              throws IOException,
                     AutomationException
getHandle

Specified by:
getHandle in interface IPicture
Specified by:
getHandle in interface Picture
Returns:
The return value (A COM typedef)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setHandle

public void setHandle(int rhs)
               throws IOException,
                      AutomationException
setHandle

Specified by:
setHandle in interface Picture
Parameters:
rhs - The rhs (A COM typedef) )
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHPal

public int getHPal()
            throws IOException,
                   AutomationException
getHPal

Specified by:
getHPal in interface IPicture
Specified by:
getHPal in interface Picture
Returns:
The return value (A COM typedef)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setHPal

public void setHPal(int rhs)
             throws IOException,
                    AutomationException
setHPal

Specified by:
setHPal in interface IPicture
Specified by:
setHPal in interface Picture
Parameters:
rhs - The rhs (A COM typedef) )
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getType

public short getType()
              throws IOException,
                     AutomationException
getType

Specified by:
getType in interface IPicture
Specified by:
getType in interface Picture
Returns:
The return value
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setType

public void setType(short rhs)
             throws IOException,
                    AutomationException
setType

Specified by:
setType in interface Picture
Parameters:
rhs - The rhs )
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getWidth

public int getWidth()
             throws IOException,
                    AutomationException
getWidth

Specified by:
getWidth in interface IPicture
Specified by:
getWidth in interface Picture
Returns:
The return value (A COM typedef)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setWidth

public void setWidth(int rhs)
              throws IOException,
                     AutomationException
setWidth

Specified by:
setWidth in interface Picture
Parameters:
rhs - The rhs (A COM typedef) )
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHeight

public int getHeight()
              throws IOException,
                     AutomationException
getHeight

Specified by:
getHeight in interface IPicture
Specified by:
getHeight in interface Picture
Returns:
The return value (A COM typedef)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setHeight

public void setHeight(int rhs)
               throws IOException,
                      AutomationException
setHeight

Specified by:
setHeight in interface Picture
Parameters:
rhs - The rhs (A COM typedef) )
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

render

public void render(int hdc,
                   int x,
                   int y,
                   int cx,
                   int cy,
                   int xSrc,
                   int ySrc,
                   int cxSrc,
                   int cySrc,
                   int prcWBounds)
            throws IOException,
                   AutomationException
render

Specified by:
render in interface IPicture
Specified by:
render in interface Picture
Parameters:
hdc - The hdc (in)
x - The x (in)
y - The y (in)
cx - The cx (in)
cy - The cy (in)
xSrc - The xSrc (A COM typedef) (in)
ySrc - The ySrc (A COM typedef) (in)
cxSrc - The cxSrc (A COM typedef) (in)
cySrc - The cySrc (A COM typedef) (in)
prcWBounds - A COM void* (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCurDC

public int getCurDC()
             throws IOException,
                    AutomationException
getCurDC

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

selectPicture

public void selectPicture(int hdcIn,
                          int[] phdcOut,
                          int[] phbmpOut)
                   throws IOException,
                          AutomationException
selectPicture

Specified by:
selectPicture in interface IPicture
Parameters:
hdcIn - The hdcIn (in)
phdcOut - The phdcOut (out: use single element array)
phbmpOut - The phbmpOut (A COM typedef) (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isKeepOriginalFormat

public boolean isKeepOriginalFormat()
                             throws IOException,
                                    AutomationException
isKeepOriginalFormat

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

setKeepOriginalFormat

public void setKeepOriginalFormat(boolean pfkeep)
                           throws IOException,
                                  AutomationException
setKeepOriginalFormat

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

pictureChanged

public void pictureChanged()
                    throws IOException,
                           AutomationException
pictureChanged

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

saveAsFile

public void saveAsFile(int pstm,
                       boolean fSaveMemCopy,
                       int[] pcbSize)
                throws IOException,
                       AutomationException
saveAsFile

Specified by:
saveAsFile in interface IPicture
Parameters:
pstm - A COM void* (in)
fSaveMemCopy - The fSaveMemCopy (in)
pcbSize - The pcbSize (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttributes

public int getAttributes()
                  throws IOException,
                         AutomationException
getAttributes

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

setHdc

public void setHdc(int hdc)
            throws IOException,
                   AutomationException
setHdc

Specified by:
setHdc in interface IPicture
Parameters:
hdc - The hdc (A COM typedef) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toImage

public Image toImage()
              throws IOException
Converts this Picture to a Java Image

Specified by:
toImage in interface IPicture
Specified by:
toImage in interface Picture
Returns:
the equivalent image in Java
Throws:
IOException - If there are interop problems.