com.esri.arcgis.display
Class GeometryDraw

java.lang.Object
  extended bycom.esri.arcgis.display.GeometryDraw
All Implemented Interfaces:
IGeometryDraw, ISupportErrorInfo, java.io.Serializable

public class GeometryDraw
extends java.lang.Object
implements 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(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
 
Method Summary
 void draw(int hDC, IGeometry pGeometry, ITransformation pTransformation, IEnvelope pVisibleBounds)
          Draws the geometry.
 boolean equals(java.lang.Object o)
          Compare this object with another
 IGeometryDraw getAsIGeometryDraw()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 ISupportErrorInfo getAsISupportErrorInfo()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
static java.lang.String getClsid()
           
 int hashCode()
          the hashcode for this object
 void interfaceSupportsErrorInfo(GUID riid)
          Supported Platforms
 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
 

Constructor Detail

GeometryDraw

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

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

GeometryDraw

public GeometryDraw(java.lang.Object obj)
             throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.

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.
GeometryDraw theGeometryDraw = (GeometryDraw) 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()

getAsIGeometryDraw

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


getAsISupportErrorInfo

public ISupportErrorInfo getAsISupportErrorInfo()
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


draw

public void draw(int hDC,
                 IGeometry pGeometry,
                 ITransformation pTransformation,
                 IEnvelope pVisibleBounds)
          throws java.io.IOException,
                 AutomationException
Description copied from interface: IGeometryDraw
Draws the geometry.

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

queryGeometryFromWin32Path

public void queryGeometryFromWin32Path(int hDC,
                                       ITransformation transform,
                                       IPolygon geometry)
                                throws java.io.IOException,
                                       AutomationException
Description copied from interface: IGeometryDraw
Queries the geometry.

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

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
Description copied from interface: ISupportErrorInfo

Supported Platforms

Windows, Solaris, Linux

Description

Indicates whether the interface supports IErrorInfo.

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