It is a bit different actually.

Consider the script:
-=-=-=-=-=-=-=-=-=-=-=-=
view shape rectangle
width: #numberOfMethods;
height: [ :cls | cls numberOfVariables * 7 ].
view nodes: Collection withAllSubclasses.
view layout: (RORectanglePackLayout new padding: 4).
-=-=-=-=-=-=-=-=-=-=-=-=

It gives:

With no padding
-=-=-=-=-=-=-=-=-=-=-=-=
view shape rectangle
width: #numberOfMethods;
height: [ :cls | cls numberOfVariables * 7 ].
view nodes: Collection withAllSubclasses.
view layout: (RORectanglePackLayout new).
-=-=-=-=-=-=-=-=-=-=-=-=

With Mathieu layout we have:
-=-=-=-=-=-=-=-=-=-=-=-=
view shape rectangle
width: #numberOfMethods;
height: [ :cls | cls numberOfVariables * 7 ].
view nodes: Collection withAllSubclasses.
view layout: (RORectanglePackLayout new).
-=-=-=-=-=-=-=-=-=-=-=-=


Results are quite different

Alexandre


On Oct 15, 2013, at 2:54 PM, Nicolas Anquetil <Nicolas.Anquetil@inria.fr> wrote:


very nice :-)

Didn't Mathieu Dehouck develop a similar layout this summer ?

nicolas


On 10/15/2013 06:09 PM, Yuriy Tymchuk wrote:
Hi everyone!

You know, some times you have a pile of different rectangles representing some entities. And you want to show them to someone so that he can take a look at them to assess something. But there is always a question how do you arrange this rectangles? Usually it's not practical to place them in a line or in a circle because it takes too much space. I've developed a layout that tries to pack rectangles in a compact space, and here is how it looks like:
<Mail Attachment.png>

You can load it into your image with:
Gofer new
  smalltalkhubUser: 'YuriyTymchuk' project: 'RecPack-Layout';
  package: 'RecPack-Layout';
  load.

and you can see a couple of examples in Roassal easel.

Feedback is appreciated.

Cheers!
Uko


_______________________________________________
Moose-dev mailing list

Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

-- 
Nicolas Anquetil -- RMod research team (Inria)

_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

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