com.esri.arcgis.system
Class EngineUtilities

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

public class EngineUtilities
extends Object


Constructor Summary
EngineUtilities()
           
 
Method Summary
static Image getImageFromPicture(Picture picture)
          Converts an ArcObjects Picture/IPicture/StdPicture to a Java Image
static IUID getWorkspaceFactoryTypeID(Class clazz)
          Returns the workspace factory type ID for a Java class implementing IPlugInWorkspaceFactoryHelper.
static boolean instanceOf(Object arg, 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 Image getImageFromPicture(Picture picture)
                                 throws 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:
IOException

getWorkspaceFactoryTypeID

public static IUID getWorkspaceFactoryTypeID(Class clazz)
                                      throws 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:
IOException

instanceOf

public static boolean instanceOf(Object arg,
                                 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