Strange. It works for me:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| v es edges shape |
v := RTView new.
es := (RTEllipse new size: 20; color: (Color blue alpha: 0.4)) elementsOn: (1 to: 20).
RTCircleLayout new initialRadius: 100; on: es.
v addAll: es.
shape := RTLine new color: Color red.
edges := RTEdge
buildEdgesFromObjects: (1 to: 20)
from: [ :value | value // 2 ]
to: #yourself
using: shape
inView: v.
v canvas addMenu: 'change color' callback: [ shape color: Color random. edges do:
#update. v signalUpdate ].
v open
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Else, you can directly change the color of the Trachel shape behind the edge:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| v es edges shape |
v := RTView new.
es := (RTEllipse new size: 20; color: (Color blue alpha: 0.4)) elementsOn: (1 to: 20).
RTCircleLayout new initialRadius: 100; on: es.
v addAll: es.
shape := RTLine new color: Color red.
edges := RTEdge
buildEdgesFromObjects: (1 to: 20)
from: [ :value | value // 2 ]
to: #yourself
using: shape
inView: v.
v canvas addMenu: 'change color' callback: [ edges do: [ :e | e trachelShape
color: Color random ]. v signalUpdate ].
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Let me know how it goes...
v open
On Apr 27, 2014, at 5:11 PM, Johan Fabry <jfabry(a)dcc.uchile.cl> wrote:
Also, could it be that changing colors of edges when they are already displayed is
broken? If I have an RTEdge in the variable edge (and it is blue) and I do the following
**after the view has already been opened** nothing happens:
edge shape color: Color red.
edge update.
view signalUpdate
On Apr 27, 2014, at 7:28 AM, Johan Fabry <jfabry(a)dcc.uchile.cl> wrote:
(Back online now, I was/am traveling …)
Thanks Alex, it looks better now. But the labels are actually at the beginning
extremities, maybe it would be better to indeed have them at the end? Look at the example
to see the current situation, it does not look so good when the lines are long (green and
orange line), plus for me it is confusing to have the label at the beginning of the line
(blue lines).
Also, font size is not uniform anymore, I have no idea why this suddenly changed. Not
pretty :-(
<123.tiff>
On Apr 25, 2014, at 11:25 AM, Alexandre Bergel <alexandre.bergel(a)me.com> wrote:
I have updated Roassal. Edges are now slightly
closer to the ending extremities.
Under the last version of Roassal, your code produces:
<Screen Shot 2014-04-25 at 11.24.36 AM.png>
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(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
---> 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(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.