com.esri.arcgis.system
Class EngineUtilities

java.lang.Object
  extended by com.esri.arcgis.system.EngineUtilities

public class EngineUtilities
extends java.lang.Object


Constructor Summary
EngineUtilities()
           
 
Method Summary
static java.awt.Image getImageFromPicture(Picture picture)
          Converts an ArcObjects Picture/IPicture/StdPicture to a Java Image
static IUID getWorkspaceFactoryTypeID(java.lang.Class clazz)
          Returns the workspace factory type ID for a Java class implementing IPlugInWorkspaceFactoryHelper.
static boolean instanceOf(java.lang.Object arg, java.lang.Class cls)
          Tests if a given Arcobject is an instance of (i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EngineUtilities

public EngineUtilities()
Method Detail

getImageFromPicture

public static java.awt.Image getImageFromPicture(Picture picture)
                                          throws java.io.IOException
Converts an ArcObjects Picture/IPicture/StdPicture to a Java Image

Parameters:
picture - - this can be a StdPicture, Picture or IPicture
Returns:
the equivalent image in Java
Throws:
java.io.IOException

getWorkspaceFactoryTypeID

public static IUID getWorkspaceFactoryTypeID(java.lang.Class clazz)
                                      throws java.io.IOException
Returns the workspace factory type ID for a Java class implementing IPlugInWorkspaceFactoryHelper.

 class PlugInWorkspaceFactoryHelper implements IPlugInWorkspaceFactoryHelper {
... public IUID getWorkspaceFactoryTypeID(){ return EngineUtilities.getWorkspaceFactoryTypeID(this.getClass()); } }

Parameters:
clazz - The class implementing IPlugInWorkspaceFactoryHelper
Returns:
the IUID
Throws:
java.io.IOException

instanceOf

public static boolean instanceOf(java.lang.Object arg,
                                 java.lang.Class cls)
Tests if a given Arcobject is an instance of (i.e. implements) the specified ArcObjects Interface. If the specified ArcObject instance implements the specified ArcObjects interface, EngineUItilities.instanceof() returns true.

Parameters:
arg - the object to be tested
cls - the ArcObjects interface
Returns:
true if the object implements the specified interface, false otherwise