|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.schematic.NgDiscreteProperty
public class NgDiscreteProperty
Graphic discrete property object.
| Constructor Summary | |
|---|---|
NgDiscreteProperty(Object obj)
Construct a NgDiscreteProperty using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
|---|---|
INgDiscreteFilter |
addFilter(int filterNum,
String name,
Object value)
Creates the filter 'filterNum' named 'name' for the property value 'value'. |
void |
delete()
Deletes the property. |
void |
deleteFilter(int filterNum)
Deletes the discrete filter 'filterNum'. |
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). |
INgElements |
getElementsByFilter(INgDiagram diagram,
int filterNum,
int mode)
Returns all the elements contained in the diagram 'Diagram' that match the 'filternum' discrete filter (mode=esriNgFilterEqual) or that do not match the 'filterNum' discrete filter (mode = esriNgFilterDifferent) (see esriNgFilterSelectionMode). |
INgElementType |
getElementType()
Element type the discrete property applies to. |
INgDiscreteFilters |
getFilters()
Collection of the discrete filters defined for the discrete property. |
String |
getName()
Name of the discrete 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 discrete 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 NgDiscreteProperty(Object obj)
throws IOException
obj to NgDiscreteProperty. *
NgDiscreteProperty o = (NgDiscreteProperty)obj; // will not work
NgDiscreteProperty o = new NgDiscreteProperty(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
NgDiscreteProperty theNgDiscreteProperty = (NgDiscreteProperty) 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 discrete property is created:
- either by calling the INgElementType CreateProperty method in the program code,
- or through ArcGIS Schematics Designer, when the discrete property has been created.
getName in interface INgDiscretePropertygetName 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 INgDiscretePropertysetName in interface INgPropertypVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgDiscreteFilters getFilters()
throws IOException,
AutomationException
getFilters in interface INgDiscretePropertyIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiscreteProperty.addFilter(int, String, java.lang.Object)
public INgElements getElementsByFilter(INgDiagram diagram,
int filterNum,
int mode)
throws IOException,
AutomationException
getElementsByFilter in interface INgDiscretePropertydiagram - A reference to a com.esri.arcgis.schematic.INgDiagram (in)filterNum - The filterNum (in)mode - A com.esri.arcgis.schematic.esriNgFilterSelectionMode constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgDiscreteFilter addFilter(int filterNum,
String name,
Object value)
throws IOException,
AutomationException
addFilter in interface INgDiscretePropertyfilterNum - The filterNum (in)name - The name (in)value - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiscreteProperty.getFilters(),
INgDiscreteProperty.deleteFilter(int)
public void deleteFilter(int filterNum)
throws IOException,
AutomationException
deleteFilter in interface INgDiscretePropertyfilterNum - The filterNum (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiscreteProperty.addFilter(int, String, java.lang.Object)
public INgElementType getElementType()
throws IOException,
AutomationException
getElementType in interface INgDiscretePropertygetElementType 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 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 | ||||||||