com.esri.arcgis.display
Class OutputContext

java.lang.Object
  extended by com.esri.arcgis.display.OutputContext
All Implemented Interfaces:
IOutputContext, com.esri.arcgis.interop.RemoteObjRef, ISupportErrorInfo, java.io.Serializable

public class OutputContext
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IOutputContext, ISupportErrorInfo

COM Class 'OutputContext'. Generated 3/19/2015 1:20:43 PM from 'C:\ArcGIS\COM\esriDisplay.olb'

Description 'The context provided to pass from the map context to the output device.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.display.IOutputContext
IID, IID31d09585_7431_4ae1_be2b_1fd8233473d1, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
 
Constructor Summary
OutputContext()
          Constructs a OutputContext using ArcGIS Engine.
OutputContext(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
OutputContext theOutputContext = (OutputContext) obj;
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 IGeometry fromMapToOutput(IGeometry ingeom)
          Converts map geometry to output geometry.
static java.lang.String getClsid()
          getClsid.
 int getHDC()
          The device context that the display is currently drawing to.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 ITrackCancel getTrackCancel()
          Drawing will react on Cancel of ITrackCancel is not NULL.
 int hashCode()
          the hashcode for this object
 void init(double refScale, double currentScale, double resolution, double rotation, IPoint currentScreenCenter, tagRECT deviceRect, int outputDevice)
          Initializes the output context.
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 void release()
          Release a OutputContext.
 void setTrackCancel(ITrackCancel trackCancel)
          Drawing will react on Cancel of ITrackCancel is not NULL.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputContext

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

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

OutputContext

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

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

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()
getClsid.


equals

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

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a OutputContext.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

init

public void init(double refScale,
                 double currentScale,
                 double resolution,
                 double rotation,
                 IPoint currentScreenCenter,
                 tagRECT deviceRect,
                 int outputDevice)
          throws java.io.IOException,
                 AutomationException
Initializes the output context.

Specified by:
init in interface IOutputContext
Parameters:
refScale - The refScale (in)
currentScale - The currentScale (in)
resolution - The resolution (in)
rotation - The rotation (in)
currentScreenCenter - A reference to a com.esri.arcgis.geometry.IPoint (in)
deviceRect - A Structure: com.esri.arcgis.system.tagRECT (in)
outputDevice - The outputDevice (A COM typedef) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromMapToOutput

public IGeometry fromMapToOutput(IGeometry ingeom)
                          throws java.io.IOException,
                                 AutomationException
Converts map geometry to output geometry.

Specified by:
fromMapToOutput in interface IOutputContext
Parameters:
ingeom - A reference to a com.esri.arcgis.geometry.IGeometry (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTrackCancel

public void setTrackCancel(ITrackCancel trackCancel)
                    throws java.io.IOException,
                           AutomationException
Drawing will react on Cancel of ITrackCancel is not NULL.

Specified by:
setTrackCancel in interface IOutputContext
Parameters:
trackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTrackCancel

public ITrackCancel getTrackCancel()
                            throws java.io.IOException,
                                   AutomationException
Drawing will react on Cancel of ITrackCancel is not NULL.

Specified by:
getTrackCancel in interface IOutputContext
Returns:
A reference to a com.esri.arcgis.system.ITrackCancel
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHDC

public int getHDC()
           throws java.io.IOException,
                  AutomationException
The device context that the display is currently drawing to.

Specified by:
getHDC in interface IOutputContext
Returns:
The hDC (A COM typedef)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
interfaceSupportsErrorInfo

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