|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.schematic.NgDiscreteFilter
public class NgDiscreteFilter
Graphic discrete filter object.
| Constructor Summary | |
|---|---|
NgDiscreteFilter(Object obj)
Construct a NgDiscreteFilter using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
|---|---|
void |
addPatternModel(INgPatternModel patternModel)
Relates the pattern model 'patternModel' to the discrete property filter. |
boolean |
equals(Object o)
Compare this object with another |
Object |
getEffect(int effect)
Returns the effect 'effect' set for the discrete property filter (see esriNgDiscreteFilterEffect). |
INgFilterEffects |
getFilterEffects()
List of the effects defined for the discrete property filter. |
String |
getName()
Name of the discrete property filter. |
int |
getNumber()
Number associated with the discrete property filter. |
INgPatternModels |
getPatternModels()
List of the pattern models related to the discrete property filter. |
INgDiscreteProperty |
getProperty()
Discrete property related to the discrete property filter. |
Object |
getSubSymbolEffect(String subName,
int effect)
Returns the effect 'effect' set for the sub-symbol named 'subName' (see esriNgSubSymbolEffect) inside the symbol used to represent the discrete property filter. |
int |
getType()
Type of the property filter. |
int |
hashCode()
the hashcode for this object |
boolean |
isEffectSet(int effect)
Indicates if the effect 'effect' related to the discrete property filter is set (see esriNgDiscreteFilterEffect). |
boolean |
isSubSymbolEffectSet(String subName,
int effect)
Indicates if the effect 'effect' related to the sub-symbol named 'subName' inside the symbol used to represent the discrete property filter is set (see esriNgSubSymbolEffect). |
void |
removeEffect(int effect)
Removes the effect or restores the default effect 'effect' set for the discrete property filter (see esriNgDiscreteFilterEffect). |
void |
removePatternModel(INgPatternModel patternModel)
Removes the relation between the discrete property filter and the pattern model 'patterModel'. |
void |
removePatternModels()
Removes the relations between the discrete property filter and all its pattern models. |
void |
removeSubSymbolEffect(String subName,
int effect)
Removes the effect 'effect' for the sub-symbol named 'subName' inside the symbol used to represent the discrete property filter. |
void |
setEffect(int effect,
Object effValue)
Modifies the effect 'effect' set for the discrete property filter (see esriNgDiscreteFilterEffect). |
void |
setName(String pVal)
Name of the discrete property filter. |
void |
setSubSymbolEffect(String subName,
int effect,
Object effValue)
Sets the effect 'effect' for the sub-symbol named 'subName' (see esriNgSubSymbolEffect) inside the symbol used to represent the discrete property filter. |
| 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 NgDiscreteFilter(Object obj)
throws IOException
obj to NgDiscreteFilter. *
NgDiscreteFilter o = (NgDiscreteFilter)obj; // will not work
NgDiscreteFilter o = new NgDiscreteFilter(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
NgDiscreteFilter theNgDiscreteFilter = (NgDiscreteFilter) obj;| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public int getNumber()
throws IOException,
AutomationException
This number is defined when the discrete filter is created:
- either by calling the INgDiscreteProperty AddFilter method in the program code,
- or through ArcGIS Schematics Designer, when the discrete filter has been created.
Contrary to the Name property, the Number property cannot be redefined.
getNumber in interface INgDiscreteFiltergetNumber in interface INgPropertyFilterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgPropertyFilter.getName()
public String getName()
throws IOException,
AutomationException
This name is defined when the discrete filter is created:
- either by calling the INgDiscreteProperty AddFilter method in the program code,
- or through ArcGIS Schematics Designer, when the discrete filter has been created.
getName in interface INgDiscreteFiltergetName in interface INgPropertyFilterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiscreteProperty.addFilter(int, String, java.lang.Object)
public void setName(String pVal)
throws IOException,
AutomationException
setName in interface INgDiscreteFiltersetName in interface INgPropertyFilterpVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getEffect(int effect)
throws IOException,
AutomationException
getEffect in interface INgDiscreteFiltereffect - A com.esri.arcgis.schematic.esriNgDiscreteFilterEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiscreteFilter.setEffect(int, java.lang.Object),
INgDiscreteFilter.isEffectSet(int),
INgDiscreteFilter.removeEffect(int)
public void setEffect(int effect,
Object effValue)
throws IOException,
AutomationException
setEffect in interface INgDiscreteFiltereffect - A com.esri.arcgis.schematic.esriNgDiscreteFilterEffect constant (in)effValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiscreteFilter.isEffectSet(int),
INgDiscreteFilter.removeEffect(int),
INgDiscreteFilter.getEffect(int)
public void removeEffect(int effect)
throws IOException,
AutomationException
Note that, if removing an effect that is not set by default really removes the discrete filter effect, removing an effect that is always set returns the discrete filter effect to its default effect value.
removeEffect in interface INgDiscreteFiltereffect - A com.esri.arcgis.schematic.esriNgDiscreteFilterEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiscreteFilter.setEffect(int, java.lang.Object),
INgDiscreteFilter.isEffectSet(int),
INgDiscreteFilter.getEffect(int)
public boolean isEffectSet(int effect)
throws IOException,
AutomationException
By default, Schematics automatically sets default values for some discrete filter effects (see the List of the discrete filter effect default values, below). For all these effects, the IsEffectSet method returns TRUE.
For the others effects (those that are not automatically set), the IsEffectSet method returns TRUE only if the effect has been set:
- either when the discrete filter's characteristics have been set through Schematics Designer,
- or by calling the SetEffect method in the code.
List of the discrete filter effect default values
For details on all possible discrete filter effects, see Constants for Discrete Filter Effects.
isEffectSet in interface INgDiscreteFiltereffect - A com.esri.arcgis.schematic.esriNgDiscreteFilterEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiscreteFilter.setEffect(int, java.lang.Object),
INgDiscreteFilter.removeEffect(int),
INgDiscreteFilter.getEffect(int)
public void setSubSymbolEffect(String subName,
int effect,
Object effValue)
throws IOException,
AutomationException
setSubSymbolEffect in interface INgDiscreteFiltersubName - 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.INgDiscreteFilter,
INgDiscreteFilter.removeSubSymbolEffect(String, int)
public void removeSubSymbolEffect(String subName,
int effect)
throws IOException,
AutomationException
removeSubSymbolEffect in interface INgDiscreteFiltersubName - 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.INgDiscreteFilter,
INgDiscreteFilter.getSubSymbolEffect(String, int)
public INgDiscreteProperty getProperty()
throws IOException,
AutomationException
getProperty in interface INgDiscreteFilterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getSubSymbolEffect(String subName,
int effect)
throws IOException,
AutomationException
The sub-symbol's effects may be set
- either when the discrete filter's characteristics have been set through Schematics Designer,
- or by calling the INgDiscreteFilter SetSubSymbolEffect method in the code.
getSubSymbolEffect in interface INgDiscreteFiltersubName - 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.INgDiscreteFilter,
INgDiscreteFilter.removeSubSymbolEffect(String, int)
public boolean isSubSymbolEffectSet(String subName,
int effect)
throws IOException,
AutomationException
Returns TRUE if the effect 'effect' for the subName sub-symbol inside the symbol used for the property discrete filter has been set; else it returns FALSE (see esriNgSubSymbolEffect topic).
The sub-symbol's effect can be set:
- either when the discrete filter's characteristics have been set through Schematics Designer,
- or by calling the INgDiscreteFilter SetSubSymbolEffect method in the code.
isSubSymbolEffectSet in interface INgDiscreteFiltersubName - 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.INgDiscreteFilter.removeSubSymbolEffect(String, int),
INgDiscreteFilter.setSubSymbolEffect(String, int, java.lang.Object)
public INgPatternModels getPatternModels()
throws IOException,
AutomationException
getPatternModels in interface INgDiscreteFilterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgBoundedFilter.getPatternModels(),
INgLink.getPatternModels(),
INgElementType.getPatternModels()
public void removePatternModels()
throws IOException,
AutomationException
removePatternModels in interface INgDiscreteFilterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiscreteFilter.removePatternModel(com.esri.arcgis.schematic.INgPatternModel)
public void removePatternModel(INgPatternModel patternModel)
throws IOException,
AutomationException
removePatternModel in interface INgDiscreteFilterpatternModel - A reference to a com.esri.arcgis.schematic.INgPatternModel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiscreteFilter.removePatternModels(),
INgDiscreteFilter.addPatternModel(com.esri.arcgis.schematic.INgPatternModel)
public void addPatternModel(INgPatternModel patternModel)
throws IOException,
AutomationException
By associating a pattern model with a discrete property filter defined for a link element type, all the links associated with this discrete filter will be displayed with the patterns from this pattern model.
addPatternModel in interface INgDiscreteFilterpatternModel - 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.addPatternModel(com.esri.arcgis.schematic.INgPatternModel),
INgBoundedFilter.addPatternModel(com.esri.arcgis.schematic.INgPatternModel),
INgLink.addPatternModel(com.esri.arcgis.schematic.INgPatternModel)
public INgFilterEffects getFilterEffects()
throws IOException,
AutomationException
Note that if this method returns all the discrete filter effects, you can get a given effect by using the GetEffect method.
getFilterEffects in interface INgDiscreteFilterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiscreteFilter.getEffect(int)
public int getType()
throws IOException,
AutomationException
This depends on the type of the associated property: For a discrete property, the filter type is esriNgDiscreteFilterType and for a bounded property, esriNgBoundedFilterType.
getType in interface INgPropertyFilterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiscreteFilter,
INgBoundedFilter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||