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

java.lang.Object
  extended bycom.esri.arcgis.support.ms.stdole.StdPicture
All Implemented Interfaces:
IPicture, Picture, java.io.Serializable

public class StdPicture
extends java.lang.Object
implements Picture, IPicture

See Also:
Serialized Form

Constructor Summary
StdPicture()
          Constructs a StdPicture using ArcGIS Engine.
StdPicture(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 IPicture getAsIPicture()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 Picture getAsPicture()
           
 int getAttributes()
           
static java.lang.String getClsid()
           
 int getCurDC()
           
 int getHandle()
           
 int getHeight()
           
 int getHPal()
           
 short getType()
           
 int getWidth()
           
 int hashCode()
          the hashcode for this object
 boolean isKeepOriginalFormat()
           
 void pictureChanged()
           
 void render(int hdc, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, int prcWBounds)
           
 void saveAsFile(int pstm, boolean fSaveMemCopy, int[] pcbSize)
           
 void selectPicture(int hdcIn, int[] phdcOut, int[] phbmpOut)
           
 void setHandle(int rhs)
           
 void setHdc(int hdc)
           
 void setHeight(int rhs)
           
 void setHPal(int rhs)
           
 void setKeepOriginalFormat(boolean pfkeep)
           
 void setType(short rhs)
           
 void setWidth(int rhs)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.

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.
StdPicture theStdPicture = (StdPicture) obj;

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()

getAsPicture

public Picture getAsPicture()

getAsIPicture

public IPicture getAsIPicture()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


equals

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


hashCode

public int hashCode()
the hashcode for this object


getHandle

public int getHandle()
              throws java.io.IOException,
                     AutomationException
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
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
Specified by:
getHPal in interface Picture
Returns:
The return value (A COM typedef)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

setHPal

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

getType

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

setType

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

getWidth

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

getHeight

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

setHeight

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

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
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:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getCurDC

public int getCurDC()
             throws java.io.IOException,
                    AutomationException
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
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:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

isKeepOriginalFormat

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

setKeepOriginalFormat

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

pictureChanged

public void pictureChanged()
                    throws java.io.IOException,
                           AutomationException
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
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:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getAttributes

public int getAttributes()
                  throws java.io.IOException,
                         AutomationException
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
Specified by:
setHdc in interface IPicture
Parameters:
hdc - The hdc (A COM typedef) (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.