On 12 Nov 2012, at 23:01, Alexandre Bergel <alexandre.bergel(a)me.com> 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(a)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(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
"Every successful trip needs a suitable vehicle."
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch