Which Mondrian ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Which Mondrian ?

cedreek
Hi,

As I need to draw a PERT diagram, I decided to give Mondrian a try.

I had a version (ported by Lukas [1]) used in OB which I started to
use and read doc (code doc :) ). And I saw that Alexandre (Bergel) is
working on improving another version [2].

So, which one to use (knowing that I use OB) ? I think there are
differences...

Thanks

--
Cédrick

[1] http://source.lukas-renggli.ch/mondrian
[2] http://www.squeaksource.com/Mondrian

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Which Mondrian ?

David Röthlisberger-2
Hi Cédrick,

> As I need to draw a PERT diagram, I decided to give Mondrian a try.
>
> I had a version (ported by Lukas [1]) used in OB which I started to
> use and read doc (code doc :) ). And I saw that Alexandre (Bergel) is
> working on improving another version [2].
>
> So, which one to use (knowing that I use OB) ? I think there are
> differences...

I will port the visualizations used in OB to the latest version Alex is
working on, as soon as he finished his work.
Thus in the long run, OB will use Alex' version of Mondrian which is
(imo) still loosely based on the version Lukas originally ported from VW.

So I suggest you to use the latest version of Mondrian on Squeaksource
for new projects.
Alex can tell you more about its status.

David



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Which Mondrian ?

Alexandre Bergel
The last version of Mondrian should be in a usable state very soon.
PERT diagram can be trivially modeled in Mondrian.

What I can suggest, is to download the last version of Mondrian. Have  
a look at the class MOReadme. It contains few examples.
Do not hesitate to get in touch with me privately for help.

Cheers,
Alexandre


On 23 Feb 2009, at 22:26, David Röthlisberger wrote:

> Hi Cédrick,
>
>> As I need to draw a PERT diagram, I decided to give Mondrian a try.
>>
>> I had a version (ported by Lukas [1]) used in OB which I started to
>> use and read doc (code doc :) ). And I saw that Alexandre (Bergel) is
>> working on improving another version [2].
>>
>> So, which one to use (knowing that I use OB) ? I think there are
>> differences...
>
> I will port the visualizations used in OB to the latest version Alex  
> is
> working on, as soon as he finished his work.
> Thus in the long run, OB will use Alex' version of Mondrian which is
> (imo) still loosely based on the version Lukas originally ported  
> from VW.
>
> So I suggest you to use the latest version of Mondrian on Squeaksource
> for new projects.
> Alex can tell you more about its status.
>
> David
>
>
>
> _______________________________________________
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Which Mondrian ?

cedreek
Thanks David and Alexandre,

I've loaded the mondrian form squeaksource and I'm trying it. I find
it quite different for the one used in OB.

I'll continue to try it as I'm reading Micheal Master thesis. I'm
trying on a simple graph first with tasks and node, but also I'd like
a special kinf of shape. Alex, I didn't found the way to compose
shape. Is it possible already ?

Actually, I used Mondrian to generate the graph and then export it as
PNG. I could directly draw the pic, but wanted to try mondrian so...

I also wonder if we could imagine a SVGRenderer to use in conjunction
with seaside :) ? What do you think ?

Thanks,

Cédrick

ps: David, concerning the graph button bar in OB, I'll suggest showing
it only in the comment view.

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Which Mondrian ?

Alexandre Bergel-4
> I've loaded the mondrian form squeaksource and I'm trying it. I find
> it quite different for the one used in OB.

Yes, but very close to the VW version. We have a number of scripts and  
visualization made in VW that we would like to reuse. Moreover, in my  
opinion, the new version is simpler to use (and probably faster to  
render).

The incantation to install the latest version of Mondrian in Pharo:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
ScriptLoader new installer ss project: 'Mondrian'; install:  
'MondrianLoader'. ScriptLoader perform: #loadMondrian
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


> I'll continue to try it as I'm reading Micheal Master thesis. I'm
> trying on a simple graph first with tasks and node, but also I'd like
> a special kinf of shape. Alex, I didn't found the way to compose
> shape. Is it possible already ?

Yes, you can compose them using MOFormsBuilder. There are numerous  
example in MOReadme, MONewFormsBuilderTest, and MOFormsBuilderTest  
(but some of them go red).

  An example that you can run with: MOReadme new flagExample
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| builder view |
builder := MOFormsBuilder new.
"Assuming you want a grid made up of 3 columns and 2 rows"
builder
        column; fill;
        column; fill; center;
        column; fill.
builder
        row; fill; row; fill; row; fill;  "For the German flag"
        row; center; "The EU text"
        row; pref. "For the French flag"
"We draw a German flag"
builder x: 1 y: 1 w: 3 add: (MORectangleShape new width: 30; height:  
7; fillColor: Color black).
builder x: 1 y: 2 w: 3 add: (MORectangleShape new width: 30; height:  
7; fillColor: Color red).
builder x: 1 y: 3 w: 3 add: (MORectangleShape new width: 30; height:  
7; fillColor: Color yellow).

builder x: 1 y: 4 w: 3 add: (MOLabelShape new text: [:aNumber |'EU ',  
aNumber printString]).

"We draw a French flag"
builder x: 1 y: 5 add: (MORectangleShape new width: 10; height: 20;  
fillColor: Color blue).
builder x: 2 y: 5 add: (MORectangleShape new width: 10; height: 20;  
fillColor: Color white).
builder x: 3 y: 5 add: (MORectangleShape new width: 10; height: 20;  
fillColor: Color red).


view := MOViewRenderer new.
view popupText: [:aNumber | 'my value is ', aNumber printString ].
view draggable. "Let's make nodes draggable, yeah!"
view nodeShape: (builder shape).
view nodes: (1 to: 27).
view edges: (1 to: 27) from: #yourself to: [:each | each * each].
view layout: (MOCircleLayout new).
view open

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



> I also wonder if we could imagine a SVGRenderer to use in conjunction
> with seaside :) ? What do you think ?

Yeah, that would be nice!


> ps: David, concerning the graph button bar in OB, I'll suggest showing
> it only in the comment view.

It depends... I seldom press the comment button, except if there is a  
comment in it, which is rare.

Alexandre

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Which Mondrian ?

David Röthlisberger-2

>> ps: David, concerning the graph button bar in OB, I'll suggest showing
>> it only in the comment view.
>
> It depends... I seldom press the comment button, except if there is a  
> comment in it, which is rare.

yes, I also think it would be too hidden there.
What would be possible is to add a button to the panel at the top labelled
'visualizations' that give you a list of available visualizations for the selected
entity. Similar as the 'view' button.
This would save some space.

David


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project