Hi Alex,
Very nice job! And the code is clean (unlike the other two previous
implementations).
I certainly like the "edges" intermediary object. We should indeed provide
the backward compatibility methods just to make the transition smoother.
Cheers,
Doru
On Thu, Dec 4, 2014 at 3:02 PM, Alexandre Bergel <alexandre.bergel(a)me.com>
wrote:
Dear All,
Over the last few weeks, we have worked on a new Mondrian builder.
Look for the class RTMondrian.
The new Mondrian is faster than the previous Mondrian (in Roassal2) and
supposedly contains less bug.
In this builder, the syntax slightly changed. However, the migration is
fairly trivial.
Before you had to write:
-=-=-=-=-=-=-=-=-=-=-=-=
b := RTMondrianViewBuilder new.
b nodes: (1 to: 5).
b edgesFrom:: [:v | v + 1].
b treeLayout.
b build.
-=-=-=-=-=-=-=-=-=-=-=-=
Now, you will write:
-=-=-=-=-=-=-=-=-=-=-=-=
b := RTMondrian new.
b nodes: (1 to: 5).
b edges connectFrom: [:v | v + 1].
b layout tree.
b build.
-=-=-=-=-=-=-=-=-=-=-=-=
As you can see, edges and layout are defined slightly differently. There
are good reason for this. I foresee the fact that should be able to build
some more elaborated and expressive line and layout. For example, we should
be able to say we want edges that are taken into account by the layout or
not. Or providing control points, or conditional instruction. For the
layout, same things, we may want to partition (e.g., elements with edges
using a particular layout, and isolated elements in a different locations).
Behind the scene, we will have edge and layout builder. Maybe in the future
we will have node builder as well… No idea for now :-)
Also, the default shape builder has also changed. Let’s see if you guys
can live without a border color :-D
Anyway, I recommend to try out this new Mondrian builder and report for
bugs and wanted features.
Also, we will soon deprecate the RTGraphBuilder, since this new Mondrian
builder will do much more than what RTGraphBuilder offers. RTGraphBuilder
was a very nice experiment, and we learned a lot from it. Now, it is time
to capitalize and push Roassal further!
We also have other cool stuff coming. Have you noticed the HTML exporter?
:-D
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev