com.esri.arcgis.arcmapui
Class MapViewCommandsContextAnalyzer

java.lang.Object
  extended by com.esri.arcgis.arcmapui.MapViewCommandsContextAnalyzer
All Implemented Interfaces:
IContextAnalyzer, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class MapViewCommandsContextAnalyzer
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IContextAnalyzer

Map View Commands Context Analyzer.

Product Availability

Available with ArcGIS Desktop.

See Also:
Serialized Form

Constructor Summary
MapViewCommandsContextAnalyzer()
          Constructs a MapViewCommandsContextAnalyzer using ArcGIS Engine.
MapViewCommandsContextAnalyzer(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
MapViewCommandsContextAnalyzer theMapViewCommandsContextAnalyzer = (MapViewCommandsContextAnalyzer) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 void getContextMenu(Object contextObject, IUID[] clsidMenu)
          Returns an appropriate context menu id, if possible.
 int getPriority()
          Priority for the context analyzer: 0 (highest) - 99 (lowest).
 int hashCode()
          the hashcode for this object
 void setPriority(int priority)
          Priority for the context analyzer: 0 (highest) - 99 (lowest).
 
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

MapViewCommandsContextAnalyzer

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

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

MapViewCommandsContextAnalyzer

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

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

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

getPriority

public int getPriority()
                throws IOException,
                       AutomationException
Priority for the context analyzer: 0 (highest) - 99 (lowest).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getPriority in interface IContextAnalyzer
Returns:
The priority
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setPriority

public void setPriority(int priority)
                 throws IOException,
                        AutomationException
Priority for the context analyzer: 0 (highest) - 99 (lowest).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

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

getContextMenu

public void getContextMenu(Object contextObject,
                           IUID[] clsidMenu)
                    throws IOException,
                           AutomationException
Returns an appropriate context menu id, if possible. Returns null if it cannot determine an applicable context menu.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getContextMenu in interface IContextAnalyzer
Parameters:
contextObject - A reference to another Object (IUnknown) (in)
clsidMenu - A reference to a com.esri.arcgis.system.IUID (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.