DirectedGraphLayout reassigns width and height [message #233947] |
Mon, 07 May 2007 13:27 |
Raheel Ashraf Messages: 2502 Registered: July 2009 |
Senior Member |
|
|
HI,
I found it strange that we have to assign the node's width and height
before we can layout the graph (i.e. use DirectedGraphLayout) but what is
strange is that after this layout algorithm finishes, it reassigns the
height and width to the nodes. Why is that? So its like I begin by saying
that all my nodes are 80x80 and then once the layout is done, some nodes
come out to be 5,80 some 25,80 etc. This makes the graph look and feel
inconsistent because all labels (I am drawing the nodes as Labels) now are
of different sizes. As a result some of these labels wouldn't even contain
the full text. Any work around this?
|
|
|
Powered by
FUDForum. Page generated in 0.02416 seconds