ROMondrianFrame

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ROMondrianFrame

Ben Coman
Just for general knowledge, in the context of
ROMondrianViewBuilder>>addEdge:,
what is the meaning of "frameOfElement" ?
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: ROMondrianFrame

abergel
I introduced the frames to delay the layout of the nodes until the end.

Before I introduced the frames, you needed to layout the nodes while you are building your visualization. However, it may happen that edges are added later on in a script.

Consider the example:

1 - view node: 'hello' forIt: [
2 - view nodes: #(1 2).
3 - view treeLayout.
4 - ].
5 - view edgeFromAssociation: 1 -> 2.

In Lines 2 and 3 you defines two nodes and layout them. But there is no edge defined yet.
The edge between 1 and 2 is defined after you have set which layout you want to use. So the tree layout has to be delayed until the very hand.

The edge 1->2 is added to the frame that corresponds to the the nesting [ view nodes: #(1 2) ... ]

Does it make sense?

Cheers,
Alexandre


On Sep 29, 2012, at 11:25 AM, Ben Coman <[hidden email]> wrote:

> Just for general knowledge, in the context of ROMondrianViewBuilder>>addEdge:,
> what is the meaning of "frameOfElement" ?
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev