com.esri.arcgis.system
Class EngineUtilities
java.lang.Object
com.esri.arcgis.system.EngineUtilities
public class EngineUtilities
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EngineUtilities
public EngineUtilities()
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 testedcls
- the ArcObjects interface
- Returns:
- true if the object implements the specified interface, false otherwise