Thanks Alexandre.  That was just what I was looking for.  I didn't know how to use the camera. 

Now that gets me halfway, but it doesn't work for all sizes of the Visualization window. If I monitor the camera by adding the following line...
    rawView elements do: [ :el2 | el2 @ (ROMenuActivable new item: 'camera' action: [ rawView camera inspect]) ].

...then I notice that as I drag the background around, the camera 'position' updates.  Similarly I thought perhaps the camera 'extent' or 'realExtent' should be updating as I resize Visualization, but they do not.

Could you try changing the Visualisation window size and then running the script.

btw, I notice that ROCamera is created in both ROAbstractCamvas>>initialize and ROView>>initialize.
How do these relate?

cheers -ben

P.S. just to remove doubt, I don't need this to be pinned dynamically the bottom left, just to set the default position of the layout. ) 
P.P.S note that I will be wanting to use this from Glamour, and in particular in my project in the image you have previously downloaded in the mothod EpCimtest>>showClassRelationshipsSelected: just following the ROHorizontalTreeLayout (which you can leave for me to check)





Alexandre Bergel wrote:
Something like:

#(1 2 3 4 5 6 7 8 9) do:
[
  :x |
  rawView add: (ROElement spriteOn: x) + ROLabel.
].
rawView add: (ROEdge lineFrom: rawView elements seventh to: rawView elements eighth).
rawView add: (ROEdge lineFrom: rawView elements seventh to: rawView elements ninth).
(ROHorizontalTreeLayout new verticalGap: 40; horizontalGap:60) on: rawView elements.

  rawView elements do: [ :el | el @ (ROMenuActivable new item: 'act' action: #inspect) ].
 
rawView translateTo: 0 @ ((rawView elements collect: [:el | el position y + el height] ) max negated + rawView camera bounds height ).  

Cheers,
Alexandre

On Nov 11, 2012, at 10:31 PM, Ben Coman <btc@openInWorld.com> wrote:

  
With Roassal after applying a layout, I would like to be able to translate the graph such that the bottom left corner of the graph is displayed.  Is there someway to do that already?
I looked into ROFocusView, ROCanvas & ROCamera, but could not work it out what was needed.
With the script below, the attached image is what I would like to see.

"-------------"
#(1 2 3 4 5 6 7 8 9) do:
[
  :x |
  rawView add: (ROElement spriteOn: x) + ROLabel.
].
rawView add: (ROEdge lineFrom: rawView elements seventh to: rawView elements eighth).
rawView add: (ROEdge lineFrom: rawView elements seventh to: rawView elements ninth).
(ROHorizontalTreeLayout new verticalGap: 40; horizontalGap:60) on: rawView elements.
"HERE TRANSLATE CANVAS/CAMERA TO SHOW NODES 7, 8 & 9 IN THE BOTTOM LEFT CORNER OF WINDOW PANE"
"-------------"

cheers -ben

<Roassal-how-to-show-bottom-left-corner.png>_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev