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

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

public class PictureProxy
extends com.esri.arcgis.interop.Dispatch
implements Picture, java.io.Serializable

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
  PictureProxy()
           
  PictureProxy(java.lang.Object obj)
           
protected PictureProxy(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 getHandle()
          getHandle
 int getHeight()
          getHeight
 int getHPal()
          getHPal
 short getType()
          getType
 int getWidth()
          getWidth
 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 setHandle(int rhs)
          setHandle
 void setHeight(int rhs)
          setHeight
 void setHPal(int rhs)
          setHPal
 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 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

PictureProxy

public PictureProxy()

PictureProxy

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

PictureProxy

protected PictureProxy(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 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 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 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 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 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 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 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.

toImage

public java.awt.Image toImage()
                       throws java.io.IOException
Converts this Picture to a Java Image

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