<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Thank you, it was really helpful.<br>
</p>
<div class="moz-cite-prefix">W dniu 2021-09-14 o 16:46, Stéphane
Rollandin pisze:<br>
</div>
<blockquote type="cite"
cite="mid:6970641f-e2ec-af9e-4b86-3abc9c4c1c3f@zogotounga.net">
<blockquote type="cite">Does anybody know an algorithm for drawing
tree graph nodes so they
<br>
don't clump in one place but rather form a (vertical) tree? I
plan on
<br>
visualizing a few ASTs. Example included in attachment.
<br>
<br>
It's not related to Squeak per se, but I have no idea where to
begin;
<br>
what to type into Google.
<br>
<br>
</blockquote>
<br>
<br>
See the attached file. It defines TreeMorph, illustrating a simple
recursive algorithm that I just made up for you - it seems to work
fine.
<br>
<br>
Try it with:
<br>
<br>
TreeMorph example openInWorld
<br>
<br>
You can use it to display any tree-like object. Just define
visiting blocks #morphicGetter and #nodesGetter accordingly.
<br>
<br>
Stef
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">
</pre>
</blockquote>
</body>
</html>