First question: how can I make the arrows go to the border of the ellipse, instead of the center?
Attachpoint is your friend.
-=-=-=-=-=-=-=-=-=
| v e1 e2 l shape |
v := RTView new.
e1 := ((RTEllipse new size: 20) + RTLabel) elementOn: 'one'.
e2 := ((RTEllipse new size: 20) + RTLabel) elementOn: 'two'.
e1 @ RTDraggable.
e2 @ RTDraggable.
e2 translateTo: 60 @ 40.
shape := RTLine new color: Color red.
shape attachPoint: (RTShorterDistanceAttachPoint new).
l := shape edgeFrom: e1 to: e2.
v add: e1; add: e2; add: l.
-=-=-=-=-=-=-=-=-=
Second question: as a human I would draw each of the two arrows with a curve: one curving up and one curving down so that they (and their labels) do not overlap. Can I do something like this in Roassal? Because now readability is far from optimal.
We have no solution for now.
Probably we need a new shape, something like RTDistinctLine that gives a variation when necessary.
We can work on this, but not right now… You can also give a try if you wish.
Alexandre
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry
PLEIAD lab - Computer Science Department (DCC) - University of Chile
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.