|
|||||||||
| 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.INgPatternModelProxy
public class INgPatternModelProxy
Provides access to members that control the pattern model.
A pattern is a symbol or a text that is repeated one or more times along a link path route. Adding a pattern along a link path route can be an interesting alternative to the basic graphic effects (color, style, width) that can be set to define the links display. The pattern is drawn on the link according to the rules defined in the model it is based on. There are three types of pattern styles: continuous, discrete, and origin/endpoint patterns. Directed patterns follow the link direction, going from the origin point to the endpoint.
| Field Summary |
|---|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
|---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E |
| Constructor Summary | |
|---|---|
|
INgPatternModelProxy()
|
|
INgPatternModelProxy(Object obj)
|
protected |
INgPatternModelProxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
delete()
Deletes the pattern model. |
Object |
getEffect(int effect)
Returns the effect 'effect' set for the pattern model (see esriNgPatternModelEffect). |
String |
getName()
Name of the pattern model. |
INgProject |
getProject()
Project of the pattern model. |
int |
getType()
Type of the pattern model. |
boolean |
isEffectSet(int effect)
Indicates if the effect 'effect' related to the pattern model is set (see esriNgPatternModelEffect). |
void |
readExternal(ObjectInput in)
|
void |
removeEffect(int effect)
Removes the effect or restores the default effect 'effect' for the pattern model (see esriNgPatternModelEffect). |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setEffect(int effect,
Object effValue)
Modifies the effect 'effect' set for the pattern model (see esriNgPatternModelEffect). |
void |
setName(String pVal)
Name of the pattern 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 |
|---|
public INgPatternModelProxy()
public INgPatternModelProxy(Object obj)
throws IOException
IOException
protected INgPatternModelProxy(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 String getName()
throws IOException,
AutomationException
This name is defined when the pattern model is created:
- either by calling the INgProjectBuilder CreatePatternModel in the program code,
- or through ArcGIS Schematics Designer.
getName in interface INgPatternModelIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setName(String pVal)
throws IOException,
AutomationException
setName in interface INgPatternModelpVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getType()
throws IOException,
AutomationException
getType in interface INgPatternModelIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getEffect(int effect)
throws IOException,
AutomationException
getEffect in interface INgPatternModeleffect - A com.esri.arcgis.schematic.esriNgPatternModelEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgPatternModel.removeEffect(int),
INgPatternModel.setEffect(int, java.lang.Object),
INgPatternModel.isEffectSet(int)
public void setEffect(int effect,
Object effValue)
throws IOException,
AutomationException
setEffect in interface INgPatternModeleffect - A com.esri.arcgis.schematic.esriNgPatternModelEffect constant (in)effValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgPatternModel.removeEffect(int),
INgPatternModel.isEffectSet(int),
INgPatternModel.getEffect(int)
public void removeEffect(int effect)
throws IOException,
AutomationException
Note that when removing an effect that is always set, the pattern model default effect value is automatically restored; and removing an effect that is not set by default, really removes the pattern model effect.
removeEffect in interface INgPatternModeleffect - A com.esri.arcgis.schematic.esriNgPatternModelEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgPatternModel.setEffect(int, java.lang.Object),
INgPatternModel.isEffectSet(int),
INgPatternModel.getEffect(int)
public boolean isEffectSet(int effect)
throws IOException,
AutomationException
By default, Schematics automatically sets default values for some pattern model effects (see the List of the pattern model effects default values, below). For all these effects, the IsEffectSet method returns True. For the other effects (those that are not automatically set by default), the IsEffectSet method returns True only if the effect has been set:
- Either, by the application manager when defining the pattern model's characteristics in ArcGIS Schematics Designer
- Or, by calling the SetEffect method in the project code.
List of the pattern model effect default values
esriNgPatternModelColorMode: esriNgPatternModelNotSlave
esriNgPatternModelDrawMode: esriNgPatternModelContinuous
esriNgPatternModelOrientationMode: esriNgOriented
esriNgPatternModelPositionningMode: esriNgSegmentRelativeSpacing
esriNgPatternModelMaxItemsOnSegment: 1
esriNgPatternModelShiftDistance: 0
esriNgPatternModelSpacing: 0.5
For more details, see Pattern Model Effects Definitions.
isEffectSet in interface INgPatternModeleffect - A com.esri.arcgis.schematic.esriNgPatternModelEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgPatternModel.removeEffect(int),
INgPatternModel.setEffect(int, java.lang.Object),
INgPatternModel.getEffect(int)
public void delete()
throws IOException,
AutomationException
This method automatically removes the association between this pattern model object and:
- the element types which it was associated with,
- the links it was assigned
delete in interface INgPatternModelIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgLink.removePatternModel(com.esri.arcgis.schematic.INgPatternModel),
INgElementType.removePatternModel(com.esri.arcgis.schematic.INgPatternModel)
public INgProject getProject()
throws IOException,
AutomationException
getProject in interface INgPatternModelIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
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 | ||||||||