com.esri.arcgis.carto
Class ConvertLabelsToAnnotation

java.lang.Object
  extended by com.esri.arcgis.carto.ConvertLabelsToAnnotation
All Implemented Interfaces:
IConvertLabelsToAnnotation, com.esri.arcgis.interop.RemoteObjRef, ISupportErrorInfo, java.io.Serializable

public class ConvertLabelsToAnnotation
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IConvertLabelsToAnnotation, ISupportErrorInfo

COM Class 'ConvertLabelsToAnnotation'. Generated 3/19/2015 1:20:41 PM from 'C:\ArcGIS\COM\esriCarto.olb'

Description 'An Esri convert labels to annotation helper class.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.carto.IConvertLabelsToAnnotation
IID, IID0ae13bc3_f821_4ae4_8b20_1ece97f78874, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
 
Constructor Summary
ConvertLabelsToAnnotation()
          Constructs a ConvertLabelsToAnnotation using ArcGIS Engine.
ConvertLabelsToAnnotation(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
ConvertLabelsToAnnotation theConvertLabelsToAnnotation = (ConvertLabelsToAnnotation) obj;
 
Method Summary
 void addFeatureLayer(IFeatureLayer pFeatureLayer, java.lang.String annoLayerName, IFeatureWorkspace pFeatureWorkspace, IFeatureDataset pFeatureDataset, boolean featureLinked, boolean appendMode, boolean requireSymbolID, boolean autoCreate, boolean autoUpdate, java.lang.String configKeyword)
          Call this method for each feature layer be converted to annotation.
 void convertLabels()
          Convert labels to annotation.
 boolean equals(java.lang.Object o)
          Compare this object with another
 IEnumLayer getAnnoLayers()
          New database annotation layers created by the conversion process.
static java.lang.String getClsid()
          getClsid.
 java.lang.String getErrorInfo()
          Error information generated by the conversion process.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int hashCode()
          the hashcode for this object
 void initialize(IMap pMap, int storageType, int whichFeatures, boolean generateUnplacedAnnotation, ITrackCancel pTrackCancel, IAnnotationErrorEvents pAnnotationErrorEvents)
          Call this method first to initialize the converter.
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 void release()
          Release a ConvertLabelsToAnnotation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertLabelsToAnnotation

public ConvertLabelsToAnnotation()
                          throws java.io.IOException,
                                 java.net.UnknownHostException
Constructs a ConvertLabelsToAnnotation using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

ConvertLabelsToAnnotation

public ConvertLabelsToAnnotation(java.lang.Object obj)
                          throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
ConvertLabelsToAnnotation theConvertLabelsToAnnotation = (ConvertLabelsToAnnotation) obj;

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

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a ConvertLabelsToAnnotation.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

initialize

public void initialize(IMap pMap,
                       int storageType,
                       int whichFeatures,
                       boolean generateUnplacedAnnotation,
                       ITrackCancel pTrackCancel,
                       IAnnotationErrorEvents pAnnotationErrorEvents)
                throws java.io.IOException,
                       AutomationException
Call this method first to initialize the converter.

Specified by:
initialize in interface IConvertLabelsToAnnotation
Parameters:
pMap - A reference to a com.esri.arcgis.carto.IMap (in)
storageType - A com.esri.arcgis.carto.esriAnnotationStorageType constant (in)
whichFeatures - A com.esri.arcgis.carto.esriLabelWhichFeatures constant (in)
generateUnplacedAnnotation - The generateUnplacedAnnotation (in)
pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
pAnnotationErrorEvents - A reference to a com.esri.arcgis.carto.IAnnotationErrorEvents (in, optional, pass 0 if not required)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addFeatureLayer

public void addFeatureLayer(IFeatureLayer pFeatureLayer,
                            java.lang.String annoLayerName,
                            IFeatureWorkspace pFeatureWorkspace,
                            IFeatureDataset pFeatureDataset,
                            boolean featureLinked,
                            boolean appendMode,
                            boolean requireSymbolID,
                            boolean autoCreate,
                            boolean autoUpdate,
                            java.lang.String configKeyword)
                     throws java.io.IOException,
                            AutomationException
Call this method for each feature layer be converted to annotation.

Specified by:
addFeatureLayer in interface IConvertLabelsToAnnotation
Parameters:
pFeatureLayer - A reference to a com.esri.arcgis.carto.IFeatureLayer (in)
annoLayerName - The annoLayerName (in)
pFeatureWorkspace - A reference to a com.esri.arcgis.geodatabase.IFeatureWorkspace (in, optional, pass 0 if not required)
pFeatureDataset - A reference to a com.esri.arcgis.geodatabase.IFeatureDataset (in, optional, pass 0 if not required)
featureLinked - The featureLinked (in, optional, pass false if not required)
appendMode - The appendMode (in, optional, pass false if not required)
requireSymbolID - The requireSymbolID (in, optional, pass false if not required)
autoCreate - The autoCreate (in, optional, pass false if not required)
autoUpdate - The autoUpdate (in, optional, pass false if not required)
configKeyword - The configKeyword (in, optional, pass if not required)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

convertLabels

public void convertLabels()
                   throws java.io.IOException,
                          AutomationException
Convert labels to annotation.

Specified by:
convertLabels in interface IConvertLabelsToAnnotation
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAnnoLayers

public IEnumLayer getAnnoLayers()
                         throws java.io.IOException,
                                AutomationException
New database annotation layers created by the conversion process.

Specified by:
getAnnoLayers in interface IConvertLabelsToAnnotation
Returns:
A reference to a com.esri.arcgis.carto.IEnumLayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getErrorInfo

public java.lang.String getErrorInfo()
                              throws java.io.IOException,
                                     AutomationException
Error information generated by the conversion process.

Specified by:
getErrorInfo in interface IConvertLabelsToAnnotation
Returns:
The info
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.