Connectors no longer loads into Pharo, it's heavily tied into eToys. Are there any maintained package that provide diagram creation? All I'm trying to do is draw a diagram with boxes and arrows connecting them to represent control flow graphs. Bryce _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Mondrian may help here...
There's 2 implementation right now... one in squeaksource, in progress and one in source.lukas-renggli.ch. The latter is more completed but different from the original vw version. hth, 2009/3/5 <[hidden email]>: > > Connectors no longer loads into Pharo, it's heavily tied into > eToys. Are there any maintained package that provide diagram > creation? All I'm trying to do is draw a diagram with boxes > and arrows connecting them to represent control flow graphs. > > Bryce > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > -- Cédrick _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Bryce Kampjes
Hi Bryce,
I suggest you to use Mondrian. http://www.squeaksource.com/Mondrian.html Arrowed edges does not properly work for now. But it is on my todo list. If you have an example of a diagram you're interested in... Cheers, Alexandre On 5 Mar 2009, at 22:47, <[hidden email]> wrote: > > Connectors no longer loads into Pharo, it's heavily tied into > eToys. Are there any maintained package that provide diagram > creation? All I'm trying to do is draw a diagram with boxes > and arrows connecting them to represent control flow graphs. > > Bryce > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Alexandre Bergel writes:
> Hi Bryce, > > I suggest you to use Mondrian. > http://www.squeaksource.com/Mondrian.html > > Arrowed edges does not properly work for now. But it is on my todo > list. If you have an example of a diagram you're interested in... Here's an example. It's basic boxes with arrows and some colour to indicate what the boxes are. It's a control flow graph of intermediate code. I use it to make inspecting Exupery's intermediate more understandable. Bryce _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project exuperyGraph.jpg (269K) Download Attachment |
In reply to this post by Alexandre Bergel
Julien Fierz implemented arrows and graph layouts in the other
Mondrian (source.lukas-renggli.ch/mondrian) after Moose forked the code. See his thesis for examples: <http://www.iam.unibe.ch/~scg/Archive/Diploma/Fier09a.pdf>. Lukas On Fri, Mar 6, 2009 at 12:24 AM, Alexandre Bergel <[hidden email]> wrote: > Hi Bryce, > > I suggest you to use Mondrian. > http://www.squeaksource.com/Mondrian.html > > Arrowed edges does not properly work for now. But it is on my todo > list. If you have an example of a diagram you're interested in... > > Cheers, > Alexandre > > > On 5 Mar 2009, at 22:47, <[hidden email]> wrote: > >> >> Connectors no longer loads into Pharo, it's heavily tied into >> eToys. Are there any maintained package that provide diagram >> creation? All I'm trying to do is draw a diagram with boxes >> and arrows connecting them to represent control flow graphs. >> >> Bryce >> >> _______________________________________________ >> Pharo-project mailing list >> [hidden email] >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >> > > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > Alexandre Bergel http://www.bergel.eu > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > > > > > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Bryce Kampjes
This is trivial to achieve. I will give a try this week end.
Alexandre On 6 Mar 2009, at 22:07, <[hidden email]> <[hidden email] > wrote: > Alexandre Bergel writes: >> Hi Bryce, >> >> I suggest you to use Mondrian. >> http://www.squeaksource.com/Mondrian.html >> >> Arrowed edges does not properly work for now. But it is on my todo >> list. If you have an example of a diagram you're interested in... > > Here's an example. It's basic boxes with arrows and some colour > to indicate what the boxes are. > > It's a control flow graph of intermediate code. I use it to > make inspecting Exupery's intermediate more understandable. > > Bryce > > <exuperyGraph.jpg>_______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Alexandre Bergel writes:
> This is trivial to achieve. I will give a try this week end. Thanks, I played around a little last night. One question, is it possible to move the nodes manually to tweak the layout? I'm currently using graphviz to layout the graph, it almost does a good enough job but often moving a few nodes around makes it much easier to follow. Mondrian looks very cleanly designed. Bryce _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Alexandre Bergel
Alexandre Bergel writes:
> This is trivial to achieve. I will give a try this week end. The other thing I noticed is the following script produces a messed up display. I'm not sure if this is a bug or if I'm missing something. |view| view := MOViewRenderer new. view shape: (MORectangleShape new width: 30; height: 30; text: [:t| t model printString]). view nodes: (1 to: 53). view gridLayout. view open. Without the text: attribute it produces a sensible drawing. The messed up drawing is: The examples all seem to work. Bryce _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project mondrian.jpg (51K) Download Attachment |
With the last version of Mondrian, I have
I will dive into it this evening. I would have expected each number to be surrounded by a box. Cheers, Alexandre On 7 Mar 2009, at 22:26, <[hidden email]> wrote: > Alexandre Bergel writes: >> This is trivial to achieve. I will give a try this week end. > > The other thing I noticed is the following script produces a messed > up display. I'm not sure if this is a bug or if I'm missing something. > > |view| > view := MOViewRenderer new. > view shape: (MORectangleShape new width: 30; height: 30; text: [:t| > t model printString]). > view nodes: (1 to: 53). > view gridLayout. > view open. > > Without the text: attribute it produces a sensible drawing. > > The messed up drawing is: > > <mondrian.jpg> > > The examples all seem to work. > > Bryce_______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project Picture 4.png (26K) Download Attachment |
In reply to this post by Bryce Kampjes
Hi Bryce,
Try the following with the last version: -=-=-=-=-=-=-=-=-=-=-=-= | view builder | builder := MOFormsBuilder new. builder column; fill. builder row; fill. builder x: 1 y: 1 add: (MORectangleShape new width: 30; height: 30; fillColor: Color lightBlue). builder x: 1 y: 1 add: (MOLabelShape new text: [:t| t printString]). view := MOViewRenderer new. view shape: builder shape. view interaction draggable. view nodes: (1 to: 53). view edgesFrom: [:each | each * 2]. view gridLayout. view open. -=-=-=-=-=-=-=-=-=-=-=-= It should do what you expect. For some reason, the text: message sent to a MORectangleShape does not do the right job. I suspect something is weird in BalloonCanvas. I will dive into this. The draggable message make node draggable. If you need some popup, simply send popupText: [:each | ... ] Cheers, Alexandre On 7 Mar 2009, at 22:26, <[hidden email]> <[hidden email] > wrote: > Alexandre Bergel writes: >> This is trivial to achieve. I will give a try this week end. > > The other thing I noticed is the following script produces a messed > up display. I'm not sure if this is a bug or if I'm missing something. > > |view| > view := MOViewRenderer new. > view shape: (MORectangleShape new width: 30; height: 30; text: [:t| > t model printString]). > view nodes: (1 to: 53). > view gridLayout. > view open. > > Without the text: attribute it produces a sensible drawing. > > The messed up drawing is: > > <mondrian.jpg> > > The examples all seem to work. > > Bryce_______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Free forum by Nabble | Edit this page |