|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface INgFlagModel
Provides access to members that control the flag model.
A flag model is a generic object used to generate flags that will be placed automatically on network elements. Each flag model contains the symbol used to represent a given flag plus automatic placement–angle and translation attributes.
To create a flag attached on an element, you have to identify its flag model.
INgFlag| Method Summary | |
|---|---|
void |
delete()
Deletes the flag model. |
Object |
getEffect(int effect)
Returns the effect 'effect' set for the flag model (see esriNgFlagModelEffect). |
String |
getName()
Name of the flag model. |
INgProject |
getProject()
Project of the flag model. |
boolean |
isEffectSet(int effect)
Indicates if the effect 'effect' related to the flag model is set (see esriNgFlagModelEffect). |
void |
removeEffect(int effect)
Removes the effect or restores the default effect 'effect' set for the flag model (see esriNgFlagModelEffect). |
void |
setEffect(int effect,
Object effValue)
Modifies the effect 'effect' set for the flag model (see esriNgFlagModelEffect). |
void |
setName(String pVal)
Name of the flag model. |
| Method Detail |
|---|
String getName()
throws IOException,
AutomationException
This name is defined when the flag model is created:
- either by calling the INgProjectBuilder CreateFlagModel method in the code,
- or when the flag model is created through ArcGIS Schematics Designer.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setName(String pVal)
throws IOException,
AutomationException
pVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object getEffect(int effect)
throws IOException,
AutomationException
effect - A com.esri.arcgis.schematic.esriNgFlagModelEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgFlagModel.setEffect(int, java.lang.Object),
INgFlagModel.isEffectSet(int),
INgFlagModel.removeEffect(int)
void setEffect(int effect,
Object effValue)
throws IOException,
AutomationException
effect - A com.esri.arcgis.schematic.esriNgFlagModelEffect constant (in)effValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgFlagModel.getEffect(int),
INgFlagModel.isEffectSet(int),
INgFlagModel.removeEffect(int)
void removeEffect(int effect)
throws IOException,
AutomationException
Note that removing an effect that is always set, returns to the default effect value and removing an effect that is not set by default, really removes the effect: the effect is not set any more!
effect - A com.esri.arcgis.schematic.esriNgFlagModelEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgFlagModel.getEffect(int),
INgFlagModel.setEffect(int, java.lang.Object),
INgFlagModel.isEffectSet(int)
boolean isEffectSet(int effect)
throws IOException,
AutomationException
By default, Schematics automatically sets default values for some flag model effects (see the List of the flag model effect default values, below). For all these effects, the IsEffectSet method returns TRUE. For the others effects (those that are not automatically set by Schematics), the IsEffectSet method returns TRUE only if the effect has been set either through Designer during its associated flag model effects definition, or when calling the SetEffect method in the code.
List of the flag model effect default values
esriNgFlagModelDetectability: esriNgDetectable
esriNgFlagModelHighlightedState: esriNgNotHighlighted
esriNgFlagModelPriority: 301 or more
esriNgFlagModelSelectability: esriNgSelectable
esriNgFlagModelVisibility: esriNgVisible
esriNgFlagModelMobility: esriNgMovable
esriNgFlagModelResizability: esriNgResizable
esriNgFlagModelPositionOnSegment: 0.5
esriNgFlagModelShiftAngle: 0
esriNgFlagModelShiftDistance: 0
esriNgFlagModelXShift: 0
esriNgFlagModelYShift: 0
For more details, see Flag Model Effects Constants Definition.
effect - A com.esri.arcgis.schematic.esriNgFlagModelEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgFlagModel.getEffect(int),
INgFlagModel.setEffect(int, java.lang.Object),
INgFlagModel.removeEffect(int)
void delete()
throws IOException,
AutomationException
When deleting a flag model, the associations between this flag model object and the element types its was associated with, and the associations between this flag model object and the elements it was assigned to are automatically removed.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgProject getProject()
throws IOException,
AutomationException
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 | ||||||||