|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.schematic.NgFlag
public class NgFlag
Graphic flag object.
| Constructor Summary | |
|---|---|
NgFlag(Object obj)
Construct a NgFlag using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
|---|---|
void |
delete()
Removes the flag. |
boolean |
equals(Object o)
Compare this object with another |
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. |
int |
hashCode()
the hashcode for this object |
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. |
| 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 NgFlag(Object obj)
throws IOException
obj to NgFlag. *
NgFlag o = (NgFlag)obj; // will not work
NgFlag o = new NgFlag(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
NgFlag theNgFlag = (NgFlag) obj;| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public INgFlagModel getFlagModel()
throws IOException,
AutomationException
getFlagModel in interface INgFlagIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getX()
throws IOException,
AutomationException
getX in interface INgFlagIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getY()
throws IOException,
AutomationException
getY in interface INgFlagIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgElement getElement()
throws IOException,
AutomationException
getElement in interface INgFlagIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgPole getPole()
throws IOException,
AutomationException
getPole in interface INgFlagIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
move in interface INgFlagx - 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()
public void delete()
throws IOException,
AutomationException
delete in interface INgFlagIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getEffect(int effect)
throws IOException,
AutomationException
getEffect in interface INgFlageffect - 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)
public void setEffect(int effect,
Object effValue)
throws IOException,
AutomationException
setEffect in interface INgFlageffect - 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)
public 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!
removeEffect in interface INgFlageffect - 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)
public 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.
isEffectSet in interface INgFlageffect - 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)
public void getBoundingBox(INgView view,
INgPoint[] upperLeftCorner,
INgPoint[] lowerRightCorner)
throws IOException,
AutomationException
getBoundingBox in interface INgFlagview - 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.
public boolean isSelected()
throws IOException,
AutomationException
isSelected in interface INgFlagIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgFlag.unselect(boolean),
INgFlag.select(boolean)
public void select(boolean redraw)
throws IOException,
AutomationException
select in interface INgFlagredraw - 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)
public void unselect(boolean redraw)
throws IOException,
AutomationException
unselect in interface INgFlagredraw - 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)
public boolean isMoved()
throws IOException,
AutomationException
isMoved in interface INgFlagIOException - 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 | ||||||||