Well... I did this because in Mondrian it was a complete mess with the width and height defined on a shape that has to be cached in a node. At the top of this, I then realized that a node may have several shapes using the complex form. This resulted in a complex piece of code.
Having the bounds defined on a shape is indeed a possibility that I may explore. Before adding new things on the API I would like to have case studies. I will port some of the mondrian scripts.
Thanks for triggering this discussion.
Cheers, Alexandre
Le 23 mai 2012 à 03:24, Tudor Girba tudor@tudorgirba.com a écrit :
Hi Alex,
On 23 May 2012, at 00:57, Alexandre Bergel wrote:
Hi!
I've spent a bit of time in trying to port DSM to Roassal. Unfortunately not everything goes as smooth as I wished. The task is clearly doable, but it is a bit more than merely changing MOViewRenderer for ROMondrianViewBuilder. For example, there is code like: shapeOfDetailedHeader ^ MOFixedRectangleShape new width: 36; height: 10; withoutBorder; fontSize: 8; fontFamily: 'Accuny'
In Roassal, the width and the height is defined on the element, and not the shape. A ROBox does not know how to display text, it has to be added a ROLabel in it.
I think you are mistaken the width of a shape with the bounds of an element. For example, if you have a complex shape, you will have shapes with different widths within the same bounds of the overall element.
So, it should still be the responsibility of a shape to decide the visual width, and the responsibility of the element is to decide the spatial width.
On a related note, I mentioned before that even if you have decorators, you are still missing the possibility of the decorator to enlarge the bounds.
Cheers, Doru
Well... I feel the safer is to revert what I have done yesterday, and leaving DSM use Mondrian. Else if someone wants to rethink DSM a bit.
Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Value is always contextual."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev