1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 98.1p1 release (March 2nd, 1998)
originally by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>8. Tree Editing</TITLE>
<META NAME="description" CONTENT="8. Tree Editing">
<META NAME="keywords" CONTENT="User">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="STYLESHEET" HREF="User.css">
<LINK REL="next" HREF="usersguidenode11.html">
<LINK REL="previous" HREF="usersguidenode9.html">
<LINK REL="up" HREF="User.html">
<LINK REL="next" HREF="usersguidenode11.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html1025"
HREF="usersguidenode11.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next_motif.gif"></A>
<A NAME="tex2html1021"
HREF="User.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up_motif.gif"></A>
<A NAME="tex2html1015"
HREF="usersguidenode9.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="previous_motif.gif"></A>
<A NAME="tex2html1023"
HREF="usersguidenode1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents_motif.gif"></A>
<A NAME="tex2html1024"
HREF="usersguidenode15.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index_motif.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html1026"
HREF="usersguidenode11.html">9. Mini-tutorial on Notation</A>
<B> Up:</B> <A NAME="tex2html1022"
HREF="User.html">Toolkit for Conceptual Modeling</A>
<B> Previous:</B> <A NAME="tex2html1016"
HREF="usersguidenode9.html">7. Table Editing</A>
<BR>
<BR>
<!--End of Navigation Panel-->
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><strong>Subsections</strong></A>
<UL>
<LI><A NAME="tex2html1027"
HREF="usersguidenode10.html#SECTION001010000000000000000">8.1 Editing Trees</A>
<LI><A NAME="tex2html1028"
HREF="usersguidenode10.html#SECTION001020000000000000000">8.2 Edit and View Mode</A>
<LI><A NAME="tex2html1029"
HREF="usersguidenode10.html#SECTION001030000000000000000">8.3 The Generic Textual Tree Editor (TGTT)</A>
<LI><A NAME="tex2html1030"
HREF="usersguidenode10.html#SECTION001040000000000000000">8.4 The Function Refinement Tree Editor (TFRT)</A>
</UL>
<!--End of Table of Child-Links-->
<HR>
<H1><A NAME="SECTION001000000000000000000"> </A> <A NAME="TreeEditing"> </A>
<BR>
8. Tree Editing
</H1>
<P>
<H1><A NAME="SECTION001010000000000000000">
8.1 Editing Trees</A>
</H1>
<P>
Tree editors are document editors to edit text that is presented
in the form of a tree<A NAME="8153"> </A>. The nodes are pieces
of text, the edges show the hierarchical relationship between the
nodes. Each tree has a unique root node and the tree cannot contain
cycles, by definition. These are immediately enforced constraints.
<P>
At the moment there are not many differences between the two tree editors.
In fact, the tree editors can read in each others trees.
<P>
<H1><A NAME="SECTION001020000000000000000"> </A><A NAME="8155"> </A><A NAME="8156"> </A>
<BR>
8.2 Edit and View Mode
</H1>
<P>
The tree editors edit trees, like diagram editors
edit graphs. See chapter <A HREF="usersguidenode5.html#DiagramEditing">3</A> for all
the diagram editing commands. During editing a tree, it
should be visible which node is the root of the tree,
so each root node is represented by a downwards pointing
arrow, see figure <A HREF="usersguidenode10.html#TreeRepresentations">8.1</A>.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="TreeRepresentations"> </A><A NAME="8186"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 8.1:</STRONG>
Textual tree nodes and edges.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1" ALIGN="CENTER">
<TR><TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/treeroot.eps}$ -->
<IMG
WIDTH="23" HEIGHT="41" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg172.gif"
ALT="\includegraphics{p/treeroot.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Text root</TD>
<TD ALIGN="CENTER"><A NAME="8171"> </A>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/treenode.eps}$ -->
<IMG
WIDTH="29" HEIGHT="9" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg173.gif"
ALT="\includegraphics{p/treenode.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Text node</TD>
</TR>
<TR><TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/line.eps}$ -->
<IMG
WIDTH="94" HEIGHT="15" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg58.gif"
ALT="\includegraphics{p/line.eps}"></DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Text edge</TD>
<TD ALIGN="CENTER"> </TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94> </TD>
</TR>
</TABLE></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
The trees that are used in [<A
HREF="usersguidenode14.html#Wieringa96-01">22</A>]
look rather different from the graph-like documents
that you edit in this editor. Therefore, the tree editors
have a <B>forked tree</B><A NAME="8192"> </A><A NAME="8193"> </A><A NAME="8194"> </A>
mode in which the graph is redrawn to look like a
real tree <A NAME="tex2html146"
HREF="#foot8195"><SUP>8.1</SUP></A>. In the forked
tree mode it is not possible to edit the tree (all edit commands
in the menu are grayed out) but the tree can be loaded, saved,
printed, previewed, scaled and moved by the arrow buttons.
<P>
Below the Node and Edge buttons at the left edge
of the main window, there is a pair of radio buttons to toggle
between `editable graph'<A NAME="8196"> </A>
mode and `forked tree' mode.
<P>
In the `forked tree' mode, the arrows are deleted from the
root nodes and all children of a parent node will be connected
to the parent as a `fork': there is a simple built-in layout
algorithm which takes care of the proper drawing of the line
pieces. The algorithm does not reposition the text nodes,
so the user determines where the nodes are drawn,
but TCM decides, taking the node positions into account, how
the edges are drawn. See figures <A HREF="usersguidenode10.html#TreeExample1">8.2</A>
and <A HREF="usersguidenode10.html#TreeExample2">8.3</A> for the same tree in the two
different modes. You see that the final tree layout is determined
by the node positions only.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="TreeExample1"> </A><A NAME="8202"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 8.2:</STRONG>
Example tree in edit mode.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/treeeditexample.eps}$ -->
<IMG
WIDTH="659" HEIGHT="652" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg174.gif"
ALT="\includegraphics{p/treeeditexample.eps}">
</DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="TreeExample2"> </A><A NAME="8209"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 8.3:</STRONG>
Example tree in forked tree (view) mode.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/treeviewexample.eps}$ -->
<IMG
WIDTH="658" HEIGHT="614" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg175.gif"
ALT="\includegraphics{p/treeviewexample.eps}">
</DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<H1><A NAME="SECTION001030000000000000000"> </A>
<A NAME="8214"> </A>
<A NAME="8215"> </A>
<A NAME="8216"> </A>
<BR>
8.3 The Generic Textual Tree Editor (TGTT)
</H1>
<P>
This editor behaves as is described in the previous section.
It does not impose any other constraints on
the trees that are drawn.
<P>
<H1><A NAME="SECTION001040000000000000000"> </A>
<A NAME="8218"> </A>
<A NAME="8219"> </A>
<A NAME="8220"> </A>
<BR>
8.4 The Function Refinement Tree Editor (TFRT)
</H1>
<P>
This editor is intended to be used for making function
refinement trees, previously called <B>function decomposition
trees</B><A NAME="8222"> </A> in [<A
HREF="usersguidenode14.html#Wieringa96-01">22</A>].
It has a soft constraint that there is a single root node and
that all nodes are reachable from that root node.
<P>
<P>
<P>
<BR><HR><H4>Footnotes</H4>
<DL>
<DT><A NAME="foot8195">... tree </A><A NAME="foot8195"
HREF="usersguidenode10.html#tex2html146"><SUP>8.1</SUP></A>
<DD>Biologists would not agree, however.
</DL><HR>
<!--Navigation Panel-->
<A NAME="tex2html1025"
HREF="usersguidenode11.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next_motif.gif"></A>
<A NAME="tex2html1021"
HREF="User.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up_motif.gif"></A>
<A NAME="tex2html1015"
HREF="usersguidenode9.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="previous_motif.gif"></A>
<A NAME="tex2html1023"
HREF="usersguidenode1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents_motif.gif"></A>
<A NAME="tex2html1024"
HREF="usersguidenode15.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index_motif.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html1026"
HREF="usersguidenode11.html">9. Mini-tutorial on Notation</A>
<B> Up:</B> <A NAME="tex2html1022"
HREF="User.html">Toolkit for Conceptual Modeling</A>
<B> Previous:</B> <A NAME="tex2html1016"
HREF="usersguidenode9.html">7. Table Editing</A>
<!--End of Navigation Panel-->
<ADDRESS>
<I>Henk van de Zandschulp</I>
<BR><I>2003-01-20</I>
</ADDRESS>
</BODY>
</HTML>
|