Ok, I'm going to change that
Excellent start :-)
The edge extremities are not where they should
Alexandre
> <ComplexityExample.rar>_______________________________________________
On 24 May 2011, at 15:47, Santiago Vidal wrote:
> Hi,
> It took a while but I have an example of a system complexity visualization with Protovis (The example is in the attachments). If you agree I'm going to implement this function in Mondrian as an export feature.
> Cheers
> Santiago
>
> 2011/5/20 Alexandre Bergel <alexandre.bergel@me.com>
> > > I would like to know if all the kind of shapes supported by Mondrian are those under the MOShape hierarchy.
>
> Yes.
>
> > Also, in order to simplify the task, I would like to define an scenario of use. For example, the html file is going to be generated after a selection of a button called "generate html5". After this we may make a generalization.
>
> Yes. A new exporter. This should not much work. Have a look at the method exportAsSVG and class MOEaselCommandSVGExporter.
>
> > > Finally, can you tell me what do you mean by "First, start with a system complexity. Then, add labels and popup."? I didn't follow you :( Are they Mondrian components?
>
> Open a Mondrian easel, you have an example 'system complexity'. It contains the following code:
> -=-=-=-=-=-=-=-=-=-=-=-=
> view shape rectangle
> width: [:cls | cls instVarNames size * 3];
> height: [:cls | cls methods size ];
> linearFillColor: [:cls | cls methods inject: 0 into: [:sum :el | sum + el getSource lineCount]] within: Collection withAllSubclasses.
> view nodes: Collection withAllSubclasses.
> view edgesFrom: #superclass.
> view treeLayout
> -=-=-=-=-=-=-=-=-=-=-=-=
>
> This is the simplest graphical visualization. Try to generate it as protovis code.
> Then, we will have to deal with the nesting:
> -=-=-=-=-=-=-=-=-=-=-=-=
> view nodes: (1 to: 10) forEach: [ :each |
> view nodes: ($a to: $z).
> view gridLayout
> ]
> -=-=-=-=-=-=-=-=-=-=-=-=
>
> Then, edges will come into play.
>
> Cheers,
> Alexandre
>
>
> > > Thanks!
> > > Cheers
> > > Santiago
> > >
> > > 2011/5/19 Alexandre Bergel <abergel@dcc.uchile.cl>
> > > Hi Santiago,
> > >
> > > Apparently, your refactoring did not cause a significant slowdown. This is cool. We will see if people start to complain.
> > >
> > > I think the next step is to get a hand on ProtoVis. Try to play with it a bit to know how it works. You should then be able to produce a visitor that generates HTML5/Protovis code.
> > >
> > > Then, there are two scenarios that we would like you to explore:
> > > - producing html files
> > > - being behind a seaside server
> > >
> > > I think that we need to be incremental on the features to covers. First, start with a system complexity. Then, add labels and popup. Handling interaction will be important. I feel this cannot be effectively done without being behind a seaside server.
> > >
> > > Doru, anything to add?
> > >
> > > Cheers,
> > > Alexandre
> > > --
> > > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > > Alexandre Bergel http://www.bergel.eu
> > > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Ing. Santiago A. Vidal
> > > ISISTAN Research Institute
> > > UNICEN University
> > > Paraje Arroyo Seco
> > > Campus Universitario
> > > (B7001BBO) Tandil,
> > > Bs. As. - Argentina
> > > Phone: 54 2293 439840 Ext. 42
> > > Fax: 54 2293 439681
> > > Email: svidal@exa.unicen.edu.ar
> > > http://www.exa.unicen.edu.ar/~svidal
> >
> > --
> > www.tudorgirba.com
> >
> > "One cannot do more than one can do."
> >
> >
> >
> >
> >
> >
> > --
> > Ing. Santiago A. Vidal
> > ISISTAN Research Institute
> > UNICEN University
> > Paraje Arroyo Seco
> > Campus Universitario
> > (B7001BBO) Tandil,
> > Bs. As. - Argentina
> > Phone: 54 2293 439840 Ext. 42
> > Fax: 54 2293 439681
> > Email: svidal@exa.unicen.edu.ar
> > http://www.exa.unicen.edu.ar/~svidal
> > _______________________________________________
> > Moose-dev mailing list
> > Moose-dev@iam.unibe.ch
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev@iam.unibe.ch
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
> --
> Ing. Santiago A. Vidal
> ISISTAN Research Institute
> UNICEN University
> Paraje Arroyo Seco
> Campus Universitario
> (B7001BBO) Tandil,
> Bs. As. - Argentina
> Phone: 54 2293 439840 Ext. 42
> Fax: 54 2293 439681
> Email: svidal@exa.unicen.edu.ar
> http://www.exa.unicen.edu.ar/~svidal
> Moose-dev mailing list
> Moose-dev@iam.unibe.ch
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev