<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi there.<div><br></div><div>You could also use TableLayout to construct that tree. Model each sub-tree as a morph that presents itself as a node and has submorphs for all its sub-trees. Repeat until a sub-tree is just a leaf itself without. Set #listDirection to #leftToRight and #hReszing/#vResizing to #shrinkWrap. For the node itself, I chose to overwrite #drawOn: into a space I reserved via #layoutInset (e.g., 0 50 0 0).</div><div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div><blockquote class='history_container' type='cite' style='border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;'>
                        <p style='color: #AAAAAA; margin-top: 10px;'>Am 16.09.2021 17:20:42 schrieb Michał Olszewski <m.olszewski@nexat.pl>:</p><div style='font-family:Arial,Helvetica,sans-serif'>
    <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>
  </div></blockquote>
                                        </div></body>