|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.LayerFactoryHelper
public class LayerFactoryHelper
Helper class to create layers from names.
Provides a helper method to iterate the Layer Factory component category to find a layer factory object that is used to create one or more layer objects.
The CreateLayersFromName method is of limited use to ArcGIS Engine and ArcGIS Server developers because there is only a small subset of layer factories present and registered in the 'Layer Factory' component category. The CreateLayersFromName method internally iterates the objects in the "Layer Factory" component category and uses the ILayerFactory::CanCreate and ILayerFactory::Create methods.
Constructor Summary | |
---|---|
LayerFactoryHelper()
Constructs a LayerFactoryHelper using ArcGIS Engine. |
|
LayerFactoryHelper(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. LayerFactoryHelper theLayerFactoryHelper = (LayerFactoryHelper) obj; |
Method Summary | |
---|---|
IEnumLayer |
createLayersFromName(IName name)
Given a name attempts to open it using the layer factories, if successful returns a layers enumerator. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
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 |
---|
public LayerFactoryHelper() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic LayerFactoryHelper(Object obj) throws IOException
LayerFactoryHelper theLayerFactoryHelper = (LayerFactoryHelper) obj;
obj
to LayerFactoryHelper
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IEnumLayer createLayersFromName(IName name) throws IOException, AutomationException
Use this method to create a data Layer or Layers from an IName object. Each IName instance is passed to CreateLayersFromName to return an enumerator of layers containing a new instance of each layer.
This is typically used for drag and drop. For example, if a feature layer is dragged from an ArcCatalog application and dropped onto the MapControl or PageLayoutControl, objects implementing IName can be extracted from the drop using the IName DataObjectHelper.
The CreateLayersFromName method is of limited use to ArcGIS Engine and ArcGIS Server developers because there is only a small subset of layer factories present and registered in the 'Layer Factory' component category. The CreateLayersFromName method internally iterates the objects in the "Layer Factory" component category and uses the ILayerFactory::CanCreate and ILayerFactory::Create methods.
createLayersFromName
in interface ILayerFactoryHelper
name
- A reference to a com.esri.arcgis.system.IName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |