com.esri.arcgis.display
Class MapContext

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

public class MapContext
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IMapContext, ISupportErrorInfo

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

Description 'The context in which geometric effects and marker placement work.' 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.IMapContext
IID, IIDa7be1534_8847_4a3b_ba08_4d4a94405427, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
 
Constructor Summary
MapContext()
          Constructs a MapContext using ArcGIS Engine.
MapContext(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
MapContext theMapContext = (MapContext) obj;
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 IGeometry fromGeographyToMap(IGeometry ingeom)
          Converts geographic geometry to map context geometry.
 IGeometry fromMapToGeography(IGeometry ingeom)
          Converts map context geometry to geographic geometry.
 double fromPoints(double ptDist)
          Converts a distance expressed in points into a geographic distance.
static java.lang.String getClsid()
          getClsid.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 double getReferenceScale()
          The reference scale of the map.
 ISpatialReference getSpatialReference()
          The spatial reference of the map.
 int hashCode()
          the hashcode for this object
 void init(ISpatialReference mapProj, double mapRefScale, IEnvelope mapExtent)
          Initializes the map context.
 void initFromDisplay(IDisplayTransformation displayTransform)
          Initializes the map context using a display transformation.
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 void release()
          Release a MapContext.
 double toPoints(double mapDist)
          Converts a geographic distance into a distance expressed in points.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapContext

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

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

MapContext

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

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

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 MapContext.

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

initFromDisplay

public void initFromDisplay(IDisplayTransformation displayTransform)
                     throws java.io.IOException,
                            AutomationException
Initializes the map context using a display transformation.

Specified by:
initFromDisplay in interface IMapContext
Parameters:
displayTransform - A reference to a com.esri.arcgis.display.IDisplayTransformation (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

init

public void init(ISpatialReference mapProj,
                 double mapRefScale,
                 IEnvelope mapExtent)
          throws java.io.IOException,
                 AutomationException
Initializes the map context.

Specified by:
init in interface IMapContext
Parameters:
mapProj - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
mapRefScale - The mapRefScale (in)
mapExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromGeographyToMap

public IGeometry fromGeographyToMap(IGeometry ingeom)
                             throws java.io.IOException,
                                    AutomationException
Converts geographic geometry to map context geometry.

Specified by:
fromGeographyToMap in interface IMapContext
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.

fromMapToGeography

public IGeometry fromMapToGeography(IGeometry ingeom)
                             throws java.io.IOException,
                                    AutomationException
Converts map context geometry to geographic geometry.

Specified by:
fromMapToGeography in interface IMapContext
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.

getReferenceScale

public double getReferenceScale()
                         throws java.io.IOException,
                                AutomationException
The reference scale of the map.

Specified by:
getReferenceScale in interface IMapContext
Returns:
The refScale
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSpatialReference

public ISpatialReference getSpatialReference()
                                      throws java.io.IOException,
                                             AutomationException
The spatial reference of the map.

Specified by:
getSpatialReference in interface IMapContext
Returns:
A reference to a com.esri.arcgis.geometry.ISpatialReference
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromPoints

public double fromPoints(double ptDist)
                  throws java.io.IOException,
                         AutomationException
Converts a distance expressed in points into a geographic distance.

Specified by:
fromPoints in interface IMapContext
Parameters:
ptDist - The ptDist (in)
Returns:
The mapDist
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toPoints

public double toPoints(double mapDist)
                throws java.io.IOException,
                       AutomationException
Converts a geographic distance into a distance expressed in points.

Specified by:
toPoints in interface IMapContext
Parameters:
mapDist - The mapDist (in)
Returns:
The ptDist
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.