|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface INgFlag
Provides access to members that control the flag.
A flag is a graphic object attached to a network element. Flags are often used to display labels associated with an element. Flags are an implementation of a flag model. A flag is automatically inserted on, and attached to, an element according to the rules defined in the model it is based on. A flag can be associated with any kind of network element (node, link, and drawing). To insert a flag on several elements, you must associate its base model with the corresponding element group. Different flags based on different models can be associated with the same element. When an element is moved, its associated flag is automatically moved. However, moving a flag does not move the element but causes its connecting pole to be redrawn.
INgFlagModel| Method Summary | |
|---|---|
void |
delete()
Removes the flag. |
void |
getBoundingBox(INgView view,
INgPoint[] upperLeftCorner,
INgPoint[] lowerRightCorner)
Returns the 'upperLeftCorner' and 'lowerRightCorner' points defining the bounding box of the flag. |
Object |
getEffect(int effect)
Returns the effect 'effect' set for the flag (see esriNgFlagEffect). |
INgElement |
getElement()
Element the flag is attached to. |
INgFlagModel |
getFlagModel()
Flag model that implements the flag. |
INgPole |
getPole()
Pole connecting the flag to the element it is attached to. |
double |
getX()
X cartesian coordinate of the flag. |
double |
getY()
Y cartesian coordinate of the flag. |
boolean |
isEffectSet(int effect)
Indicates if the effect 'effect' related to the flag is set (see esriNgFlagEffect). |
boolean |
isMoved()
Indicates if the flag has been moved. |
boolean |
isSelected()
Indicates if the flag is currently selected. |
void |
move(double x,
double y,
int moveMode)
Moves the flag to the (X,Y) relative or absolute position. |
void |
removeEffect(int effect)
Removes the effect or restores the default effect 'effect' set for the flag (see esriNgFlagEffect). |
void |
select(boolean redraw)
Selects the flag in all the views where it displays and redraws it. |
void |
setEffect(int effect,
Object effValue)
Modifies the effect 'effect' set for the flag (see esriNgFlagEffect). |
void |
unselect(boolean redraw)
Deselects the flag in all the views where it displays and redraws it. |
| Method Detail |
|---|
INgFlagModel getFlagModel()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
double getX()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
double getY()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgElement getElement()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
INgPole getPole()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void move(double x,
double y,
int moveMode)
throws IOException,
AutomationException
The values taken by the moveMode parameter are detailed in the esriNgMoveMode section. The default value for moveMode is esriNgAbsoluteMove, which means that, by default, the flag is moved to the (X,Y) absolute position.
NOTE: When an element is moved, its associated flag(s) is/are automatically moved. However, moving a flag does not move the element, but causes its connecting pole to be redrawn.
x - The x (in)y - The y (in)moveMode - A com.esri.arcgis.schematic.esriNgMoveMode constant (in, optional, pass 2085 if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgFlag.isMoved()
void delete()
throws IOException,
AutomationException
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.esriNgFlagEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgFlag.isEffectSet(int),
INgFlag.removeEffect(int),
INgFlag.setEffect(int, java.lang.Object)
void setEffect(int effect,
Object effValue)
throws IOException,
AutomationException
effect - A com.esri.arcgis.schematic.esriNgFlagEffect constant (in)effValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgFlag.isEffectSet(int),
INgFlag.removeEffect(int),
INgFlag.getEffect(int)
void removeEffect(int effect)
throws IOException,
AutomationException
Note that removing an effect that is always set, returns the flag effect to the default effect value and removing an effect that is not set by default, really removes the flag effect: the effect is not set any more!
effect - A com.esri.arcgis.schematic.esriNgFlagEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgFlag.isEffectSet(int),
INgFlag.getEffect(int),
INgFlag.setEffect(int, java.lang.Object)
boolean isEffectSet(int effect)
throws IOException,
AutomationException
By default, Schematics automatically sets default values for some flag effects (see the List of the flag 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 effect default values
esriNgFlagDetectability: esriNgDetectable
esriNgFlagHighlightedState: esriNgNotHighlighted
esriNgFlagPriority: 301 or more
esriNgFlagSelectability: esriNgSelectable
esriNgFlagVisibility: esriNgVisible
esriNgFlagMobility: esriNgMovable
esriNgFlagResizability: esriNgResizable
For more details, see Flag Effects Constants Definition.
effect - A com.esri.arcgis.schematic.esriNgFlagEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgFlag.removeEffect(int),
INgFlag.getEffect(int),
INgFlag.setEffect(int, java.lang.Object)
void getBoundingBox(INgView view,
INgPoint[] upperLeftCorner,
INgPoint[] lowerRightCorner)
throws IOException,
AutomationException
view - A reference to a com.esri.arcgis.schematic.INgView (in)upperLeftCorner - A reference to a com.esri.arcgis.schematic.INgPoint (out: use single element array)lowerRightCorner - A reference to a com.esri.arcgis.schematic.INgPoint (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isSelected()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgFlag.unselect(boolean),
INgFlag.select(boolean)
void select(boolean redraw)
throws IOException,
AutomationException
redraw - The redraw (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgFlag.isSelected(),
INgFlag.unselect(boolean)
void unselect(boolean redraw)
throws IOException,
AutomationException
redraw - The redraw (in, optional, pass true if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgFlag.isSelected(),
INgFlag.select(boolean)
boolean isMoved()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgFlag.move(double, double, int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||