|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.schematic.NgTextualProperty
public class NgTextualProperty
Graphic textual property object.
| Constructor Summary | |
|---|---|
NgTextualProperty(Object obj)
Construct a NgTextualProperty using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
|---|---|
void |
delete()
Deletes the property. |
boolean |
equals(Object o)
Compare this object with another |
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 textual property applies to. |
String |
getName()
Name of the textual property. |
int |
getType()
Type of the property (see esriNgPropertyType). |
int |
hashCode()
the hashcode for this object |
boolean |
isEffectSet(int effect)
Indicates if the effect 'effect' related to the property is set (see esriNgPropertyEffect). |
void |
removeEffect(int effect)
Removes the effect or restores the default effect 'effect' set for the property (see esriNgPropertyEffect). |
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 textual property. |
| 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 NgTextualProperty(Object obj)
throws IOException
obj to NgTextualProperty. *
NgTextualProperty o = (NgTextualProperty)obj; // will not work
NgTextualProperty o = new NgTextualProperty(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
NgTextualProperty theNgTextualProperty = (NgTextualProperty) 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 textual property is created
- Either by calling the INgElementType CreateProperty method in the program code,
- Or when it is created through ArcGIS Schematics Designer GUI
getName in interface INgPropertygetName in interface INgTextualPropertyIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setName(String pVal)
throws IOException,
AutomationException
setName in interface INgPropertysetName in interface INgTextualPropertypVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgElementType getElementType()
throws IOException,
AutomationException
getElementType in interface INgPropertygetElementType in interface INgTextualPropertyIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.createProperty(String, int, int, int)
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 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||