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

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.support.ms.stdole.IPictureProxy
All Implemented Interfaces:
IPicture, java.io.Externalizable, java.io.Serializable

public class IPictureProxy
extends com.esri.arcgis.interop.Dispatch
implements IPicture, java.io.Serializable

Picture Object

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  IPictureProxy()
           
  IPictureProxy(java.lang.Object obj)
           
protected IPictureProxy(java.lang.Object obj, java.lang.String iid)
           
 
Method Summary
 void addListener(java.lang.String iidStr, java.lang.Object theListener, java.lang.Object theSource)
           
 int getAttributes()
          getAttributes
 int getCurDC()
          getCurDC
 int getHandle()
          getHandle
 int getHeight()
          getHeight
 int getHPal()
          getHPal
 short getType()
          getType
 int getWidth()
          getWidth
 boolean isKeepOriginalFormat()
          isKeepOriginalFormat
 void pictureChanged()
          pictureChanged
 void removeListener(java.lang.String iidStr, java.lang.Object theListener)
           
 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 setHdc(int hdc)
          setHdc
 void setHPal(int phpal)
          setHPal
 void setKeepOriginalFormat(boolean pfkeep)
          setKeepOriginalFormat
 java.awt.Image toImage()
          Converts this IPicture to a Java Image
 
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
 

Constructor Detail

IPictureProxy

public IPictureProxy()

IPictureProxy

public IPictureProxy(java.lang.Object obj)
              throws java.io.IOException
Throws:
java.io.IOException

IPictureProxy

protected IPictureProxy(java.lang.Object obj,
                        java.lang.String iid)
                 throws java.io.IOException
Throws:
java.io.IOException
Method Detail

addListener

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

removeListener

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

getHandle

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

Specified by:
getHandle in interface IPicture
Returns:
The phandle (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
Returns:
The phpal (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
Returns:
The ptype
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
Returns:
The pwidth (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
Returns:
The pheight (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
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.

setHPal

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

Specified by:
setHPal in interface IPicture
Parameters:
phpal - The phpal (A COM typedef) (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 IPicture to a Java Image

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