com.esri.arcgis.display
Interface IMapContext

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
IMapContextProxy, MapContext

public interface IMapContext
extends java.io.Serializable

COM Interface 'IMapContext'. Generated 3/19/2015 1:20:54 PM from 'C:\ArcGIS\COM\esriDisplay.olb'

Description: 'Provides access to the context in which geometric effects and marker placements 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 =


Field Summary
static java.lang.String IID
          Deprecated. Internal use only
static int IIDa7be1534_8847_4a3b_ba08_4d4a94405427
           
static int xxDummy
          Deprecated. Internal use only
 
Method Summary
 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.
 double getReferenceScale()
          The reference scale of the map.
 ISpatialReference getSpatialReference()
          The spatial reference of the map.
 void init(ISpatialReference mapProj, double mapRefScale, IEnvelope mapExtent)
          Initializes the map context.
 void initFromDisplay(IDisplayTransformation displayTransform)
          Initializes the map context using a display transformation.
 double toPoints(double mapDist)
          Converts a geographic distance into a distance expressed in points.
 

Field Detail

IIDa7be1534_8847_4a3b_ba08_4d4a94405427

static final int IIDa7be1534_8847_4a3b_ba08_4d4a94405427
See Also:
Constant Field Values

xxDummy

static final int xxDummy
Deprecated. Internal use only
See Also:
Constant Field Values

IID

static final java.lang.String IID
Deprecated. Internal use only
See Also:
Constant Field Values
Method Detail

initFromDisplay

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

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

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

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

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

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

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

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

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

Returns:
The refScale
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSpatialReference

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

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

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

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

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

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.