com.esri.arcgis.display
Class GeometryDraw

java.lang.Object
  extended by com.esri.arcgis.display.GeometryDraw
All Implemented Interfaces:
IGeometryDraw, com.esri.arcgis.interop.RemoteObjRef, ISupportErrorInfo, Serializable

public class GeometryDraw
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IGeometryDraw, ISupportErrorInfo

Converts a geometry to a sequence of Win32 drawing instructions.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
GeometryDraw()
          Constructs a GeometryDraw using ArcGIS Engine.
GeometryDraw(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GeometryDraw theGeometryDraw = (GeometryDraw) obj;
 
Method Summary
 void draw(int hDC, IGeometry pGeometry, ITransformation pTransformation, IEnvelope pVisibleBounds)
          Draws the geometry.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 void queryGeometryFromWin32Path(int hDC, ITransformation transform, IPolygon geometry)
          Queries the geometry.
 
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

GeometryDraw

public GeometryDraw()
             throws IOException,
                    UnknownHostException
Constructs a GeometryDraw using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

GeometryDraw

public GeometryDraw(Object obj)
             throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GeometryDraw theGeometryDraw = (GeometryDraw) obj;

Construct a GeometryDraw using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to GeometryDraw.

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

getClsid

public static String getClsid()
getClsid.


equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

draw

public void draw(int hDC,
                 IGeometry pGeometry,
                 ITransformation pTransformation,
                 IEnvelope pVisibleBounds)
          throws IOException,
                 AutomationException
Draws the geometry.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
draw in interface IGeometryDraw
Parameters:
hDC - The hDC (A COM typedef) (in)
pGeometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)
pTransformation - A reference to a com.esri.arcgis.geometry.ITransformation (in)
pVisibleBounds - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryGeometryFromWin32Path

public void queryGeometryFromWin32Path(int hDC,
                                       ITransformation transform,
                                       IPolygon geometry)
                                throws IOException,
                                       AutomationException
Queries the geometry.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
queryGeometryFromWin32Path in interface IGeometryDraw
Parameters:
hDC - The hDC (A COM typedef) (in)
transform - A reference to a com.esri.arcgis.geometry.ITransformation (in)
geometry - A reference to a com.esri.arcgis.geometry.IPolygon (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Description

Indicates whether the interface supports IErrorInfo.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.