com.esri.arcgis.system
Class InputDeviceManager

java.lang.Object
  extended by com.esri.arcgis.system.InputDeviceManager
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IInputDeviceManager, Serializable

public class InputDeviceManager
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IInputDeviceManager

Input Device Manager - a singleton.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
InputDeviceManager()
          Constructs a InputDeviceManager using ArcGIS Engine.
InputDeviceManager(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
InputDeviceManager theInputDeviceManager = (InputDeviceManager) obj;
 
Method Summary
 void addDevice(IUID pDeviceCLSID, Object initializationData)
          Creates a single device given the CLSID, then passes initializationData to IInputDevice::Startup.
 boolean equals(Object o)
          Compare this object with another
 IExtension findDevice(Object nameOrID)
          Finds the input device by CLSID (IUID) or name (String).
static String getClsid()
          getClsid.
 IExtension getDevice(int index)
          The input device at the specified index.
 IUID getDeviceCLSID(int index)
          The CLSID of the input device at the specified index.
 int getDeviceCount()
          The number of input devices loaded in the application.
 int hashCode()
          the hashcode for this object
 void shutdownDevices()
          Shuts down and releases the extensions that are loaded and calls IExtension::Shutdown.
 void startupDevices(Object initializationData)
          Creates and starts the devices for Inut Device component category, passing initializationData to each in IInputDevice::Startup.
 
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

InputDeviceManager

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

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

InputDeviceManager

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

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

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

startupDevices

public void startupDevices(Object initializationData)
                    throws IOException,
                           AutomationException
Creates and starts the devices for Inut Device component category, passing initializationData to each in IInputDevice::Startup.

Product Availability

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

Specified by:
startupDevices in interface IInputDeviceManager
Parameters:
initializationData - A Variant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

shutdownDevices

public void shutdownDevices()
                     throws IOException,
                            AutomationException
Shuts down and releases the extensions that are loaded and calls IExtension::Shutdown.

Product Availability

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

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

addDevice

public void addDevice(IUID pDeviceCLSID,
                      Object initializationData)
               throws IOException,
                      AutomationException
Creates a single device given the CLSID, then passes initializationData to IInputDevice::Startup.

Product Availability

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

Specified by:
addDevice in interface IInputDeviceManager
Parameters:
pDeviceCLSID - A reference to a com.esri.arcgis.system.IUID (in)
initializationData - A Variant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDeviceCount

public int getDeviceCount()
                   throws IOException,
                          AutomationException
The number of input devices loaded in the application.

Product Availability

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

Specified by:
getDeviceCount in interface IInputDeviceManager
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDevice

public IExtension getDevice(int index)
                     throws IOException,
                            AutomationException
The input device at the specified index.

Product Availability

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

Specified by:
getDevice in interface IInputDeviceManager
Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.system.IExtension
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDeviceCLSID

public IUID getDeviceCLSID(int index)
                    throws IOException,
                           AutomationException
The CLSID of the input device at the specified index.

Product Availability

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

Specified by:
getDeviceCLSID in interface IInputDeviceManager
Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.system.IUID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findDevice

public IExtension findDevice(Object nameOrID)
                      throws IOException,
                             AutomationException
Finds the input device by CLSID (IUID) or name (String).

Product Availability

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

Specified by:
findDevice in interface IInputDeviceManager
Parameters:
nameOrID - A Variant (in)
Returns:
A reference to a com.esri.arcgis.system.IExtension
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.