|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.schematic.INgFlagProxy
public class INgFlagProxy
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,
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
|---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E |
| Constructor Summary | |
|---|---|
|
INgFlagProxy()
|
|
INgFlagProxy(Object obj)
|
protected |
INgFlagProxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
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 |
readExternal(ObjectInput in)
|
void |
removeEffect(int effect)
Removes the effect or restores the default effect 'effect' set for the flag (see esriNgFlagEffect). |
void |
removeListener(String iidStr,
Object theListener)
|
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. |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class com.esri.arcgis.interop.Dispatch |
|---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, queryInterface, release, setNativeMode, setPropertyByName, toString, vtblInvoke |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public INgFlagProxy()
public INgFlagProxy(Object obj)
throws IOException
IOException
protected INgFlagProxy(Object obj,
String iid)
throws IOException
IOException| Method Detail |
|---|
public void addListener(String iidStr,
Object theListener,
Object theSource)
throws IOException
addListener in class com.esri.arcgis.interop.DispatchIOException
public void removeListener(String iidStr,
Object theListener)
throws IOException
removeListener in class com.esri.arcgis.interop.DispatchIOException
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)
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class com.esri.arcgis.interop.DispatchIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class com.esri.arcgis.interop.DispatchIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||