Improvement of Layout Builder

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

Improvement of Layout Builder

abergel
Hi!

I did some small improvement of the layout  builder. For example:

-=-=-=-=-=-=-=-=
b := RTMondrian new.
b nodes: (1 to: 100).
b layout 
force;
ifNotConnectedThen: RTGridLayout new.
b edges connectTo: [ :v | v \\ 4 ].
b
-=-=-=-=-=-=-=-=

I have also introduced a null layout to move all elements at the same position. This is a simple way to discard elements.
-=-=-=-=-=-=-=-=
b := RTMondrian new.
b nodes: (1 to: 100).
b layout 
force;
ifNotConnectedThen: RTNullLayout new.
b edges connectTo: [ :v | v \\ 4 ].
b
-=-=-=-=-=-=-=-=

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




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Improvement of Layout Builder

jfabry

That looks cool!

On Dec 4, 2015, at 12:25, Alexandre Bergel <[hidden email]> wrote:

Hi!

I did some small improvement of the layout  builder. For example:

-=-=-=-=-=-=-=-=
b := RTMondrian new.
b nodes: (1 to: 100).
b layout 
force;
ifNotConnectedThen: RTGridLayout new.
b edges connectTo: [ :v | v \\ 4 ].
b
-=-=-=-=-=-=-=-=
<Screen Shot 2015-12-04 at 11.51.41 AM.png>

I have also introduced a null layout to move all elements at the same position. This is a simple way to discard elements.
-=-=-=-=-=-=-=-=
b := RTMondrian new.
b nodes: (1 to: 100).
b layout 
force;
ifNotConnectedThen: RTNullLayout new.
b edges connectTo: [ :v | v \\ 4 ].
b
-=-=-=-=-=-=-=-=
<Screen Shot 2015-12-04 at 11.52.57 AM.png>

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



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD and RyCh labs  -  Computer Science Department (DCC)  -  University of Chile


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev