Hi Anne,
I've just added a Roassal plugin with the GraphViz-based layout.
Note that I had to hack it to work with RTMultiLine (it was originally
designed for different lines which are currently not part of Roassal),
so it's possible there will be some issues.
You can load it (if you have latest Roassal installed) via the Roassal
plugin menu,
or by executing the following
Metacello new
baseline: 'GraphVizLayout';
repository: 'github://peteruhnak/graphviz-layout:master/repository';
load
Then look at the class-side examples in RTGraphVizLayout.
Finally if you use this, you shouldn't move elements within the layout
(because graphviz layout hard-codes the pathing)… we could probably change
this in the future, but I am not sure how (ideally the layout would have to
be recomputed, but that's expensive to do live),
So to summarize:
* you must have GraphViz installed in your system
* you must use RTMultiLine for lines (because only they support bending)
Let me know how it goes,
Peter
On Thu, Feb 25, 2016 at 2:02 PM, Tudor Girba <tudor(a)tudorgirba.com> wrote:
Oh, I missed this one :). So, now I can refactor the
code that is still
using the RTEdge class side methods :).
Great!
Thanks,
Doru
On Feb 25, 2016, at 1:59 PM, Alexandre Bergel
<alexandre.bergel(a)me.com>
wrote:
Oh, but this has been in Roassal for many months (I have implemented
since right
after ESUG). You need to use #source:connectFrom:toAll:
Here is an example that randomly generate a graph and render it using
this
facility:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
nbOfNodes := 40.
nbOfRandomEdges := 40.
nodes := 1 to: nbOfNodes.
edges := (1 to: nbOfRandomEdges)
collect: [ :notUsed | nodes atRandom ->
{nodes
atRandom . nodes atRandom} ].
b := RTMondrian new.
b shape circle color: (Color black alpha: 0.5).
b nodes: nodes.
b shape line color: (Color gray alpha: 0.3).
b edges
source: edges connectFrom: #key toAll: #value.
b layout force.
b
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<Screen Shot 2016-02-25 at 1.57.24 PM.png>
Cheers,
Alexandre
> On Feb 25, 2016, at 1:37 PM, Tudor Girba <tudor(a)tudorgirba.com> wrote:
>
> Hi,
>
> We discussed this before. Try to draw a hierarchy using classes and
inheritance objects (so, without using the class to superclass navigation).
Something like this:
>
> view := RTMondrian new.
> view nodes: classes.
> view edges objects: inheritances; connectFrom: #superclass to:
#subclass.
> view layout tree.
> view
>
> It won’t work.
>
> Cheers,
> Doru
>
>
>> On Feb 25, 2016, at 1:29 PM, Alexandre Bergel <alexandre.bergel(a)me.com>
wrote:
>>
>> Do you have an example? I am not sure to understand.
>>
>> Alexandre
>>
>>
>>> On Feb 25, 2016, at 12:40 PM, Tudor Girba <tudor(a)tudorgirba.com>
wrote:
>>>
>>> This is very cool. We will all benefit from this documentation.
>>>
>>> One thing that I would still like to see fixed before the release is
the edge building (this problem of not being able to properly specify
random objects to be taken into account when building edges). Could we work
on that?
>>>
>>> Cheers,
>>> Doru
>>>
>>>
>>>> On Feb 24, 2016, at 9:51 AM, Alexandre Bergel <
alexandre.bergel(a)me.com> wrote:
>>>>
>>>> Dear community,
>>>>
>>>> As you may have seen, Roassal has entered a stabilization phase. The
book
AgileVisualization.com will soon be released. After its release,
Roassal will go over a new development phase. In order to prepare it, I am
asking this question:
>>
>> What are the 3 aspects you would like to see improved in Roassal?
>>
>> You can answer publicly or by sending private messages.
>>
>> Kind regards,
>> Alexandre
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel
http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> Moose-dev(a)list.inf.unibe.ch
>>
https://www.list.inf.unibe.ch/listinfo/moose-dev
>
> --
>
www.tudorgirba.com
>
www.feenk.com
>
> “Live like you mean it."
>
>
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev
--
www.tudorgirba.com
www.feenk.com
"Value is always contextual."
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev
--
www.tudorgirba.com
www.feenk.com
"Next time you see your life passing by, say 'hi' and get to know
her."
_______________________________________________
Moose-dev mailing list
Moose-dev(a)list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev