| Developing with the SDK > Using and Adding Renderers > Predefined Renderers > The GrapherPin Renderer |
The GrapherPin Renderer |
INDEX
PREVIOUS
NEXT
|
The GrapherPin renderer defines the exact positions where links will be connected to the nodes of the graph. For example, Code Sample 4.12 shows a rule which declares that a node of tag split has three connection points: one at the top of the node's bounding rectangle, one on the left, and another one on the right.
node.split { GrapherPin[0] : "Top"; GrapherPin[1] : "Left"; GrapherPin[2] : "Right"; } |
Other rules can then make use of the connection points defined to specify where different types of links are to be connected. For example, Code Sample 4.13 shows a rule that connects all links of tag transition whose condition property is true from the right of the source node to the top of the destination node.
link.transition[condition="true"] { FromPin : "2"; // pin #2 = Right (see node.split rule) ToPin : "0"; // pin #0 = Top (see node.split rule) } |
The grapher pins are taken into account during editing when you create a new link or when you reconnect an existing link. They are displayed as small circles during the interaction.
The GrapherPin renderer does not have any global properties.
Table 4.5 lists the per-object rendering properties of the GrapherPin renderer.
For more details, see the class ilog.views.sdm.renderer.IlvGrapherPinRenderer.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |