|
|||||||||
| 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.INgLinkProxy
public class INgLinkProxy
Provides access to members that control the graphic link.
A link is an edge in a network graph. A link can go through a number of “link points” (also called intermediate points or vertices) that modify its path. It is represented either by a direct single line segment or by several line segments passing through one or several link points. The path between two link points may be graphically broken. All types of patterns may be drawn up along a link path that may also have any given line style (dot, dash, and so forth) and width. A link can have a direction: Arrows placed on its start and end points show this. If a link path goes through one or several nodes, it can be modified so as to allow the nodes to be automatically bypassed. The common properties of a link are stored and defined by its related link type.
INgElement,
ISchematicLink,
INgSubLink,
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
|---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E |
| Constructor Summary | |
|---|---|
|
INgLinkProxy()
|
|
INgLinkProxy(Object obj)
|
protected |
INgLinkProxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
addPatternModel(INgPatternModel patternModel)
Adds the pattern model 'patternModel' on the link. |
void |
addPoint(int numPoint,
INgPoint point)
Adds the link point 'numPoint' (that is, adds the vertex 'numpoint') at the position 'point' on the link. |
Object |
getCurrentEffect(int effect)
Returns the current 'effValue' value for the effect 'effect' set for the link (see esriNgLinkEffect). |
INgPatternModels |
getCurrentPatternModels()
List of the pattern models currently associated with the link. |
INgDiagram |
getDiagram()
Diagram that contains the link. |
Object |
getEffect(int effect)
Returns the effect 'effect' set for the link (see esriNgLinkEffect). |
INgElementType |
getElementType()
Element type that implements the link. |
INgNode |
getFromNode()
Origin node of the link. |
INgPoint |
getFromPoint(INgView view)
Point position where the link connects its origin node, if a port is not specified for the connection. |
int |
getFromPort()
Sequence number of the origin node port onto which the link snaps if a port is used for the connection. |
INgPoints |
getInitialPoints()
List of the intermediate points that initially defined the link path. |
String |
getName()
Name of the link. |
INgNodes |
getNodesOnLink()
List of the nodes-on-link related to the link. |
int |
getNumberOfPoints()
Number of intermediate points (vertices) along the link path. |
int |
getNumSegmentAtPoint(INgView view,
INgPoint point)
Returns the sequence number of the link's segment located at the position 'point' in the view 'view'. |
INgPatternModels |
getPatternModels()
List of the pattern models directly associated with the link. |
INgPoints |
getPoints(INgView view)
List of the intermediate points (vertices) that defines the link path (in the view 'view'). |
INgLinks |
getSubLinks()
List of the sub-links related to the link. |
INgNode |
getToNode()
End node of the link. |
INgPoint |
getToPoint(INgView view)
Point position where the link connects its end node, if a port is not specified for the connection. |
int |
getToPort()
Sequence number of the end node port onto which the link snaps if a port is used for the connection. |
boolean |
isEffectSet(int effect)
Indicates if the effect 'effect' related to the link is set (see esriNgLinkEffect). |
void |
movePoint(int numPoint,
double x,
double y,
int moveMode)
Moves the link point 'numPoint' at the relative or absolute (x,y) position. |
void |
readExternal(ObjectInput in)
|
void |
removeAllPoints()
Removes all of the link points (that is, all vertices) on the link. |
void |
removeEffect(int effect)
Removes the effect or restores the default effect 'effect' set for the link (see esriNgLinkEffect). |
void |
removeListener(String iidStr,
Object theListener)
|
void |
removePatternModel(INgPatternModel patternModel)
Removes the pattern model 'patternModel' assigned to the link. |
void |
removePoint(int numPoint)
Removes the 'numPoint' link point (that is, removes the vertex 'numpoint') on the link. |
void |
restoreInitialPosition()
Restores the link to its initially defined position (that is, with or without its initially defined vertices). |
void |
setEffect(int effect,
Object effValue)
Modifies the effect 'effect' set for the link (see esriNgLinkEffect). |
void |
setFromNode(INgNode pVal)
Origin node of the link. |
void |
setFromPort(int pVal)
Sequence number of the origin node port onto which the link snaps if a port is used for the connection. |
void |
setInitialPoints(INgPoints pVal)
List of the intermediate points that initially defined the link path. |
void |
setToNode(INgNode pVal)
End node of the link. |
void |
setToPort(int pVal)
Sequence number of the end node port onto which the link snaps if a port is used for the connection. |
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 INgLinkProxy()
public INgLinkProxy(Object obj)
throws IOException
IOException
protected INgLinkProxy(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 INgElementType getElementType()
throws IOException,
AutomationException
getElementType in interface INgLinkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getName()
throws IOException,
AutomationException
This name has been defined when the link has been created:
- Either by triggering the INgDiagram CreateLink method or INgProjectEvents NameOfDigitLink event in the project code,
- Or, when its related link element type has been defined through ArcGIS Schematics Designer.
getName in interface INgLinkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgDiagram getDiagram()
throws IOException,
AutomationException
getDiagram in interface INgLinkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgNode getFromNode()
throws IOException,
AutomationException
getFromNode in interface INgLinkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgLink.getFromPoint(com.esri.arcgis.schematic.INgView),
INgLink.getFromPort(),
INgLink.getToNode()
public void setFromNode(INgNode pVal)
throws IOException,
AutomationException
setFromNode in interface INgLinkpVal - A reference to a com.esri.arcgis.schematic.INgNode (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgNode getToNode()
throws IOException,
AutomationException
getToNode in interface INgLinkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgLink.getFromNode(),
INgLink.getToPort(),
INgLink.getToPoint(com.esri.arcgis.schematic.INgView)
public void setToNode(INgNode pVal)
throws IOException,
AutomationException
setToNode in interface INgLinkpVal - A reference to a com.esri.arcgis.schematic.INgNode (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getFromPort()
throws IOException,
AutomationException
getFromPort in interface INgLinkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgLink.getFromPoint(com.esri.arcgis.schematic.INgView),
INgLink.getFromNode(),
INgLink.getToPort()
public void setFromPort(int pVal)
throws IOException,
AutomationException
setFromPort in interface INgLinkpVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getToPort()
throws IOException,
AutomationException
getToPort in interface INgLinkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgLink.getFromPort(),
INgLink.getToNode(),
INgLink.getToPoint(com.esri.arcgis.schematic.INgView)
public void setToPort(int pVal)
throws IOException,
AutomationException
setToPort in interface INgLinkpVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgPoints getPoints(INgView view)
throws IOException,
AutomationException
getPoints in interface INgLinkview - A reference to a com.esri.arcgis.schematic.INgView (in, optional, pass 0 if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getNumberOfPoints()
throws IOException,
AutomationException
getNumberOfPoints in interface INgLinkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgLink.removePoint(int),
INgLink.getInitialPoints(),
INgLink.getPoints(com.esri.arcgis.schematic.INgView),
INgLink.addPoint(int, com.esri.arcgis.schematic.INgPoint)
public INgPoint getFromPoint(INgView view)
throws IOException,
AutomationException
getFromPoint in interface INgLinkview - A reference to a com.esri.arcgis.schematic.INgView (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgPoint getToPoint(INgView view)
throws IOException,
AutomationException
getToPoint in interface INgLinkview - A reference to a com.esri.arcgis.schematic.INgView (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addPoint(int numPoint,
INgPoint point)
throws IOException,
AutomationException
addPoint in interface INgLinknumPoint - The numPoint (in)point - A reference to a com.esri.arcgis.schematic.INgPoint (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgLink.removePoint(int),
INgLink.movePoint(int, double, double, int)
public void removePoint(int numPoint)
throws IOException,
AutomationException
removePoint in interface INgLinknumPoint - The numPoint (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgLink.removeAllPoints(),
INgLink.movePoint(int, double, double, int),
INgLink.addPoint(int, com.esri.arcgis.schematic.INgPoint)
public void removeAllPoints()
throws IOException,
AutomationException
removeAllPoints in interface INgLinkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgLink.removePoint(int),
INgLink.movePoint(int, double, double, int),
INgLink.addPoint(int, com.esri.arcgis.schematic.INgPoint)
public Object getEffect(int effect)
throws IOException,
AutomationException
Only the effects set by calling the SetEffect method on the INgLink interface in the project code will be returned when using the GetEffect method. If the GetEffect method returns no value, the GetCurrentEffect method can return a value. The effect returned in this case can have been set either when defining the related element type effects or the properties effects related to the link.
getEffect in interface INgLinkeffect - A com.esri.arcgis.schematic.esriNgLinkEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgLink.getCurrentEffect(int),
INgLink.removeEffect(int),
INgLink.setEffect(int, java.lang.Object),
INgLink.isEffectSet(int)
public void setEffect(int effect,
Object effValue)
throws IOException,
AutomationException
setEffect in interface INgLinkeffect - A com.esri.arcgis.schematic.esriNgLinkEffect constant (in)effValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgLink.getCurrentEffect(int),
INgLink.removeEffect(int),
INgLink.getEffect(int),
INgLink.isEffectSet(int)
public void removeEffect(int effect)
throws IOException,
AutomationException
Note that when removing an effect that is always set the link default effect value is automatically restored; and removing an effect that is not set by default, really removes the link effect.
removeEffect in interface INgLinkeffect - A com.esri.arcgis.schematic.esriNgLinkEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgLink.getCurrentEffect(int),
INgLink.setEffect(int, java.lang.Object),
INgLink.getEffect(int),
INgLink.isEffectSet(int)
public boolean isEffectSet(int effect)
throws IOException,
AutomationException
By default, Schematics automatically sets default values for some link effects (see the List of the default link effects values, below). For all these effects, the IsEffectSet method returns True.
For the others effects (those that are not automatically set by default), the IsEffectSet function returns True only if the effect was set by calling the INgLink SetEffect method in the project.
Note that if the IsEffectSet method returns False for a given effect (for example, esriNgLineColor), the GetEffect method returns no value BUT the GetCurrentEffect method can return a value! Indeed, the GetCurrentEffect method can return the link effect that come either from its related element type effects definition or from its related properties effects definition.
List of the default link effect values
esriNgLinkArrowMode: esriNgNoArrow
esriNgLinkDetectability: esriNgDetectable.
esriNgLinkHighlightedState: esriNgNotHighlighted
esriNgLinkMobility: esriNgMovable.
esriNgLinkPriority: 101 or more
esriNgLinkSelectability: esriNgSelectable
esriNgLinkVisibility: esriNgVisible
For more details, see the Link Effects Constants Definition.
isEffectSet in interface INgLinkeffect - A com.esri.arcgis.schematic.esriNgLinkEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgLink.getCurrentEffect(int),
INgLink.removeEffect(int),
INgLink.setEffect(int, java.lang.Object),
INgLink.getEffect(int)
public INgPoints getInitialPoints()
throws IOException,
AutomationException
getInitialPoints in interface INgLinkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgLink.getNumberOfPoints(),
INgLink.getPoints(com.esri.arcgis.schematic.INgView)
public void setInitialPoints(INgPoints pVal)
throws IOException,
AutomationException
setInitialPoints in interface INgLinkpVal - A reference to a com.esri.arcgis.schematic.INgPoints (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void restoreInitialPosition()
throws IOException,
AutomationException
These intermediate points (if they exist) are those stored in the InitialPoints link property
restoreInitialPosition in interface INgLinkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgDiagram.restoreInitialPosition(int, int)
public INgPatternModels getPatternModels()
throws IOException,
AutomationException
getPatternModels in interface INgLinkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgProject.getPatternModels(),
INgElementType.getPatternModels(),
INgLink
public void addPatternModel(INgPatternModel patternModel)
throws IOException,
AutomationException
This pattern model must have already been created. Note that if you want to display each link element of a specific element type with patterns, you can directly use INgElementType AddPatternModel method on the associated link element type.
addPatternModel in interface INgLinkpatternModel - A reference to a com.esri.arcgis.schematic.INgPatternModel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgElementType.addPatternModel(com.esri.arcgis.schematic.INgPatternModel),
INgLink.removePatternModel(com.esri.arcgis.schematic.INgPatternModel)
public void removePatternModel(INgPatternModel patternModel)
throws IOException,
AutomationException
removePatternModel in interface INgLinkpatternModel - A reference to a com.esri.arcgis.schematic.INgPatternModel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgPatternModel.delete(),
INgLink.addPatternModel(com.esri.arcgis.schematic.INgPatternModel)
public Object getCurrentEffect(int effect)
throws IOException,
AutomationException
Current effect set for a link can come from its associated element type effects definition, its related properties effects definition, its own effects definition.
getCurrentEffect in interface INgLinkeffect - A com.esri.arcgis.schematic.esriNgLinkEffect constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.INgLink.removeEffect(int),
INgLink.setEffect(int, java.lang.Object),
INgLink.getEffect(int),
INgLink.isEffectSet(int)
public int getNumSegmentAtPoint(INgView view,
INgPoint point)
throws IOException,
AutomationException
At least, one segment composes a link. Links with N intermediate points are composed with (N+1) segments. Segment numbering runs from 1 to N, from the origin to the extremity of the link.
getNumSegmentAtPoint in interface INgLinkview - A reference to a com.esri.arcgis.schematic.INgView (in)point - A reference to a com.esri.arcgis.schematic.INgPoint (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgNodes getNodesOnLink()
throws IOException,
AutomationException
getNodesOnLink in interface INgLinkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INgLinks getSubLinks()
throws IOException,
AutomationException
getSubLinks in interface INgLinkIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void movePoint(int numPoint,
double x,
double y,
int moveMode)
throws IOException,
AutomationException
If there are schematic relations between schematics objects contained in a schematic diagram, it’s the developer responsibility to call the appropriate ISchematicRelationController or ISchematicRelationManager methods for the related objects as the containers to be automatically redrawn when he uses the INgLink:MovePoint method. Please also note that programming the relations redraw on the INgProjectEvents::OnMoveElements or ISchematicRelationControllerEvent::OnMoveElements events will be completely unuseful because these events are only triggered when schematic elements are moved using the GUI tools; that is when end-users move schematic elements using the mouse or the keyboard arrows. So when elements are moved by programming using any "Move" method, the custom code specified on these events will be not fired. In this case, you must either force the redraw at the end of the move operations sequences in your custom procedure or customize the SchematicAlgorithmEvents::AfterExecuteAlgorithm event (when the "Move" methods are called during a custom algorithm).
movePoint in interface INgLinknumPoint - The numPoint (in)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.INgLink.removePoint(int),
INgLink.addPoint(int, com.esri.arcgis.schematic.INgPoint)
public INgPatternModels getCurrentPatternModels()
throws IOException,
AutomationException
getCurrentPatternModels in interface INgLinkIOException - 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 | ||||||||