|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.carto.AnnotationFeatureClassExtension
An ESRI annotation feature class extension.
The AnnotationFeatureClassExtension CoClass manages the drawing of annotation features.
The AnnotationFeatureClassExtension is used to configure the drawing properties and symbology for annoation features. The IAnnoClass interface is used to access the AnnotationLayerProperties and GroupSymbols. The IAnnoClassAdmin interface is used to update the properties of the class. ArcMap and ArcCatalog primarily use these interfaces.
IAnnoClass,
IAnnoClassAdmin,
Serialized Form| Constructor Summary | |
AnnotationFeatureClassExtension()
Constructs a AnnotationFeatureClassExtension using ArcGIS Engine. |
|
AnnotationFeatureClassExtension(java.lang.Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. |
|
| Method Summary | |
boolean |
confirmSendRelatedObjectChanged(IRelationshipClass relationshipClass,
IObject objectThatChanged)
Notifies this object that a related object changed and asks if events should be sent. |
boolean |
confirmSendRelatedObjectMoved(IRelationshipClass relationshipClass,
IObject objectThatChanged,
ILine moveVector)
Notifies this object that a related object moved and asks if events should be sent. |
boolean |
confirmSendRelatedObjectRotated(IRelationshipClass relationshipClass,
IObject objectThatChanged,
IPoint origin,
double angle)
Notifies this object that a related object rotated and asks if events should be sent. |
boolean |
confirmSendRelatedObjectSetMoved(IRelationshipClass relationshipClass,
ISet objectsThatChanged,
ILine moveVector)
Notifies this object that a set of objects with relationships to the input set of objects moved and asks if events should be sent. |
boolean |
confirmSendRelatedObjectSetRotated(IRelationshipClass relationshipClass,
ISet objectsThatChanged,
IPoint origin,
double angle)
Notifies this object that a set of objects with relationships to the input set of objects rotated and asks if events should be sent. |
void |
draw(IAnnotationFeature annoFeature,
IDisplay display,
ISymbol symbol)
Draws the given annotation feature. |
boolean |
equals(java.lang.Object o)
Compare this object with another |
IAnnotateLayerPropertiesCollection |
getAnnoProperties()
The labeling properties annotation classes. |
int |
getAnnotationClassIDFieldIndex()
The label class ID field index. |
IAnnoClass |
getAsIAnnoClass()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IAnnoClassAdmin |
getAsIAnnoClassAdmin()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IAnnoClassAdmin2 |
getAsIAnnoClassAdmin2()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IAnnoClassAdmin3 |
getAsIAnnoClassAdmin3()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IAnnotationClassExtension |
getAsIAnnotationClassExtension()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IClassExtension |
getAsIClassExtension()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IConfirmSendRelatedObjectEvents |
getAsIConfirmSendRelatedObjectEvents()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IFeatureClassEdit |
getAsIFeatureClassEdit()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IFeatureClassExtension |
getAsIFeatureClassExtension()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IObjectClassEvents |
getAsIObjectClassEvents()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IObjectClassExtension |
getAsIObjectClassExtension()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IPersistCustomFeaturesExtension |
getAsIPersistCustomFeaturesExtension()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IRelatedObjectClassEvents |
getAsIRelatedObjectClassEvents()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
ISupportErrorInfo |
getAsISupportErrorInfo()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
static java.lang.String |
getClsid()
|
int |
getCustomSplitPolicyForRelationship(IRow row,
IRelationshipClass relClass)
The custom split policy for handling relationships. |
IDisplay |
getDisplay()
The display. |
int |
getElementFieldIndex()
The element field index. |
IFeatureClass |
getFeatureClass()
The feature class. |
int |
getFeatureIDFieldIndex()
The feature ID field index. |
IFeatureClass |
getLinkedFeatureClass()
The feature class to which the annotation class is feature linked. |
IOverposterProperties |
getOverposterProperties()
The overposter properties. |
double |
getReferenceScale()
The reference scale. |
int |
getReferenceScaleUnits()
The units of the reference scale. |
int |
getStatusFieldIndex()
The status field index. |
ISymbol |
getSymbol(int symbolID)
The symbol associated with the given ID. |
ISymbolCollection |
getSymbolCollection()
The symbol collection. |
short |
getVersion()
The version of the annotation class. |
boolean |
hasCustomSplitPolicyForRelationship()
True if the feature class has a custom split policy for handling relationships. |
int |
hashCode()
the hashcode for this object |
void |
init(IClassHelper pClassHelper,
IPropertySet pExtensionProperties)
Initializes the extension, passing in a reference to its class helper. |
void |
interfaceSupportsErrorInfo(GUID riid)
Supported Platforms |
boolean |
isAllowSymbolOverrides()
Indicates if an annotation may override a symbol property even though it references the symbol collection. |
boolean |
isAutoCreate()
Indicates if an annotation is to be automatically created when a feature is created. |
boolean |
isCanEditWithProjection()
Indicates if the associated feature class can be edited in projected spaces. |
boolean |
isRequireSymbolID()
Indicates if an annotation must belong to a symbol in the symbol collection. |
boolean |
isUpdateOnShapeChange()
Indicates if an annotation is to be automatically recreated when a feature's shape is changed. |
void |
loadClass(IStream pStm,
boolean[] pCanLoad)
Looks at the class information and determines if it can load the features. |
void |
loadFeature(IStream pStm,
IFeature pFeature)
Loads the feature information and updates the feature. |
void |
onChange(IObjectClassEventsOnChangeEvent theEvent)
This event is fired when an object's attributes or geometry is updated. |
void |
onCreate(IObjectClassEventsOnCreateEvent theEvent)
This event is fired when a new object is created in the object class. |
void |
onDelete(IObjectClassEventsOnDeleteEvent theEvent)
This event is fired when an object is deleted from the object class. |
void |
relatedObjectCreated(IRelationshipClass relationshipClass,
IObject objectThatWasCreated)
Notifies this object class that a related object was created. |
void |
saveClass(IStream pStm)
Writes out to the stream, class information used to aid loading. |
void |
saveFeature(IStream pStm,
IFeature pFeature)
Writes out to the stream, feature infomation used to aid loading. |
void |
setAllowSymbolOverrides(boolean rhs1)
Indicates if an annotation may override a symbol property even though it references the symbol collection. |
void |
setAnnoProperties(IAnnotateLayerPropertiesCollection rhs1)
The labeling properties annotation class. |
void |
setAutoCreate(boolean flag)
Indicates if an annotation is to be automatically created when a feature is created. |
void |
setOverposterProperties(IOverposterProperties rhs1)
The overposter properties. |
void |
setReferenceScale(double rhs1)
The reference scale. |
void |
setReferenceScaleUnits(int rhs1)
The units of the reference scale. |
void |
setRequireSymbolID(boolean rhs1)
Indicates an annotation must belong to a symbol in the symbol collection. |
void |
setSymbolCollectionByRef(ISymbolCollection rhs1)
The symbol collection. |
void |
setUpdateOnShapeChange(boolean flag)
Indicates if an annotation is to be automatically recreated when a feature's shape is changed. |
void |
shutdown()
Informs the extension that its class helper is going away. |
void |
synchronizeAttributes(ITextElement pTextElement,
IAnnotationFeature pAnnoFeature)
Sync the attributes. |
void |
updateFieldIndexes()
Updates the indexes of the fields that expose the annotation properties. |
void |
updateProperties()
Updates the property set. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AnnotationFeatureClassExtension()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems
public AnnotationFeatureClassExtension(java.lang.Object obj)
throws java.io.IOException
obj to AnnotationFeatureClassExtension. AnnotationFeatureClassExtension theAnnotationFeatureClassExtension = (AnnotationFeatureClassExtension) obj;
obj - an object returned from ArcGIS Engine or Server
java.io.IOException - if there are interop problems| Method Detail |
public static java.lang.String getClsid()
public IClassExtension getAsIClassExtension()
public IAnnoClass getAsIAnnoClass()
public IAnnotationClassExtension getAsIAnnotationClassExtension()
public IAnnoClassAdmin getAsIAnnoClassAdmin()
public IConfirmSendRelatedObjectEvents getAsIConfirmSendRelatedObjectEvents()
public IAnnoClassAdmin2 getAsIAnnoClassAdmin2()
public IAnnoClassAdmin3 getAsIAnnoClassAdmin3()
public IFeatureClassEdit getAsIFeatureClassEdit()
public IFeatureClassExtension getAsIFeatureClassExtension()
public IObjectClassExtension getAsIObjectClassExtension()
public IPersistCustomFeaturesExtension getAsIPersistCustomFeaturesExtension()
public IRelatedObjectClassEvents getAsIRelatedObjectClassEvents()
public IObjectClassEvents getAsIObjectClassEvents()
public ISupportErrorInfo getAsISupportErrorInfo()
public boolean equals(java.lang.Object o)
public int hashCode()
public void init(IClassHelper pClassHelper,
IPropertySet pExtensionProperties)
throws java.io.IOException,
AutomationException
IClassExtension
init in interface IClassExtensionpClassHelper - A reference to a com.esri.arcgis.geodatabase.IClassHelper (in)pExtensionProperties - A reference to a com.esri.arcgis.system.IPropertySet (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void shutdown()
throws java.io.IOException,
AutomationException
IClassExtension
shutdown in interface IClassExtensionAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IFeatureClass getFeatureClass()
throws java.io.IOException,
AutomationException
IAnnoClass
getFeatureClass in interface IAnnoClassAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IAnnotateLayerPropertiesCollection getAnnoProperties()
throws java.io.IOException,
AutomationException
IAnnoClassReturns Nothing if no labeling properties set. This occurs when the annotation feature class is created by converting labels to annotation or when created as an annotation target containing graphics.
getAnnoProperties in interface IAnnoClassjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISymbol getSymbol(int symbolID)
throws java.io.IOException,
AutomationException
IAnnoClass
getSymbol in interface IAnnoClasssymbolID - The symbolID (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getReferenceScale()
throws java.io.IOException,
AutomationException
IAnnoClass
getReferenceScale in interface IAnnoClassAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getReferenceScaleUnits()
throws java.io.IOException,
AutomationException
IAnnoClass
getReferenceScaleUnits in interface IAnnoClassAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public ISymbolCollection getSymbolCollection()
throws java.io.IOException,
AutomationException
IAnnoClass
getSymbolCollection in interface IAnnoClassjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public short getVersion()
throws java.io.IOException,
AutomationException
IAnnoClass
getVersion in interface IAnnoClassjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void draw(IAnnotationFeature annoFeature,
IDisplay display,
ISymbol symbol)
throws java.io.IOException,
AutomationException
IAnnoClass
draw in interface IAnnoClassannoFeature - A reference to a com.esri.arcgis.carto.IAnnotationFeature (in)display - A reference to a com.esri.arcgis.display.IDisplay (in)symbol - A reference to a com.esri.arcgis.display.ISymbol (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getElementFieldIndex()
throws java.io.IOException,
AutomationException
IAnnoClass
getElementFieldIndex in interface IAnnoClassAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getFeatureIDFieldIndex()
throws java.io.IOException,
AutomationException
IAnnoClass
getFeatureIDFieldIndex in interface IAnnoClassAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IDisplay getDisplay()
throws java.io.IOException,
AutomationException
IAnnotationClassExtension
getDisplay in interface IAnnotationClassExtensionjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void synchronizeAttributes(ITextElement pTextElement,
IAnnotationFeature pAnnoFeature)
throws java.io.IOException,
AutomationException
IAnnotationClassExtension
synchronizeAttributes in interface IAnnotationClassExtensionpTextElement - A reference to a com.esri.arcgis.carto.ITextElement (in)pAnnoFeature - A reference to a com.esri.arcgis.carto.IAnnotationFeature (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getAnnotationClassIDFieldIndex()
throws java.io.IOException,
AutomationException
IAnnotationClassExtension
getAnnotationClassIDFieldIndex in interface IAnnotationClassExtensionjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getStatusFieldIndex()
throws java.io.IOException,
AutomationException
IAnnotationClassExtension
getStatusFieldIndex in interface IAnnotationClassExtensionjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUpdateOnShapeChange()
throws java.io.IOException,
AutomationException
IAnnotationClassExtension
isUpdateOnShapeChange in interface IAnnotationClassExtensionAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isAutoCreate()
throws java.io.IOException,
AutomationException
IAnnotationClassExtension
isAutoCreate in interface IAnnotationClassExtensionAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isRequireSymbolID()
throws java.io.IOException,
AutomationException
IAnnotationClassExtension
isRequireSymbolID in interface IAnnotationClassExtensionAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isAllowSymbolOverrides()
throws java.io.IOException,
AutomationException
IAnnotationClassExtension
isAllowSymbolOverrides in interface IAnnotationClassExtensionAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IOverposterProperties getOverposterProperties()
throws java.io.IOException,
AutomationException
IAnnotationClassExtension
getOverposterProperties in interface IAnnotationClassExtensionjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IFeatureClass getLinkedFeatureClass()
throws java.io.IOException,
AutomationException
IAnnotationClassExtension
getLinkedFeatureClass in interface IAnnotationClassExtensionAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setAutoCreate(boolean flag)
throws java.io.IOException,
AutomationException
IAnnoClassAdmin
setAutoCreate in interface IAnnoClassAdminflag - The flag (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setAnnoProperties(IAnnotateLayerPropertiesCollection rhs1)
throws java.io.IOException,
AutomationException
IAnnoClassAdmin
setAnnoProperties in interface IAnnoClassAdminrhs1 - A reference to a com.esri.arcgis.carto.IAnnotateLayerPropertiesCollection (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setReferenceScale(double rhs1)
throws java.io.IOException,
AutomationException
IAnnoClassAdminThe reference scale describes the scale at which the annotation text is displayed at the font size specified. As you zoom out, the text will get smaller, and as you zoom in, the text will get larger.
The reference scale should always be in the same units as the horizontal coordinate system (geographic or projected) of the annotation class.
setReferenceScale in interface IAnnoClassAdminrhs1 - The rhs1 (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setReferenceScaleUnits(int rhs1)
throws java.io.IOException,
AutomationException
IAnnoClassAdmin
setReferenceScaleUnits in interface IAnnoClassAdminrhs1 - A com.esri.arcgis.system.esriUnits constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSymbolCollectionByRef(ISymbolCollection rhs1)
throws java.io.IOException,
AutomationException
IAnnoClassAdmin
setSymbolCollectionByRef in interface IAnnoClassAdminrhs1 - A reference to a com.esri.arcgis.display.ISymbolCollection (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void updateProperties()
throws java.io.IOException,
AutomationException
IAnnoClassAdmin
updateProperties in interface IAnnoClassAdminAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean confirmSendRelatedObjectChanged(IRelationshipClass relationshipClass,
IObject objectThatChanged)
throws java.io.IOException,
AutomationException
IConfirmSendRelatedObjectEvents
confirmSendRelatedObjectChanged in interface IConfirmSendRelatedObjectEventsrelationshipClass - A reference to a com.esri.arcgis.geodatabase.IRelationshipClass (in)objectThatChanged - A reference to a com.esri.arcgis.geodatabase.IObject (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IRelatedObjectEvents,
IClassExtension
public boolean confirmSendRelatedObjectMoved(IRelationshipClass relationshipClass,
IObject objectThatChanged,
ILine moveVector)
throws java.io.IOException,
AutomationException
IConfirmSendRelatedObjectEvents
confirmSendRelatedObjectMoved in interface IConfirmSendRelatedObjectEventsrelationshipClass - A reference to a com.esri.arcgis.geodatabase.IRelationshipClass (in)objectThatChanged - A reference to a com.esri.arcgis.geodatabase.IObject (in)moveVector - A reference to a com.esri.arcgis.geometry.ILine (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IRelatedObjectEvents,
IClassExtension
public boolean confirmSendRelatedObjectSetMoved(IRelationshipClass relationshipClass,
ISet objectsThatChanged,
ILine moveVector)
throws java.io.IOException,
AutomationException
IConfirmSendRelatedObjectEvents
confirmSendRelatedObjectSetMoved in interface IConfirmSendRelatedObjectEventsrelationshipClass - A reference to a com.esri.arcgis.geodatabase.IRelationshipClass (in)objectsThatChanged - A reference to a com.esri.arcgis.system.ISet (in)moveVector - A reference to a com.esri.arcgis.geometry.ILine (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IRelatedObjectEvents,
IClassExtension
public boolean confirmSendRelatedObjectRotated(IRelationshipClass relationshipClass,
IObject objectThatChanged,
IPoint origin,
double angle)
throws java.io.IOException,
AutomationException
IConfirmSendRelatedObjectEvents
confirmSendRelatedObjectRotated in interface IConfirmSendRelatedObjectEventsrelationshipClass - A reference to a com.esri.arcgis.geodatabase.IRelationshipClass (in)objectThatChanged - A reference to a com.esri.arcgis.geodatabase.IObject (in)origin - A reference to a com.esri.arcgis.geometry.IPoint (in)angle - The angle (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IRelatedObjectEvents,
IClassExtension
public boolean confirmSendRelatedObjectSetRotated(IRelationshipClass relationshipClass,
ISet objectsThatChanged,
IPoint origin,
double angle)
throws java.io.IOException,
AutomationException
IConfirmSendRelatedObjectEvents
confirmSendRelatedObjectSetRotated in interface IConfirmSendRelatedObjectEventsrelationshipClass - A reference to a com.esri.arcgis.geodatabase.IRelationshipClass (in)objectsThatChanged - A reference to a com.esri.arcgis.system.ISet (in)origin - A reference to a com.esri.arcgis.geometry.IPoint (in)angle - The angle (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IRelatedObjectEvents,
IClassExtension
public void setUpdateOnShapeChange(boolean flag)
throws java.io.IOException,
AutomationException
IAnnoClassAdmin2
setUpdateOnShapeChange in interface IAnnoClassAdmin2flag - The flag (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRequireSymbolID(boolean rhs1)
throws java.io.IOException,
AutomationException
IAnnoClassAdmin3
setRequireSymbolID in interface IAnnoClassAdmin3rhs1 - The rhs1 (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setAllowSymbolOverrides(boolean rhs1)
throws java.io.IOException,
AutomationException
IAnnoClassAdmin3
setAllowSymbolOverrides in interface IAnnoClassAdmin3rhs1 - The rhs1 (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setOverposterProperties(IOverposterProperties rhs1)
throws java.io.IOException,
AutomationException
IAnnoClassAdmin3
setOverposterProperties in interface IAnnoClassAdmin3rhs1 - A reference to a com.esri.arcgis.carto.IOverposterProperties (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void updateFieldIndexes()
throws java.io.IOException,
AutomationException
IAnnoClassAdmin3
updateFieldIndexes in interface IAnnoClassAdmin3AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isCanEditWithProjection()
throws java.io.IOException,
AutomationException
IFeatureClassEditArcMap supports the editing of simple features in a different spatial reference than that of the feature dataset. If the associated feature class is of type esriFTSimple, editing of the feature class in different spatial reference can be prevented by implementing the CanEditWithProjection property and returning False.
isCanEditWithProjection in interface IFeatureClassEditAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.IClassExtension,
ISpatialReference
public boolean hasCustomSplitPolicyForRelationship()
throws java.io.IOException,
AutomationException
IFeatureClassEditWhen a Feature with related objects is split, the geodatabase will automatically maintain or delete the related objects depending on the type of relationship. In the case of simple relationships, the related objects will be preserved and a new relationship will be created with the feature containing the larger part of the Shape. In the case of composite relationships, the related objects will be deleted.
If this is not the desired behavior, return True for the HasCustomSplitPolicy method. Through the CustomSplitPolicyForRelationship property, a custom split policy can be specified according to subtype and relationship.
hasCustomSplitPolicyForRelationship in interface IFeatureClassEditjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IClassExtension,
IRelationshipClass
public int getCustomSplitPolicyForRelationship(IRow row,
IRelationshipClass relClass)
throws java.io.IOException,
AutomationException
IFeatureClassEditWhen a Feature with related objects is split, the geodatabase will automatically maintain or delete the related objects depending on the type of relationship. In the case of simple relationships, the related objects will be preserved and a new relationship will be created with the feature containing the larger part of the Shape. In the case of composite relationships, the related objects will be deleted.
If this is not the desired behavior, return True for the HasCustomSplitPolicy method. Through the CustomSplitPolicyForRelationship property, a custom split policy can be specified according to subtype and relationship. The support split policies are defined in the esriRelationshipSplitPolicy enumeration and described below:
esriRSPUseDefault: The default behavior, which is esriRSPPreserveOnLargest for simple relationships and esriRSPDeleteParts for composite relationships.
esriRSPPreserveOnLargest: Preserve related objects and create a relationship with the Feature with the largest part of the split geometry.
esriRSPPreserveOnSmallest: Preserve related objects and create a relationship with the Feature with the smallest part of the split geometry.
esriRSPPreserveOnAll: Preserve related objects and create a relationship with both Features. This option is not valid with relationships with 1..1 cardinality or composite relationships.
esriRSPDeleteRelationship: Delete the relationship.
esriRSPDeleteParts: Delete the related Objects.
getCustomSplitPolicyForRelationship in interface IFeatureClassEditrow - A reference to a com.esri.arcgis.geodatabase.IRow (in)relClass - A reference to a com.esri.arcgis.geodatabase.IRelationshipClass (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.IClassExtension,
IRelationshipClass
public void saveClass(IStream pStm)
throws java.io.IOException,
AutomationException
IPersistCustomFeaturesExtension
saveClass in interface IPersistCustomFeaturesExtensionpStm - A reference to a com.esri.arcgis.system.IStream (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void loadClass(IStream pStm,
boolean[] pCanLoad)
throws java.io.IOException,
AutomationException
IPersistCustomFeaturesExtension
loadClass in interface IPersistCustomFeaturesExtensionpStm - A reference to a com.esri.arcgis.system.IStream (in)pCanLoad - The pCanLoad (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void saveFeature(IStream pStm,
IFeature pFeature)
throws java.io.IOException,
AutomationException
IPersistCustomFeaturesExtension
saveFeature in interface IPersistCustomFeaturesExtensionpStm - A reference to a com.esri.arcgis.system.IStream (in)pFeature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void loadFeature(IStream pStm,
IFeature pFeature)
throws java.io.IOException,
AutomationException
IPersistCustomFeaturesExtension
loadFeature in interface IPersistCustomFeaturesExtensionpStm - A reference to a com.esri.arcgis.system.IStream (in)pFeature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void relatedObjectCreated(IRelationshipClass relationshipClass,
IObject objectThatWasCreated)
throws java.io.IOException,
AutomationException
IRelatedObjectClassEventsThe RelationshipClass argument is useful for establishing new relationships. Since an object class may often participate in many relationships, the properties of RelationshipClass can be used to modify behavior of this method.
In order for this method to be called, the relationship class must have messaging set. If the object class which this class extension is associated with is the origin class in the relationship class, then the messaging should be set to Backward or Both. If the object class is the destination class in the relationship, then messaging should be set to Forward or Both.
relatedObjectCreated in interface IRelatedObjectClassEventsrelationshipClass - A reference to a com.esri.arcgis.geodatabase.IRelationshipClass (in)objectThatWasCreated - A reference to a com.esri.arcgis.geodatabase.IObject (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.IRelationshipClass,
IClassExtension
public void onCreate(IObjectClassEventsOnCreateEvent theEvent)
throws java.io.IOException,
AutomationException
IObjectClassEvents
onCreate in interface IObjectClassEventstheEvent - The event
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void onDelete(IObjectClassEventsOnDeleteEvent theEvent)
throws java.io.IOException,
AutomationException
IObjectClassEvents
onDelete in interface IObjectClassEventstheEvent - The event
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void onChange(IObjectClassEventsOnChangeEvent theEvent)
throws java.io.IOException,
AutomationException
IObjectClassEvents
onChange in interface IObjectClassEventstheEvent - The event
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void interfaceSupportsErrorInfo(GUID riid)
throws java.io.IOException,
AutomationException
ISupportErrorInfoIndicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||