|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.schematic.INgPropertyProxy
public class INgPropertyProxy
Provides access to members that control the property.
Properties are used to define the characteristics of a group of elements that have an impact in the graphic representation of a network. The overall state of a network is determined by the values taken by the existing set of properties at a given time. A property is associated with a single element group.
A label displayed either directly on the elements it applies to or inside a flag associated with these elements can represent any property. The position of the text is determined either relative to the objects (above/below, for links) or by a port number (for nodes or flags).
A property created for the sole purpose of displaying a label on an element or inside the flag attached to this element is said to be textual. To associate graphic effects with a property, the possible values of the property must first be specified. If these values belong to a finite set of numbers or alphanumeric codes, the property is said to be discrete. If the values are simply numeric and indifferent (that is, they belong to a range of values), the property is said to be bounded. To assign specific graphic effects to that property, a filter must be defined for each of its possible values. Along with the textual, discrete, and bounded properties, a fourth property, the direct property, is also available for directly applying a given graphic effect, depending on the values taken up by the property itself—that is, scale factor and symbology.
In all cases, the values used to define any property effect are returned through an attribute that must be associated with the property. Each attribute may be related to one or several fields stored in the database.
The use of properties depends on whether its related element type is associated with a group. A property is always related to a element type. It can be created or associated with this element type.
INgDiscreteProperty,
INgTextualProperty,
INgBoundedProperty,
INgElementType.createProperty(String, int, int, int),
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
|---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E |
| Constructor Summary | |
|---|---|
|
INgPropertyProxy()
|
|
INgPropertyProxy(Object obj)
|
protected |
INgPropertyProxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
delete()
Deletes the property. |
INgAttribute |
getAssociatedAttribute()
Attribute the property is associated with. |
INgFlagModel |
getDisplayFlagModel()
Flag model used by the property. |
Object |
getEffect(int effect)
Returns the effect 'effect' set for the property (see esriNgPropertyEffect). |
INgElementType |
getElementType()
Element type the property is related to. |
String |
getName()
Name of the property. |
int |
getType()
Type of the property (see esriNgPropertyType). |
boolean |
isEffectSet(int effect)
Indicates if the effect 'effect' related to the property is set (see esriNgPropertyEffect). |
void |
readExternal(ObjectInput in)
|
void |
removeEffect(int effect)
Removes the effect or restores the default effect 'effect' set for the property (see esriNgPropertyEffect). |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setDisplayFlagModel(INgFlagModel pVal)
Flag model used by the property. |
void |
setEffect(int effect,
Object effValue)
Modifies the effect 'effect' set for the property (see esriNgPropertyEffect). |
void |
setName(String pVal)
Name of the property. |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class com.esri.arcgis.interop.Dispatch |
|---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, queryInterface, release, setNativeMode, setPropertyByName, toString, vtblInvoke |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public INgPropertyProxy()
public INgPropertyProxy(Object obj)
throws IOException
IOException
protected INgPropertyProxy(Object obj,
String iid)
throws IOException
IOException| Method Detail |
|---|
public void addListener(String iidStr,
Object theListener,
Object theSource)
throws IOException
addListener in class com.esri.arcgis.interop.DispatchIOException
public void removeListener(String iidStr,
Object theListener)
throws IOException
removeListener in class com.esri.arcgis.interop.DispatchIOException
public String getName()
throws IOException,
AutomationException
This name has been defined when the property was created
- Either by calling the INgElementType CreateProperty method in the program code
- Or when the property has been created with ArcGIS Schematics Designer
getName in interface INgPropertyIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setName(String pVal)
throws IOException,
AutomationException
setName in interface INgPropertypVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getType()
throws IOException,
AutomationException
getType in interface INgPropertyIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getEffect(int effect)
throws IOException,
AutomationException
getEffect in interface INgPropertyeffect - A com.esri.arcgis.schematic.esriNgPropertyEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProperty.isEffectSet(int),
INgProperty.removeEffect(int),
INgProperty.setEffect(int, java.lang.Object)
public void setEffect(int effect,
Object effValue)
throws IOException,
AutomationException
setEffect in interface INgPropertyeffect - A com.esri.arcgis.schematic.esriNgPropertyEffect constant (in)effValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProperty.isEffectSet(int),
INgProperty.removeEffect(int),
INgProperty.getEffect(int)
public void removeEffect(int effect)
throws IOException,
AutomationException
Note that when removing an effect that is always set, the ;property default effect value is automatically restored; and removing an effect that is not set by default, really removes the property effect.
removeEffect in interface INgPropertyeffect - A com.esri.arcgis.schematic.esriNgPropertyEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProperty.isEffectSet(int),
INgProperty.setEffect(int, java.lang.Object),
INgProperty.getEffect(int)
public boolean isEffectSet(int effect)
throws IOException,
AutomationException
By default, Schematics automatically sets default values for some property effects (see the List of the property effect default values, below). For all these effects, the IsEffectSet method returns True. For the other effects (those that are not automatically set by default), the IsEffectSet method returns True only if the effect has been set:
- Either when defining the property's characteristics in ArcGIS Schematics Designer
- Or by calling the SetEffect method in the project code.
List of the property effect default values
esriNgPropertyDecimalPrecision: -1
esriNgPropertyLabelDisplayMode: esriNgDisplayPropertyValue
esriNgPropertyLabelPlacement: esriNgAbove
esriNgPropertyLabelPort: 0
esriNgPropertyLegendNotes: nothing. But, by default, Schematics displays the property name
esriNgPropertyLegendVisibility: esriNgVisible
esriNgPropertyStatus: esriNgEnabled
esriNgPropertyStringLenght: -1
esriNgPropertyValueType: esriNgFloatPropertyValue, esriNgIntegerPropertyValue or esriNgStringPropertyValue. This parameter is fixed when the property is created.
For more details, see Property Effects Definition.
isEffectSet in interface INgPropertyeffect - A com.esri.arcgis.schematic.esriNgPropertyEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProperty.removeEffect(int),
INgProperty.setEffect(int, java.lang.Object),
INgProperty.getEffect(int)
public INgElementType getElementType()
throws IOException,
AutomationException
getElementType in interface INgPropertyIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getProperties(),
INgElementType.createProperty(String, int, int, int)
public INgFlagModel getDisplayFlagModel()
throws IOException,
AutomationException
getDisplayFlagModel in interface INgPropertyIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDisplayFlagModel(INgFlagModel pVal)
throws IOException,
AutomationException
setDisplayFlagModel in interface INgPropertypVal - A reference to a com.esri.arcgis.schematic.INgFlagModel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void delete()
throws IOException,
AutomationException
delete in interface INgPropertyIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.createProperty(String, int, int, int)
public INgAttribute getAssociatedAttribute()
throws IOException,
AutomationException
getAssociatedAttribute in interface INgPropertyIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.getAssociatedPropertyAttribute(String)
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class com.esri.arcgis.interop.DispatchIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class com.esri.arcgis.interop.DispatchIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||