com.esri.arcgis.cartoUI
Class DatumChecker

java.lang.Object
  extended by com.esri.arcgis.cartoUI.DatumChecker
All Implemented Interfaces:
IDatumChecker, IDatumChecker2, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class DatumChecker
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IDatumChecker, IDatumChecker2

Datum checker.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

See Also:
Serialized Form

Constructor Summary
DatumChecker()
          Constructs a DatumChecker using ArcGIS Engine.
DatumChecker(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DatumChecker theDatumChecker = (DatumChecker) obj;
 
Method Summary
 boolean addLayerCheck(IMap map, ILayer layer, int parentHWnd)
          Adds a layer and checks for datum inconsistencies.
 boolean addLayerCheckBasic(IBasicMap basicMap, ILayer layer, int parentHWnd)
          Adds a layer and checks for datum inconsistencies.
 void addLayerReset()
          Resets an AddLayer loop.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 void setAppRegKey(String appName)
          Sets name of application for registry key lookup.
 boolean setSpatialReferenceCheck(IMap map, ISpatialReference spatialReference, int parentHWnd)
          Checks for a change to the data frame's spatial reference.
 boolean setSpatialReferenceCheckBasic(IBasicMap basicMap, ISpatialReference spatialReference, int parentHWnd)
          Checks for a change to the data frame's spatial reference.
 
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

DatumChecker

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

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

DatumChecker

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

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

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

addLayerCheck

public boolean addLayerCheck(IMap map,
                             ILayer layer,
                             int parentHWnd)
                      throws IOException,
                             AutomationException
Adds a layer and checks for datum inconsistencies.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
addLayerCheck in interface IDatumChecker
Parameters:
map - A reference to a com.esri.arcgis.carto.IMap (in)
layer - A reference to a com.esri.arcgis.carto.ILayer (in)
parentHWnd - The parentHWnd (A COM typedef) (in)
Returns:
The okToAdd
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addLayerReset

public void addLayerReset()
                   throws IOException,
                          AutomationException
Resets an AddLayer loop.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
addLayerReset in interface IDatumChecker
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSpatialReferenceCheck

public boolean setSpatialReferenceCheck(IMap map,
                                        ISpatialReference spatialReference,
                                        int parentHWnd)
                                 throws IOException,
                                        AutomationException
Checks for a change to the data frame's spatial reference.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
setSpatialReferenceCheck in interface IDatumChecker
Parameters:
map - A reference to a com.esri.arcgis.carto.IMap (in)
spatialReference - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
parentHWnd - The parentHWnd (A COM typedef) (in)
Returns:
The okToChange
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addLayerCheckBasic

public boolean addLayerCheckBasic(IBasicMap basicMap,
                                  ILayer layer,
                                  int parentHWnd)
                           throws IOException,
                                  AutomationException
Adds a layer and checks for datum inconsistencies.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
addLayerCheckBasic in interface IDatumChecker2
Parameters:
basicMap - A reference to a com.esri.arcgis.carto.IBasicMap (in)
layer - A reference to a com.esri.arcgis.carto.ILayer (in)
parentHWnd - The parentHWnd (A COM typedef) (in)
Returns:
The okToAdd
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSpatialReferenceCheckBasic

public boolean setSpatialReferenceCheckBasic(IBasicMap basicMap,
                                             ISpatialReference spatialReference,
                                             int parentHWnd)
                                      throws IOException,
                                             AutomationException
Checks for a change to the data frame's spatial reference.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
setSpatialReferenceCheckBasic in interface IDatumChecker2
Parameters:
basicMap - A reference to a com.esri.arcgis.carto.IBasicMap (in)
spatialReference - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
parentHWnd - The parentHWnd (A COM typedef) (in)
Returns:
The okToChange
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setAppRegKey

public void setAppRegKey(String appName)
                  throws IOException,
                         AutomationException
Sets name of application for registry key lookup.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
setAppRegKey in interface IDatumChecker2
Parameters:
appName - The appName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.