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, java.io.Serializable

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

See Also:
Serialized Form

Constructor Summary
StdPicture()
          Constructs a StdPicture using ArcGIS Engine.
StdPicture(java.lang.Object obj)
          Construct a StdPicture using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 int getAttributes()
          getAttributes
static java.lang.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
 java.awt.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 java.io.IOException,
                  java.net.UnknownHostException
Constructs a StdPicture using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

StdPicture

public StdPicture(java.lang.Object obj)
           throws java.io.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:
java.io.IOException - if there are interop problems StdPicture theStdPicture = (StdPicture) obj;
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

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

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getHandle

public int getHandle()
              throws java.io.IOException,
                     AutomationException
getHandle

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

setHandle

public void setHandle(int rhs)
               throws java.io.IOException,
                      AutomationException
setHandle

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

getHPal

public int getHPal()
            throws java.io.IOException,
                   AutomationException
getHPal

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

setHPal

public void setHPal(int rhs)
             throws java.io.IOException,
                    AutomationException
setHPal

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

getType

public short getType()
              throws java.io.IOException,
                     AutomationException
getType

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

setType

public void setType(short rhs)
             throws java.io.IOException,
                    AutomationException
setType

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

getWidth

public int getWidth()
             throws java.io.IOException,
                    AutomationException
getWidth

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

setWidth

public void setWidth(int rhs)
              throws java.io.IOException,
                     AutomationException
setWidth

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

getHeight

public int getHeight()
              throws java.io.IOException,
                     AutomationException
getHeight

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

setHeight

public void setHeight(int rhs)
               throws java.io.IOException,
                      AutomationException
setHeight

Specified by:
setHeight in interface Picture
Parameters:
rhs - The rhs (A COM typedef) )
Throws:
java.io.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 java.io.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:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCurDC

public int getCurDC()
             throws java.io.IOException,
                    AutomationException
getCurDC

Specified by:
getCurDC in interface IPicture
Returns:
The phdcOut
Throws:
java.io.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 java.io.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:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isKeepOriginalFormat

public boolean isKeepOriginalFormat()
                             throws java.io.IOException,
                                    AutomationException
isKeepOriginalFormat

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

setKeepOriginalFormat

public void setKeepOriginalFormat(boolean pfkeep)
                           throws java.io.IOException,
                                  AutomationException
setKeepOriginalFormat

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

pictureChanged

public void pictureChanged()
                    throws java.io.IOException,
                           AutomationException
pictureChanged

Specified by:
pictureChanged in interface IPicture
Throws:
java.io.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 java.io.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:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttributes

public int getAttributes()
                  throws java.io.IOException,
                         AutomationException
getAttributes

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

setHdc

public void setHdc(int hdc)
            throws java.io.IOException,
                   AutomationException
setHdc

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

toImage

public java.awt.Image toImage()
                       throws java.io.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:
java.io.IOException - If there are interop problems.