Hi Alex,

Thanks for the script.

On Mon, Oct 21, 2013 at 11:33 PM, Alexandre Bergel <alexandre.bergel@me.com> wrote:
Hi Martin,

A roassal view has a camera attached to it. Moving the camera may actually what you need. Consider this example:

| builder |
builder := ROMondrianViewBuilder new.
builder nodes: Collection withAllSubclasses.
builder edgesFrom: #superclass.
builder treeLayout.
builder open.

builder raw camera bounds: (0 @ 0 extent: 700 @ 700).

What would be nice is to know the bounds of the visualization and set those as camera bounds so that the complete visualization is displayed. Is there a way to see the bounds of the displayed visu?

I tried to play a bit with ROCamera>>moveToSee: but it simply moves the camera in x-y coordinates.


To play with it, you can open an inspector on the view (i.e., builder raw inspect) as illustrated in the screenshot:

Let us know if this fits your need or not.


On Oct 21, 2013, at 5:34 PM, MartinW <wm@fastmail.fm> wrote:


i use Roassal graphs in Glamour panes, and i wonder if there is a way to
zoom and center the Roassal graph so that it fits entirely into its Glamour
pane. Can this be done?

Best regards,

View this message in context: http://forum.world.st/Zoom-to-fit-pane-for-Roassal-tp4716227.html
Sent from the Moose mailing list archive at Nabble.com.
Moose-dev mailing list

Alexandre Bergel  http://www.bergel.eu

Moose-dev mailing list