next up previous contents index
Next: 3.4 Selection Commands Up: 3 Diagram Editing Previous: 3.2 Creating Nodes

3.3 Creating Edges

   The set of tiled buttons named Edges contains radio buttons indicating the current type of edge that can be drawn. Furthermore there is a so-called check button labeled Curve. If the curve button is on, each new edge that is created, having more than one segment, is drawn as a Bezier curve. If the curve button is off, a multi-segment line is drawn as a set of connected straight line segments. To create a new edge, first choose the desired edge type in the edge tiles. There are three sorts of edges that you can create:


  
Figure 3.1: Three forms of edges.
\begin{figure}
\begin{center}

\includegraphics {p/createedges.eps}\end{center}\end{figure}

After creating the edge, the edge is selected which is visible by a selection handle on each line point. You can adjust the line points by moving the handles; see section 3.6.

When an edge is created and it is the only straight edge connecting this particular couple of nodes, it will go (virtually) through the center points of the nodes. When there are multiple straight edges connecting the same pair of nodes, they will be equally distributed by default over the opposing sides. Segmented and curved edges are not equally distributed when they connect the same pair of nodes. TCM tries to intersect the first and last segment of a segmented line orthogonally with the sides of the connected nodes. If this is geometrically impossible, the segment will be directed to the center of the node like with straight edges [*].

Tip: When you want to enforce that a straight edge is always orthogonal to a node, then you can draw a segmented line of three points that looks like a straight line. You enforce then that the line is always connected orthogonally with both of the nodes (providing that this is geometrically possible). This gives often a more pleasant optical result when you want to connect two nodes that differ a lot in size.

It is possible to move the end points of an edge as well, in the same way as you move the intermediate points. When you drag the handle of an end point to another position then the new end point will be the position at the border of the node shape that is the closest to where you released the handle. However, when you drag the handle of an end point into a different node shape then the edge will be redirected to that node.


next up previous contents index
Next: 3.4 Selection Commands Up: 3 Diagram Editing Previous: 3.2 Creating Nodes
Frank Dehne,Faculty of Mathematics and Computer Science, Vrije Universiteit Amsterdam
11/17/1997