|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface INgElementType
Provides access to members that control the graphic element type.
An element type holds the common properties of one element’s type in a project. The common properties of an element are stored and defined by the element type. Element types support parent–child relationships, allowing a child element type to inherit the parameters set for its parent. Typically, a parent element type may not be displayed in a diagram; only the child element types are displayed by associating them with a diagram type.
Generally, an element group is also associated with an element type. An element group is a set of elements that have the same graphic effects. When you create a new element type, you have to decide if your new element type will be associated with an element group or not. Even if you can redefine element types as a group at any time, this decision is important. It determines what you will afterward be authorized to define for your element type. When your element type is a group, you can define any graphic effects and create any property on it. If your element type is not a group, it is impossible. By default, if an element type inherits from another element type, and if it is not a group, it inherits the graphic effects and properties defined for the first of its ancestor element types, which is a group itself.
When you define an element type, you typically declare:
- The name of this element type,
- The type of the elements (node, link, drawing, sublink or node-on-link),
- Eventually, the name of its parent element type.
If you want to create an element type, you can use the ArcGIS Schematics Designer or call the CreateElementType method available from the INgProjectBuilder interface in your program code.
Your element type definition can be then completed by defining:
- The query returning all the elements of this element type,
- The fields used to build up each element identifier for this type,
- The attributes associated with this element type,
- The properties associated with this element type,
- The userdata associated with this element type.
All these characteristics can be defined through the ArcGIS Schematics Designer, or in your program code through the INgObjectType interface associated with your INgElementType interface.
ISchematicElementClass,
INgElement| Method Summary | |
|---|---|
void |
addFlagModel(INgFlagModel flagModel,
int mode)
Associates the specified flag model with the element type. |
void |
addPatternModel(INgPatternModel patternModel)
Associates the specified pattern model with the element type. |
void |
associateProperty(INgProperty prop,
String attributeName)
Relates the specified property to the element type and associates this property with the attribute named 'attributeName'. |
void |
associateUserData(INgUserData userData,
String attributeName)
Relates the specified userdata to the element type and associates this userdata with the attribute named 'attributeName'. |
INgProperty |
createProperty(String name,
int propertyType,
int propertyValue,
int effect)
Creates the new property named 'name' for the element type. |
void |
delete(boolean deleteDescendants)
Deletes the element type. |
void |
dissociateProperty(INgProperty prop)
Deletes the association between the specified property and the element type. |
void |
dissociateUserData(INgUserData userData)
Deletes the association between the specified userdata and the element type. |
INgElementTypes |
getAncestors()
List of the ancestor element types for the element type. |
INgDiagramTypes |
getAssociatedDiagramTypes()
List of the diagram types the element type is associated with. |
INgProperties |
getAssociatedProperties(String attributeName)
List of properties related to the element type that are associated with the attribute named 'attributeName' or the list of all the properties related to the element type when no attribute name is specified. |
INgAttribute |
getAssociatedPropertyAttribute(String propertyName)
Attribute associated with the property named 'propertyName' that is defined for the element type. |
INgAttribute |
getAssociatedUserDataAttribute(String userDataName)
Attribute associated with the userdata named 'userdataName' that is defined for the element type. |
INgUserDatas |
getAssociatedUserDatas(String attributeName)
List of userdata related to the element type that are associated with the attribute named 'attributeName' or the list of all the userdata related to the element type when no attribute name is specified. |
INgElementTypes |
getChildren()
List of the child element types for the element type. |
INgElementTypes |
getDescendants()
List of the descendant element types for the element type. |
Object |
getEffect(int effect)
Returns the effect 'effect' set for the element type (see esriNgElementTypeEffect). |
INgElement |
getElement(String eltName)
Returns the element named 'eltName' implemented by the element type. |
INgElementType |
getElementGroup()
Element group related to the element type. |
INgElements |
getElements()
List of the elements implemented by the element type. |
INgElements |
getElementsByUserData(INgUserDatas userDatas,
INgValues values)
Returns the list of the elements that are implemented by this element type and which each associated user-data in the 'userDatas' list verifies the 'values' list corresponding values. |
INgElementTypeEffects |
getElementTypeEffects()
List of the effects set for the element type. |
INgFlagModel |
getFlagModel(String flagModelName)
Returns the flag model named 'flagModelName' associated with the element type. |
INgFlagModels |
getFlagModels()
List of flag models associated with the element type. |
String |
getName()
Name of the element type. |
INgElementType |
getParent()
Parent element type of the element type. |
INgPatternModel |
getPatternModel(String patternModelName)
Returns the pattern model named 'patternModelName' associated with the element type. |
INgPatternModels |
getPatternModels()
List of pattern models associated with the element type. |
Object |
getPoleEffect(String flagModelName,
int effect)
Returns the effect 'effect' set for the pole that connects the flags of the flag model named 'flagModelName' associated with the element type. |
INgProperties |
getProperties()
List of the properties associated with the element type. |
INgProperty |
getProperty(String propertyName)
Returns the property named 'propertyName' associated with the element type. |
Object |
getSubSymbolEffect(String subName,
int effect)
Returns the effect 'effect' set for the sub-symbol named 'subName' that represents the element type. |
int |
getType()
Type of the element type (see esriNgElementTypeEnum). |
boolean |
isEffectSet(int effect)
Indicates if the effect 'effect' related to the element type is set (see esriNgElementTypeEffect). |
boolean |
isElementGroup()
Indicates if the element type is associated with an element group. |
boolean |
isPoleEffectSet(String flagModelName,
int effect)
Indicates if the effect 'effect' related to the pole that connects the flags of the flag model named 'flagModelName' associated with the element type is set. |
boolean |
isSubSymbolEffectSet(String subName,
int effect)
Indicates if the effect 'effect' related to the sub-symbol named 'subName' that represents the element type is set. |
void |
removeEffect(int effect)
Removes the effect or restores the effect 'effect' set for the element type (see esriNgElementTypeEffect). |
void |
removeFlagModel(INgFlagModel flagModel)
Removes the association between the specified flag model and the element type. |
void |
removePatternModel(INgPatternModel patternModel)
Removes the association between the specified pattern model and the element type. |
void |
removePoleEffect(String flagModelName,
int effect)
Removes the effect or restores the default effect 'effect' for the pole that connects the flags of the flag model named 'flagModelName' associated with the element type. |
void |
removeSubSymbolEffect(String subName,
int effect)
Removes the effect 'effect' set for the sub-symbol named 'subName' that represents the element type. |
void |
setEffect(int effect,
Object effValue)
Modifies the effect 'effect' set for the element type (see esriNgElementTypeEffect). |
void |
setIsElementGroup(boolean pVal)
Indicates if the element type is associated with an element group. |
void |
setName(String pVal)
Name of the element type. |
void |
setParent(INgElementType pVal)
Parent element type of the element type. |
void |
setPoleEffect(String flagModelName,
int effect,
Object effValue)
Modifies the effect 'effect' set for the pole that connects the flags of the flag model named 'flagModelName' associated with the element type. |
void |
setSubSymbolEffect(String subName,
int effect,
Object effValue)
Modifies the effect 'effect' set for the sub-symbol named 'subName' that represents the element type. |
| Method Detail |
|---|
String getName()
throws IOException,
AutomationException
This name is defined when the element type is created
- either by calling the INgProjectBuilder CreateElementType method in the program code,
- or through ArcGIS Schematics Designer, when the parameters for the element type has been specified.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setName(String pVal)
throws IOException,
AutomationException
pVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgElements getElements()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgProperties getProperties()
throws IOException,
AutomationException
All properties defined at the element type level are returned, those that are in relation with an attribute as those that have no related attribute. If the element type is not a group and inherits from another element type, the Properties list also contains all the inherited properties. Even if the element type inherits from another element type, if the element type is a group, the Properties list only contains the properties defined for the element type.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getAssociatedProperties(String)
INgProperty getProperty(String propertyName)
throws IOException,
AutomationException
propertyName - The propertyName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getProperties(),
INgElementType
INgElement getElement(String eltName)
throws IOException,
AutomationException
eltName - The eltName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagram.getNode(String),
INgDiagram.getLink(String),
INgDiagram.getDrawing(String),
INgElementType.getElements()
Object getEffect(int effect)
throws IOException,
AutomationException
If the IsElementGroup property returns False and the ElementGroup property is defined (that is if the element type is not a group but inherits from an ancestor element type group), calling the GetEffect method on the current element type will return the effects defined for this ElementGroup (that is, for this ancestor element type group).
effect - A com.esri.arcgis.schematic.esriNgElementTypeEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.isEffectSet(int),
INgElementType.setEffect(int, java.lang.Object),
INgElementType.removeEffect(int)
void setEffect(int effect,
Object effValue)
throws IOException,
AutomationException
If the IsElementGroup property returns False
- Either the ElementGroup property is defined (that is, the element type inherits from another element type that is a group) and using the SetEffect method for the current element type will set the given effect for the ElementGroup element type (that is, for the ancestor element type that is a group)
- Or the ElementGroup associated property is not defined, and in this case, the IsElementGroup property must be set to True before calling the SetEffect method.
effect - A com.esri.arcgis.schematic.esriNgElementTypeEffect constant (in)effValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getEffect(int),
INgElementType.isEffectSet(int),
INgElementType.removeEffect(int)
void removeEffect(int effect)
throws IOException,
AutomationException
Suppose for the considered element type, the IsElementGroup property returns False and the ElementGroup property is defined; that is, the element type is not a group but inherits from an ancestor element type group. In this case, when calling the RemoveEffect method on the current element type, the effect will be removed for the element type ElementGroup; that is, for this ancestor element type group.
Reminder: Removing an effect that is always set, returns the element type's effect to the default effect value and removing an effect that is not set by default, really removes the element type's effect.
effect - A com.esri.arcgis.schematic.esriNgElementTypeEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getEffect(int),
INgElementType.isEffectSet(int),
INgElementType.setEffect(int, java.lang.Object)
boolean isEffectSet(int effect)
throws IOException,
AutomationException
By default, Schematics automatically sets default values for some element type effects (see the List of default element type effect values, below). For all these effects, the IsEffectSet method returns True.
For the others effects (those that are not automatically set by default), the IsEffectSet method returns True only if the effect has been set:
- Either through ArcGIS Schematics Designer when defining the graphical effects for the current element type itself (when the element type is a group) or for one of its ancestor element type which is a group itself (when the element type is not a group).
- Or, by calling the INgElementType SetEffect method in the project code.
List of default element type's effect values
esriNgElementTypeDetectability: esriNgDetectable.
esriNgElementTypeHighlightedState: esriNgNotHighlighted
esriNgElementTypeLegendVisibility: esriNgVisible
esriNgElementTypeLegendNote: nothing. Even if, by default, Schematics displays the element type name.
esriNgElementTypeMobility: esriNgMovable.
esriNgElementTypePriority: 201 or more for a node type, 101 or more for a link type, 1 or more for a drawing type
esriNgElementTypeResizability: esriNgResizable if Type = esriNgElementNode or esriNgElementDrawing; esriNgUnresizable if Type = esriNgElementLink
esriNgElementTypeSelectability: esriNgSelectable
esriNgElementTypeVisibility: esriNgVisible
For more details, see Element Type Effects Constants Definition.
effect - A com.esri.arcgis.schematic.esriNgElementTypeEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getEffect(int),
INgElementType.setEffect(int, java.lang.Object),
INgElementType.removeEffect(int)
INgElementType getParent()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getChildren(),
INgElementType.getAncestors(),
INgElementType.getDescendants()
void setParent(INgElementType pVal)
throws IOException,
AutomationException
pVal - A reference to a com.esri.arcgis.schematic.INgElementType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgElementTypes getAncestors()
throws IOException,
AutomationException
Note that the element type ancestors list is returned in ascending hierarchy order, that is from the parent to the most distant ancestor.
The Ancestors collection is returned in ascending hierarchy order; that is from the parent to the most distant ancestor.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getChildren(),
INgElementType.getParent(),
INgElementType.getDescendants()
INgElementTypes getChildren()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getParent(),
INgElementType.getAncestors(),
INgElementType.getDescendants()
INgElementTypes getDescendants()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getChildren(),
INgElementType.getParent(),
INgElementType.getAncestors()
int getType()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgDiagramTypes getAssociatedDiagramTypes()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.associateElementType(com.esri.arcgis.schematic.INgElementType)
INgProperty createProperty(String name,
int propertyType,
int propertyValue,
int effect)
throws IOException,
AutomationException
If the property is a direct property, the default graphic effect associated with the property is esriNgDirectPropertySymbolName.
name - The name (in)propertyType - A com.esri.arcgis.schematic.esriNgPropertyType constant (in)propertyValue - A com.esri.arcgis.schematic.esriNgValueType constant (in)effect - A com.esri.arcgis.schematic.esriNgDirectPropertyEffect constant (in, optional, pass 1021 if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiscreteProperty.addFilter(int, String, java.lang.Object),
INgBoundedProperty.addFilter(int, String, java.lang.Object, java.lang.Object)
INgFlagModels getFlagModels()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getFlagModel(String)
INgPatternModels getPatternModels()
throws IOException,
AutomationException
With old ArcGIS Schematics versions, no more than one pattern model could be associated with a link element type. Since the 2.3 version, several pattern models can be associated with the same link element type.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getPatternModel(String)
INgPatternModel getPatternModel(String patternModelName)
throws IOException,
AutomationException
patternModelName - The patternModelName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgFlagModel getFlagModel(String flagModelName)
throws IOException,
AutomationException
flagModelName - The flagModelName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void addFlagModel(INgFlagModel flagModel,
int mode)
throws IOException,
AutomationException
Associating a flag model with an element type implies that all the element of this element type will be displayed with a flag based on this flag model. If all you want to do is attach a flag for only one given element, you can use the INgElement CreateFlag method.
flagModel - A reference to a com.esri.arcgis.schematic.INgFlagModel (in)mode - A com.esri.arcgis.schematic.esriNgFlagAttachementMode constant (in, optional, pass 2056 if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.removeFlagModel(com.esri.arcgis.schematic.INgFlagModel),
INgElementType.getFlagModel(String)
void removeFlagModel(INgFlagModel flagModel)
throws IOException,
AutomationException
flagModel - A reference to a com.esri.arcgis.schematic.INgFlagModel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.addFlagModel(com.esri.arcgis.schematic.INgFlagModel, int),
INgElementType.getFlagModel(String)
void addPatternModel(INgPatternModel patternModel)
throws IOException,
AutomationException
Associating a pattern model with an element type implies that all the elements of this element type will be displayed with a pattern based on this pattern model. If all you want to do is add a pattern for only one given link element, you can use the INgLink AddPatternModel method.
patternModel - A reference to a com.esri.arcgis.schematic.INgPatternModel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getPatternModel(String),
INgLink.addPatternModel(com.esri.arcgis.schematic.INgPatternModel),
INgElementType.removePatternModel(com.esri.arcgis.schematic.INgPatternModel)
void removePatternModel(INgPatternModel patternModel)
throws IOException,
AutomationException
patternModel - A reference to a com.esri.arcgis.schematic.INgPatternModel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getPatternModel(String),
INgElementType.addPatternModel(com.esri.arcgis.schematic.INgPatternModel)
void associateProperty(INgProperty prop,
String attributeName)
throws IOException,
AutomationException
prop - A reference to a com.esri.arcgis.schematic.INgProperty (in)attributeName - The attributeName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.dissociateProperty(com.esri.arcgis.schematic.INgProperty),
INgElementType.associateUserData(com.esri.arcgis.schematic.INgUserData, String)
void associateUserData(INgUserData userData,
String attributeName)
throws IOException,
AutomationException
userData - A reference to a com.esri.arcgis.schematic.INgUserData (in)attributeName - The attributeName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.associateProperty(com.esri.arcgis.schematic.INgProperty, String),
INgElementType.dissociateUserData(com.esri.arcgis.schematic.INgUserData)
INgProperties getAssociatedProperties(String attributeName)
throws IOException,
AutomationException
attributeName - The attributeName (in, optional, pass if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgUserDatas getAssociatedUserDatas(String attributeName)
throws IOException,
AutomationException
attributeName - The attributeName (in, optional, pass if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void dissociateProperty(INgProperty prop)
throws IOException,
AutomationException
prop - A reference to a com.esri.arcgis.schematic.INgProperty (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.associateProperty(com.esri.arcgis.schematic.INgProperty, String),
INgElementType.dissociateUserData(com.esri.arcgis.schematic.INgUserData)
void dissociateUserData(INgUserData userData)
throws IOException,
AutomationException
userData - A reference to a com.esri.arcgis.schematic.INgUserData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.associateUserData(com.esri.arcgis.schematic.INgUserData, String)
INgElementType getElementGroup()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.isElementGroup()
INgAttribute getAssociatedPropertyAttribute(String propertyName)
throws IOException,
AutomationException
propertyName - The propertyName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgAttribute getAssociatedUserDataAttribute(String userDataName)
throws IOException,
AutomationException
userDataName - The userDataName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void delete(boolean deleteDescendants)
throws IOException,
AutomationException
Note that the True value is the value set by default.
deleteDescendants - The deleteDescendants (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isElementGroup()
throws IOException,
AutomationException
If the IsElementGroup property returns TRUE, the element type ElementGroup property returns the current element type itself. If it returns FALSE, the ElementGroup property returns the first of its ancestor element types which is a group.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getElementGroup()
void setIsElementGroup(boolean pVal)
throws IOException,
AutomationException
pVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object getSubSymbolEffect(String subName,
int effect)
throws IOException,
AutomationException
Sub-symbols effects can be set:
- Either through ArcGIS Schematics Designer, when defining the graphic effects for the element type itself (when the element type is a group) or for one of its element type ancestors which is a group itself (when the element type is not a group),
- Or, by calling the INgElementType SetSubSymbolEffect method in the project code.
subName - The subName (in)effect - A com.esri.arcgis.schematic.esriNgSubSymbolEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.removeSubSymbolEffect(String, int),
INgElementType.isSubSymbolEffectSet(String, int)
boolean isSubSymbolEffectSet(String subName,
int effect)
throws IOException,
AutomationException
Sub-symbols effects can be set:
- Either through ArcGIS Schematics Designer, when defining the graphic effects for the element type itself (when the element type is a group) or for one of its element type ancestors which is a group itself (when the element type is not a group),
- Or, by calling the INgElementType SetSubSymbolEffect method in the project code.
subName - The subName (in)effect - A com.esri.arcgis.schematic.esriNgSubSymbolEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.removeSubSymbolEffect(String, int),
INgElementType.getSubSymbolEffect(String, int)
INgElementTypeEffects getElementTypeEffects()
throws IOException,
AutomationException
The returned effects are either all the effects set for the current element type itself, when the element type is a group, or the effects set for its first ancestor element type, the latter being itself a group, if this element type inherits from another element type.
Note that if this property returns all the element type effects, you can get a specific effect by using the GetEffect method.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void removeSubSymbolEffect(String subName,
int effect)
throws IOException,
AutomationException
subName - The subName (in)effect - A com.esri.arcgis.schematic.esriNgSubSymbolEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.isSubSymbolEffectSet(String, int),
INgElementType.getSubSymbolEffect(String, int)
void setSubSymbolEffect(String subName,
int effect,
Object effValue)
throws IOException,
AutomationException
subName - The subName (in)effect - A com.esri.arcgis.schematic.esriNgSubSymbolEffect constant (in)effValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.removeSubSymbolEffect(String, int),
INgElementType.isSubSymbolEffectSet(String, int)
void setPoleEffect(String flagModelName,
int effect,
Object effValue)
throws IOException,
AutomationException
flagModelName - The flagModelName (in)effect - A com.esri.arcgis.schematic.esriNgPoleEffect constant (in)effValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.removePoleEffect(String, int),
INgElementType.isPoleEffectSet(String, int),
INgElementType.getPoleEffect(String, int)
Object getPoleEffect(String flagModelName,
int effect)
throws IOException,
AutomationException
flagModelName - The flagModelName (in)effect - A com.esri.arcgis.schematic.esriNgPoleEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.removePoleEffect(String, int),
INgElementType.isPoleEffectSet(String, int),
INgElementType.setPoleEffect(String, int, java.lang.Object)
boolean isPoleEffectSet(String flagModelName,
int effect)
throws IOException,
AutomationException
By default, Schematics automatically sets default values for some pole effects (see the List of default pole effect values, below). For all these effects, the IsPoleEffectSet method returns True.
For the other effects (those that are not automatically set by default), the IsPoleEffectSet method returns True only if the effect has been set:
- Either through ArcGIS Schematics Designer when defining the pole's characteristics
- Or, by calling the INgElementType SetPoleEffect method in the project code.
List of the default pole effect values
esriNgPoleDetectability: esriNgDetectable
esriNgPoleHighlightedState: esriNgNotHighlighted
esriNgPolePriority: 50 or more
esriNgPoleSelectability: esriNgSelectable
esriNgPoleVisibility: esriNgVisible
flagModelName - The flagModelName (in)effect - A com.esri.arcgis.schematic.esriNgPoleEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.removePoleEffect(String, int),
INgElementType.getPoleEffect(String, int),
INgElementType.setPoleEffect(String, int, java.lang.Object)
void removePoleEffect(String flagModelName,
int effect)
throws IOException,
AutomationException
Note that removing an effect that is always set, returns the effect to its default value. And removing an effect that is not set by default actually removes the effect: the effect is not set any more!
flagModelName - The flagModelName (in)effect - A com.esri.arcgis.schematic.esriNgPoleEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.isPoleEffectSet(String, int),
INgElementType.getPoleEffect(String, int),
INgElementType.setPoleEffect(String, int, java.lang.Object)
INgElements getElementsByUserData(INgUserDatas userDatas,
INgValues values)
throws IOException,
AutomationException
userDatas - A reference to a com.esri.arcgis.schematic.INgUserDatas (in)values - A reference to a com.esri.arcgis.schematic.INgValues (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagram.getElementsByUserData(com.esri.arcgis.schematic.INgUserDatas, com.esri.arcgis.schematic.INgValues, com.esri.arcgis.schematic.INgElementType)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||