[squeak-dev] Tree graph/diagram drawing
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev