Hello.
I apologize in advance if this is the wrong list for suggestions for Mondrian, or if what I suggest has been implemented and I just haven't been able to find it.
Missing layout: Rectangle packing. There have been quite a few times when it would be -really- convenient to have the smallest possible rectangle, but all of the layouts seem to waste space to some degree, unless the data really -should- be stored in a straight line.
Missing feature: a way to have labels which are always visible, but perhaps only legible on the larger nodes. [What inspires this is trying to look at a callgraph using SugiyamaLayout, which works very nicely, but not being able to label the nodes without it suddenly being several times wider; the visual information gets entirely lost in the sprawl.]
Regards; Katerina Barone-Adesi
Hi Kat,
Thanks for the suggestions.
Missing layout: Rectangle packing. There have been quite a few times when it would be -really- convenient to have the smallest possible rectangle, but all of the layouts seem to waste space to some degree, unless the data really -should- be stored in a straight line.
Do I understand correctly that what you would want is a layout that given nodes that have different shapes would result in the smallest possible rectangle? This is something we wanted to do a long time ago, but we just did not know how the algorithm is called. If you have some ideas, it would be great to hear them.
The closest possibility we have at the moment is to order the nodes based on the height and then use a grid or flow layout.
Missing feature: a way to have labels which are always visible, but perhaps only legible on the larger nodes. [What inspires this is trying to look at a callgraph using SugiyamaLayout, which works very nicely, but not being able to label the nodes without it suddenly being several times wider; the visual information gets entirely lost in the sprawl.]
At the moment, the label decides the size of the node. I guess that what you want is a label that is only partially visible based on a specified width.
So, in MondrianDevelopment 1.14 I added width to the LabelShape, and if the width is specified then the label is cropped to that width. It is still clumsy, because it does not show any sign that the label is larger. Does this help?
Cheers, Doru
-- www.iam.unibe.ch/~girba www.iam.unibe.ch/~girba/blog/
"The coherence of a trip is given by the clearness of the goal."
FYI, Ricky implemented it for CodeCity, since it's a 2D layout algorithm, I don't see any major problems with porting it..
Michele
On Jun 19, 2007, at 10:07 , Tudor Girba wrote:
Do I understand correctly that what you would want is a layout that given nodes that have different shapes would result in the smallest possible rectangle? This is something we wanted to do a long time ago, but we just did not know how the algorithm is called. If you have some ideas, it would be great to hear them.
Hi,
Could you point me to the layout class?
I tried to take a look at CodeCity to see which is the layout and how it looks like, but I only got an empty city.
Cheers, Doru
On Jun 19, 2007, at 12:26 PM, Michele Lanza wrote:
FYI, Ricky implemented it for CodeCity, since it's a 2D layout algorithm, I don't see any major problems with porting it..
Michele
On Jun 19, 2007, at 10:07 , Tudor Girba wrote:
Do I understand correctly that what you would want is a layout that given nodes that have different shapes would result in the smallest possible rectangle? This is something we wanted to do a long time ago, but we just did not know how the algorithm is called. If you have some ideas, it would be great to hear them.
-- www.iam.unibe.ch/~girba www.iam.unibe.ch/~girba/blog/
"No matter how many recipes we'll know, we'll still value a chef."