[squeak-dev] Tree graph/diagram drawing

Michał Olszewski m.olszewski at nexat.pl
Thu Sep 16 15:20:26 UTC 2021


Thank you, it was really helpful.

W dniu 2021-09-14 o 16:46, Stéphane Rollandin pisze:
>> Does anybody know an algorithm for drawing tree graph nodes so they
>> don't clump in one place but rather form a (vertical) tree? I plan on
>> visualizing a few ASTs. Example included in attachment.
>>
>> It's not related to Squeak per se, but I have no idea where to begin;
>> what to type into Google.
>>
>
>
> See the attached file. It defines TreeMorph, illustrating a simple 
> recursive algorithm that I just made up for you - it seems to work fine.
>
> Try it with:
>
>     TreeMorph example openInWorld
>
> You can use it to display any tree-like object. Just define visiting 
> blocks #morphicGetter and #nodesGetter accordingly.
>
> Stef
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210916/ea6ea7b7/attachment.html>


More information about the Squeak-dev mailing list