[Moose-dev] Re: Help needed with class hierarchy visualization
Tudor Girba
tudor.girba at gmail.com
Fri Oct 30 13:40:16 MET 2009
Hi,
To make sure that the tree shows the inheritance relationships you
also have to make sure that you tell the treeLayout to only consider
the inheritance edges:
| inh |
view nodes: classGroup.
view edgeShape: MOOrthoVerticalLineShape new.
inh := view edgesFrom: #superclass.
view treeLayout userDefinedEdges: inh.
view edges: classGroup from: #yourself toAll: #invokedClasses using:
(MOCurveFitterShape new color: Color red).
Cheers,
Doru
On 30 Oct 2009, at 13:31, Simon Denier wrote:
>
> On 30 oct. 2009, at 11:21, Tudor Girba wrote:
>
>> Yes, you can :).
>>
>> It would be helpful to start by sending to the list the script that
>> you tried to create and then we go from there.
>
> As a starter, you can try the following script in a MOEasel
>
> view nodes: classGroup.
> view edgeShape: MOOrthoVerticalLineShape new.
> view edgesFrom: #superclass.
> view treeLayout.
> view edges: classGroup from: #yourself toAll: #invokedClasses using:
> (MOCurveFitterShape new color: Color red).
>
>
> It needs much polishing to make it more readable/usable though
> (beginning with filtering the invokedClasses like you want)
>
>
>>
>> Are you using VW or Pharo?
>>
>> Cheers,
>> Doru
>>
>>
>> On 30 Oct 2009, at 11:05, Usman Bhatti wrote:
>>
>>> Hi all,
>>>
>>> I am looking to visualize my class hierarchy in moose in such a
>>> way that the method calls within classes is overlapped over the
>>> class hierarchy visualization.
>>>
>>> In addition to this, I am looking to filter the visualization
>>> results by specifying invoked methods so that my visualization
>>> does not get cluttered with all the method calls within the class
>>> hierarchy. Can I generate such a visualization with Moose?
>>>
>>> regards,
>>>
>>> Usman
>>> _______________________________________________
>>> Moose-dev mailing list
>>> Moose-dev at iam.unibe.ch
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> www.tudorgirba.com
>>
>> "Be rather willing to give than demanding to get."
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> Moose-dev at iam.unibe.ch
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> Simon
>
>
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev at iam.unibe.ch
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"Not knowing how to do something is not an argument for how it cannot
be done."
More information about the Moose-dev
mailing list