Hi Peter,
I try to answer the best I can:
| v es eb |
v := RTView new.
v @ RTDraggableView @ RTZoomableView.
es := (RTEllipse new size: 12) elementsOn: (0 to: 2).
v addAll: es.
es do: [ :each | each @ RTDraggable @ RTLabelled ].
eb := RTEdgeBuilder new.
eb shape arrowedLine.
eb
view: v;
elements: es;
connectFrom: [ :value | value // 3 ].
RTTreeLayout new on: es.
v
The connectFrom: [ :value | value // 3 ] , in this case, create edges you probably do not
want to have. Such has 0 -> 0. Apparently the layout cannot handle this. Would be great
to fix this by the way.
Another version of your script could be:
-=-=-=-=-=-=-=-=-=-=-=-=
| v es eb |
v := RTView new.
v @ RTDraggableView @ RTZoomableView.
es := (RTEllipse new size: 12) elementsOn: (0 to: 2).
v addAll: es.
es do: [ :each | each @ RTDraggable @ RTLabelled ].
eb := RTEdgeBuilder new.
eb shape arrowedLine.
eb
view: v;
elements: es;
fromAssociations: { 0 ->1 . 0 ->2 }.
RTTreeLayout new on: es.
v
-=-=-=-=-=-=-=-=-=-=-=-=
It produces, as expected:
I have to say I did not understand much about the other questions. For example, the first
script, titled RTCircleLayout, what is the question exactly ?
Anyway, I had a look at your chapter, it is indeed an excellent start! Thanks for this!
It would be great if:
- you put the script to execute in the chapter. The readers should be able to cut
and paste the script from the chapter into Roassal. You may then reduce the size of each
figure by having just the graphic, and not the GT window.
This is great! Please continue!
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Mar 7, 2015, at 8:20 PM, Peter Uhnák
<i.uhnak(a)gmail.com> wrote:
Hi Alex,
I've done a first rough draft of the chapter, there are still missing parts because I
need to figure out the internal workings of some layouts and I've encountered some
issues.
Also I need to run it through spell-check. :)
Anyway, here is a list of questions and problems I have encountered when going through
it. There things that definitely looks like bugs, some of it might be result of my
misunderstanding (or not).
questions -
https://gist.github.com/peteruhnak/b62c776bcb93dedb849b
<https://gist.github.com/peteruhnak/b62c776bcb93dedb849b>
chapter draft -
https://dl.dropboxusercontent.com/u/83977405/Roassal%20Layout/Layout.pillar…
<https://dl.dropboxusercontent.com/u/83977405/Roassal%20Layout/Layout.pillar.html>
So please if you could look at the questions and give some response... either in the gist
or on the mailing list (or somewhere). Meanwhile I'll continue improving the chapter
and adding more text and simplifying the examples.
Peter
On Wed, Feb 25, 2015 at 2:00 PM, Alexandre Bergel <alexandre.bergel(a)me.com
<mailto:alexandre.bergel@me.com>> wrote:
this week Stef is visiting Prague so we are
working on other things. However I was planning to do the chapter next week; do you need
it done sooner?
No, it is fine. Ok, so you give the first shoot!
I will go over it then.
Cheers,
Alexandre
Peter
On Tue, Feb 24, 2015 at 11:35 PM, Alexandre Bergel <alexandre.bergel(a)me.com
<mailto:alexandre.bergel@me.com>> wrote:
Hi Peter!
Have you started to work on the chapter? If no, then no problem. I can work on it
tomorrow.
It would be really helpful that you review it then :=)
Let me know
Alexandre
On Feb 13, 2015, at 2:37 PM, Peter Uhnák
<i.uhnak(a)gmail.com <mailto:i.uhnak@gmail.com>> wrote:
On Fri, Feb 13, 2015 at 6:27 PM, Alexandre Bergel <alexandre.bergel(a)me.com
<mailto:alexandre.bergel@me.com>> wrote:
Hi Peter!
We will work on it. Before the end of February the chapter will be ready!
Ah, I didn't express myself clearly. :)
What I had in mind is that since I need to get familiar with it, I could contribute and
write the chapter (provided nobody is working on it already).
Peter
Alexandre
On Feb 13, 2015, at 9:30 AM, Peter Uhnák
<i.uhnak(a)gmail.com <mailto:i.uhnak@gmail.com>> wrote:
Hi,
Is anybody working on layout chapter?
This (summer) semester I'll be writing my bachelor thesis on model layouting and I am
using Roassal, so since I need to get familiar with Roassal layouting abilities I could as
well write something about it. :)
Peter
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch <mailto:Moose-dev@iam.unibe.ch>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
<https://www.iam.unibe.ch/mailman/listinfo/moose-dev>
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu <http://www.bergel.eu/>
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch <mailto:Moose-dev@iam.unibe.ch>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
<https://www.iam.unibe.ch/mailman/listinfo/moose-dev>
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch <mailto:Moose-dev@iam.unibe.ch>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
<https://www.iam.unibe.ch/mailman/listinfo/moose-dev>
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu <http://www.bergel.eu/>
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch <mailto:Moose-dev@iam.unibe.ch>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
<https://www.iam.unibe.ch/mailman/listinfo/moose-dev>
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch <mailto:Moose-dev@iam.unibe.ch>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
<https://www.iam.unibe.ch/mailman/listinfo/moose-dev>
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu <http://www.bergel.eu/>
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch <mailto:Moose-dev@iam.unibe.ch>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
<https://www.iam.unibe.ch/mailman/listinfo/moose-dev>
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev