Mondrian in Squeak?

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

Mondrian in Squeak?

Sophie424
I noticed the graph visualizing package Mondrian is been ported to Squeak
(by Lukas?). Anyone know it's status? Is it headed for Seaside integration
in some form?

Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Mondrian in Squeak?

Lukas Renggli
> I noticed the graph visualizing package Mondrian is been ported to Squeak
> (by Lukas?). Anyone know it's status?

It is not really a port, but a different implementation. Porting to
Squeak showed to be very difficult, as the original implementation was
depending on the VW GUI framework. I haven't worked on it lately, but
it should be rather complete.

> Is it headed for Seaside integration
> in some form?

It depends what you mean by integration?

Of course you can include the generated picture into any seaside
application, similar you do with any other dynamically generated image
(html image form: view form). If you need interaction you can use an
image-map and pass the clicks back to the Mondrian model, that will
tell you then what node was clicked.

Or do you want to render Mondrian to DOM (XHTML or SVG) elements? In
this case you have to implement your own rendering-strategy, but that
should be fairly simple as well.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Mondrian in Squeak?

Sophie424
"Lukas Renggli" <[hidden email]> wrote in message

> It is not really a port, but a different implementation. Porting to
> Squeak showed to be very difficult, as the original implementation was
> depending on the VW GUI framework. I haven't worked on it lately, but
> it should be rather complete.

Great! Any example (or hint) on how to build up the graph for
    MOViewer newOn: aGraph?
e.g. what is the rough equivalent of this original Mondrian code?
    view := ViewRenderer new.
    view nodes: model classes
        using: (Rectangle withBorder width: #NOA; height: #NOM; liniarColor:
#LOC within: model classes).
    view edges: model inheritances
        using: (Line from: #superclass to: #subclass).
    view layout: TreeLayout new.
    view open.

> Or do you want to render Mondrian to DOM (XHTML or SVG) elements?

Image-maps ... I will be happy to get a simple version of that working for
now :-)

Many thanks - Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Mondrian in Squeak?

Lukas Renggli
> Great! Any example (or hint) on how to build up the graph for
>     MOViewer newOn: aGraph?
> e.g. what is the rough equivalent of this original Mondrian code?
>     view := ViewRenderer new.
>     view nodes: model classes
>         using: (Rectangle withBorder width: #NOA; height: #NOM; liniarColor:
> #LOC within: model classes).
>     view edges: model inheritances
>         using: (Line from: #superclass to: #subclass).
>     view layout: TreeLayout new.
>     view open.

Have a look at the examples on the class-side of MOPainting, I don't
exactly remember how it worked. The example #createSystemComplexityOf:
does essentially what you ask for, plus some more things ...

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Mondrian in Squeak?

Sophie424
That's more than enough examples right there, perfect, thank you Lukas.

"Lukas Renggli" <[hidden email]> wrote in message
news:[hidden email]...

>> Great! Any example (or hint) on how to build up the graph for
>>     MOViewer newOn: aGraph?
>> e.g. what is the rough equivalent of this original Mondrian code?
>>     view := ViewRenderer new.
>>     view nodes: model classes
>>         using: (Rectangle withBorder width: #NOA; height: #NOM;
>> liniarColor:
>> #LOC within: model classes).
>>     view edges: model inheritances
>>         using: (Line from: #superclass to: #subclass).
>>     view layout: TreeLayout new.
>>     view open.
>
> Have a look at the examples on the class-side of MOPainting, I don't
> exactly remember how it worked. The example #createSystemComplexityOf:
> does essentially what you ask for, plus some more things ...
>
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch 



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside