|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.schematic.NgElementType
public class NgElementType
Graphic element type object.
| Constructor Summary | |
|---|---|
NgElementType(Object obj)
Construct a NgElementType using a reference to such an object returned from ArcGIS Engine or Server. |
|
| 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'. |
INgAttribute |
createAttribute(String attributeName,
int attributeType)
Creates a new attribute named 'attributeName' whose type is 'attributeType' for the object type. |
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 |
deleteUserData(INgUserData userData)
Delete the specified userdata defined for the object 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. |
boolean |
equals(Object o)
Compare this object with another |
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. |
INgAttribute |
getAttribute(String attributeName)
Returns the attibute named 'attributeName' defined for the object type. |
INgAttributes |
getAttributes()
List of the attributes defined for the object type. |
INgElementTypes |
getChildren()
List of the child element types for the element type. |
INgDataSource |
getDataSource()
Data source related to the object 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. |
INgNames |
getFieldNames()
List of the query field names used to build up each object identifier implemented by the object 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. |
INgParameters |
getParameters()
List of the query parameters. |
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. |
INgProject |
getProject()
Project of the object 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. |
String |
getQueryString()
Query, name of the query, or name of the table that returns all objects of the object 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). |
Object |
getUserDataValue(INgUserData userData)
Returns the value of the specified userdata defined for the object type. |
int |
hashCode()
the hashcode for this object |
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 |
setDataSource(INgDataSource pVal)
Data source related to the object type. |
void |
setEffect(int effect,
Object effValue)
Modifies the effect 'effect' set for the element type (see esriNgElementTypeEffect). |
void |
setFieldNames(INgNames pVal)
List of the query field names used to build up each object identifier implemented by the object type. |
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 |
setParameters(INgParameters pVal)
List of the query parameters. |
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 |
setQueryString(String pVal)
Query, name of the query, or name of the table that returns all objects of the object 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. |
void |
setUserDataValue(INgUserData userData,
Object userDataValue)
Modifies the value of the 'specified userdata defined for the object type. |
| 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 NgElementType(Object obj)
throws IOException
obj to NgElementType. *
NgElementType o = (NgElementType)obj; // will not work
NgElementType o = new NgElementType(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
NgElementType theNgElementType = (NgElementType) obj;| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public 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.
getName in interface INgElementTypegetName in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.getName(),
INgElementType.getName()
public void setName(String pVal)
throws IOException,
AutomationException
setName in interface INgElementTypesetName in interface INgObjectTypepVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgElements getElements()
throws IOException,
AutomationException
getElements in interface INgElementTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
getProperties in interface INgElementTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getAssociatedProperties(String)
public INgProperty getProperty(String propertyName)
throws IOException,
AutomationException
getProperty in interface INgElementTypepropertyName - The propertyName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getProperties(),
INgElementType
public INgElement getElement(String eltName)
throws IOException,
AutomationException
getElement in interface INgElementTypeeltName - 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()
public 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).
getEffect in interface INgElementTypeeffect - 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)
public 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.
setEffect in interface INgElementTypeeffect - 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)
public 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.
removeEffect in interface INgElementTypeeffect - 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)
public 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.
isEffectSet in interface INgElementTypeeffect - 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)
public INgElementType getParent()
throws IOException,
AutomationException
getParent in interface INgElementTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getChildren(),
INgElementType.getAncestors(),
INgElementType.getDescendants()
public void setParent(INgElementType pVal)
throws IOException,
AutomationException
setParent in interface INgElementTypepVal - A reference to a com.esri.arcgis.schematic.INgElementType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
getAncestors in interface INgElementTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getChildren(),
INgElementType.getParent(),
INgElementType.getDescendants()
public INgElementTypes getChildren()
throws IOException,
AutomationException
getChildren in interface INgElementTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getParent(),
INgElementType.getAncestors(),
INgElementType.getDescendants()
public INgElementTypes getDescendants()
throws IOException,
AutomationException
getDescendants in interface INgElementTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getChildren(),
INgElementType.getParent(),
INgElementType.getAncestors()
public int getType()
throws IOException,
AutomationException
getType in interface INgElementTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgDiagramTypes getAssociatedDiagramTypes()
throws IOException,
AutomationException
getAssociatedDiagramTypes in interface INgElementTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagramType.associateElementType(com.esri.arcgis.schematic.INgElementType)
public 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.
createProperty in interface INgElementTypename - 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)
public INgFlagModels getFlagModels()
throws IOException,
AutomationException
getFlagModels in interface INgElementTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getFlagModel(String)
public 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.
getPatternModels in interface INgElementTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getPatternModel(String)
public INgPatternModel getPatternModel(String patternModelName)
throws IOException,
AutomationException
getPatternModel in interface INgElementTypepatternModelName - The patternModelName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgFlagModel getFlagModel(String flagModelName)
throws IOException,
AutomationException
getFlagModel in interface INgElementTypeflagModelName - The flagModelName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
addFlagModel in interface INgElementTypeflagModel - 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)
public void removeFlagModel(INgFlagModel flagModel)
throws IOException,
AutomationException
removeFlagModel in interface INgElementTypeflagModel - 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)
public 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.
addPatternModel in interface INgElementTypepatternModel - 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)
public void removePatternModel(INgPatternModel patternModel)
throws IOException,
AutomationException
removePatternModel in interface INgElementTypepatternModel - 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)
public void associateProperty(INgProperty prop,
String attributeName)
throws IOException,
AutomationException
associateProperty in interface INgElementTypeprop - 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)
public void associateUserData(INgUserData userData,
String attributeName)
throws IOException,
AutomationException
associateUserData in interface INgElementTypeuserData - 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)
public INgProperties getAssociatedProperties(String attributeName)
throws IOException,
AutomationException
getAssociatedProperties in interface INgElementTypeattributeName - The attributeName (in, optional, pass if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgUserDatas getAssociatedUserDatas(String attributeName)
throws IOException,
AutomationException
getAssociatedUserDatas in interface INgElementTypeattributeName - The attributeName (in, optional, pass if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void dissociateProperty(INgProperty prop)
throws IOException,
AutomationException
dissociateProperty in interface INgElementTypeprop - 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)
public void dissociateUserData(INgUserData userData)
throws IOException,
AutomationException
dissociateUserData in interface INgElementTypeuserData - 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)
public INgElementType getElementGroup()
throws IOException,
AutomationException
getElementGroup in interface INgElementTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.isElementGroup()
public INgAttribute getAssociatedPropertyAttribute(String propertyName)
throws IOException,
AutomationException
getAssociatedPropertyAttribute in interface INgElementTypepropertyName - The propertyName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgAttribute getAssociatedUserDataAttribute(String userDataName)
throws IOException,
AutomationException
getAssociatedUserDataAttribute in interface INgElementTypeuserDataName - The userDataName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void delete(boolean deleteDescendants)
throws IOException,
AutomationException
Note that the True value is the value set by default.
delete in interface INgElementTypedelete in interface INgObjectTypedeleteDescendants - The deleteDescendants (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
isElementGroup in interface INgElementTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getElementGroup()
public void setIsElementGroup(boolean pVal)
throws IOException,
AutomationException
setIsElementGroup in interface INgElementTypepVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
getSubSymbolEffect in interface INgElementTypesubName - 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)
public 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.
isSubSymbolEffectSet in interface INgElementTypesubName - 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)
public 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.
getElementTypeEffects in interface INgElementTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeSubSymbolEffect(String subName,
int effect)
throws IOException,
AutomationException
removeSubSymbolEffect in interface INgElementTypesubName - 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)
public void setSubSymbolEffect(String subName,
int effect,
Object effValue)
throws IOException,
AutomationException
setSubSymbolEffect in interface INgElementTypesubName - 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)
public void setPoleEffect(String flagModelName,
int effect,
Object effValue)
throws IOException,
AutomationException
setPoleEffect in interface INgElementTypeflagModelName - 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)
public Object getPoleEffect(String flagModelName,
int effect)
throws IOException,
AutomationException
getPoleEffect in interface INgElementTypeflagModelName - 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)
public 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
isPoleEffectSet in interface INgElementTypeflagModelName - 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)
public 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!
removePoleEffect in interface INgElementTypeflagModelName - 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)
public INgElements getElementsByUserData(INgUserDatas userDatas,
INgValues values)
throws IOException,
AutomationException
getElementsByUserData in interface INgElementTypeuserDatas - 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)
public INgAttributes getAttributes()
throws IOException,
AutomationException
These attributes could have been defined:
- either by calling the INgObjectType CreateAttribute method in the code
- or when its associated element type or diagram type has been created through ArcGIS Schematics Designer.
The Attributes property can returnNULL when no attribute is defined for the associated element type or diagram type.
getAttributes in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgObjectType.getAttribute(String)
public INgAttribute getAttribute(String attributeName)
throws IOException,
AutomationException
getAttribute in interface INgObjectTypeattributeName - The attributeName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgAttribute createAttribute(String attributeName,
int attributeType)
throws IOException,
AutomationException
createAttribute in interface INgObjectTypeattributeName - The attributeName (in)attributeType - A com.esri.arcgis.schematic.esriNgAttributeType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgObjectType.getAttributes(),
INgObjectType.getAttribute(String)
public INgNames getFieldNames()
throws IOException,
AutomationException
When several field names are specified, the object type identifier is obtained by concatenating all the fields in their entry sequence order (the concatenated fields are hyphenated). If one or several field names do(es) not correspond to a field returned by the query, Schematics considers the corresponding name as a character string to be concatenated with the other fields to identify the objects of this type.
If there is only one obejct of the given type, the obejct type identifier can be set to NULL
This list can be defined:
- when defining the related element type or diagram type through ArcGIS Schematics Designer,
- or by code
getFieldNames in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFieldNames(INgNames pVal)
throws IOException,
AutomationException
setFieldNames in interface INgObjectTypepVal - A reference to a com.esri.arcgis.schematic.INgNames (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgDataSource getDataSource()
throws IOException,
AutomationException
This property identifies the name of the data source used to connect the database where schematic objects are stored; that is, it specifies the database related to the the query that will return all objects of this type.
This data source can have been specified:
- when defining the related element type or diagram type through ArcGIS Schematics Designer,
- or by code.
The Datasource property can also be set to NULL if no query is associated to this object type.
getDataSource in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDataSource(INgDataSource pVal)
throws IOException,
AutomationException
setDataSource in interface INgObjectTypepVal - A reference to a com.esri.arcgis.schematic.INgDataSource (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getQueryString()
throws IOException,
AutomationException
The Datasource property identifies the datasource used to connect the database the query is related to. The query can be parameterized or not. In the case of a parameterized query, the Parameters property specifies the list of the parameters.
Note: In the case of an ADO connection without parameters, Schematics considers the attributes passed to the query as being text type attributes, by default. Any non textual attribute passed as a parameter must be followed by the ':' character sign.
getQueryString in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setQueryString(String pVal)
throws IOException,
AutomationException
setQueryString in interface INgObjectTypepVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgParameters getParameters()
throws IOException,
AutomationException
getParameters in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setParameters(INgParameters pVal)
throws IOException,
AutomationException
setParameters in interface INgObjectTypepVal - A reference to a com.esri.arcgis.schematic.INgParameters (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgProject getProject()
throws IOException,
AutomationException
getProject in interface INgObjectTypeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getUserDataValue(INgUserData userData)
throws IOException,
AutomationException
getUserDataValue in interface INgObjectTypeDatasuserData - A reference to a com.esri.arcgis.schematic.INgUserData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgObjectTypeDatas.deleteUserData(com.esri.arcgis.schematic.INgUserData),
INgObjectTypeDatas.setUserDataValue(com.esri.arcgis.schematic.INgUserData, java.lang.Object)
public void setUserDataValue(INgUserData userData,
Object userDataValue)
throws IOException,
AutomationException
setUserDataValue in interface INgObjectTypeDatasuserData - A reference to a com.esri.arcgis.schematic.INgUserData (in)userDataValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgObjectTypeDatas.deleteUserData(com.esri.arcgis.schematic.INgUserData),
INgObjectTypeDatas.getUserDataValue(com.esri.arcgis.schematic.INgUserData)
public void deleteUserData(INgUserData userData)
throws IOException,
AutomationException
deleteUserData in interface INgObjectTypeDatasuserData - A reference to a com.esri.arcgis.schematic.INgUserData (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 | ||||||||