Hi Wm,
I fixed a bug, so please update Roassal
The easiest way to update the width of lines is to use the RTMetricNormalizer (because I
guess that you need most of the to normalize the width). Here is an example:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
b := RTMondrian new.
b shape circle.
b nodes: (1 to: 50).
b shape line color: Color gray trans.
b edges connectTo: [ :v | v * 2 ].
b layout force.
b normalizer
normalizeSize: #yourself;
normalizeColor: #yourself;
alphaColor: 0.4;
normalizeLineWidth: [ :fromValue :toValue | fromValue + toValue ] min: 1 max: 5.
b
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
While answering to your email I found some bugs. Please update Roassal by evaluating the
code: RTUpdateRoassalPlugin new execute
The script above produces the following picture:
Let us know how it goes
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Jan 31, 2017, at 12:03 AM, Wm Annis
<wm.annis(a)gmail.com> wrote:
As part of a larger project I'm trying to recreate some functionality
that can be seen here:
http://clics.lingpy.org/browse.php?gloss=carry+%28bear%29&view=community
At this point I can slurp the data out of a database and get a graph
with Mondrian. What I cannot figure out is how I might change the
styling on the edges to represent weights. All I have found so far
is RTEdgeBuilder>>#label:, which is better than nothing, but is sort
of a mess visually in complex graphs. Changing edge width would be
tidier.
I'm still working my brain around how Smalltalk does things, so my
apologies in advance if I'm missing something obvious.
--
wm
--
View this message in context:
http://forum.world.st/Mondrian-edge-styling-tp4932317.html
Sent from the Moose mailing list archive at
Nabble.com.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev