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, Externalizable, Serializable

public class IPictureProxy
extends com.esri.arcgis.interop.Dispatch
implements IPicture, 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(Object obj)
           
protected IPictureProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, 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(String iidStr, 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
 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(Object obj)
              throws IOException
Throws:
IOException

IPictureProxy

protected IPictureProxy(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

getHandle

public int getHandle()
              throws IOException,
                     AutomationException
getHandle

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

setHPal

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

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

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