com.esri.arcgis.schematic
Class INgFlagModelProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.schematic.INgFlagModelProxy
All Implemented Interfaces:
INgFlagModel, Externalizable, Serializable

public class INgFlagModelProxy
extends com.esri.arcgis.interop.Dispatch
implements INgFlagModel, Serializable

Provides access to members that control the flag model.

Description

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.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
INgFlag, Serialized Form

Field Summary
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E
 
Constructor Summary
  INgFlagModelProxy()
           
  INgFlagModelProxy(Object obj)
           
protected INgFlagModelProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 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 readExternal(ObjectInput in)
           
 void removeEffect(int effect)
          Removes the effect or restores the default effect 'effect' set for the flag model (see esriNgFlagModelEffect).
 void removeListener(String iidStr, Object theListener)
           
 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.
 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

INgFlagModelProxy

public INgFlagModelProxy()

INgFlagModelProxy

public INgFlagModelProxy(Object obj)
                  throws IOException
Throws:
IOException

INgFlagModelProxy

protected INgFlagModelProxy(Object obj,
                            String iid)
                     throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

getName

public String getName()
               throws IOException,
                      AutomationException
Name of the flag model.

Description

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.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getName in interface INgFlagModel
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setName

public void setName(String pVal)
             throws IOException,
                    AutomationException
Name of the flag model.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setName in interface INgFlagModel
Parameters:
pVal - The pVal (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getEffect

public Object getEffect(int effect)
                 throws IOException,
                        AutomationException
Returns the effect 'effect' set for the flag model (see esriNgFlagModelEffect).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getEffect in interface INgFlagModel
Parameters:
effect - A com.esri.arcgis.schematic.esriNgFlagModelEffect constant (in)
Returns:
A Variant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgFlagModel.setEffect(int, java.lang.Object), INgFlagModel.isEffectSet(int), INgFlagModel.removeEffect(int)

setEffect

public void setEffect(int effect,
                      Object effValue)
               throws IOException,
                      AutomationException
Modifies the effect 'effect' set for the flag model (see esriNgFlagModelEffect).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setEffect in interface INgFlagModel
Parameters:
effect - A com.esri.arcgis.schematic.esriNgFlagModelEffect constant (in)
effValue - A Variant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgFlagModel.getEffect(int), INgFlagModel.isEffectSet(int), INgFlagModel.removeEffect(int)

removeEffect

public void removeEffect(int effect)
                  throws IOException,
                         AutomationException
Removes the effect or restores the default effect 'effect' set for the flag model (see esriNgFlagModelEffect).

Description

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!

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
removeEffect in interface INgFlagModel
Parameters:
effect - A com.esri.arcgis.schematic.esriNgFlagModelEffect constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgFlagModel.getEffect(int), INgFlagModel.setEffect(int, java.lang.Object), INgFlagModel.isEffectSet(int)

isEffectSet

public boolean isEffectSet(int effect)
                    throws IOException,
                           AutomationException
Indicates if the effect 'effect' related to the flag model is set (see esriNgFlagModelEffect).

Description

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.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isEffectSet in interface INgFlagModel
Parameters:
effect - A com.esri.arcgis.schematic.esriNgFlagModelEffect constant (in)
Returns:
The isSet
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
INgFlagModel.getEffect(int), INgFlagModel.setEffect(int, java.lang.Object), INgFlagModel.removeEffect(int)

delete

public void delete()
            throws IOException,
                   AutomationException
Deletes the flag model.

Description

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.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
delete in interface INgFlagModel
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getProject

public INgProject getProject()
                      throws IOException,
                             AutomationException
Project of the flag model.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getProject in interface INgFlagModel
Returns:
A reference to a com.esri.arcgis.schematic.INgProject
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class com.esri.arcgis.interop.Dispatch
Throws:
IOException
ClassNotFoundException