Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Layout algorithm ignores Box/DiagrammNode bounds (Read 3164 times)
due
YaBB Newbies
*
Offline



Posts: 27
Joined: Jun 20th, 2007
Layout algorithm ignores Box/DiagrammNode bounds
Jul 12th, 2007 at 10:46am
Print Post  
Hello,

I use FlowChart.NET to create organization charts automatically. In this case, boxes with different sizes, caused by different text sizes, are required. So, it is not possible to determine one unique box size. To arrange the boxes I use the layout algorithms of FlowChart's Pro Edition. Unfortunately, these algorithms ignore the size of nodes!?

For example, the layered layout algorithm provides a NodeDistance property to specify the distance between adjacent nodes (in a layer). Obviously, this value will be interpreted as the distance of node's midpoints (center of box). That's the reason why the box size will not be considered and causes an ugly appearance (overlapping boxes). How can I define a box gap (distance among boxes)?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Layout algorithm ignores Box/DiagrammNode boun
Reply #1 - Jul 12th, 2007 at 11:26am
Print Post  
Hi,

Currently only the TreeLayout considers the size of nodes while arranging them. You could use it instead of LayeredLayout to arrange the organizational charts.

Stoyan
  
Back to top
 
IP Logged
 
due
YaBB Newbies
*
Offline



Posts: 27
Joined: Jun 20th, 2007
Re: Layout algorithm ignores Box/DiagrammNode boun
Reply #2 - Jul 12th, 2007 at 12:00pm
Print Post  
The result of TreeLayout is disappointing.

I guess the TreeLayout does not fit for charts with more than one root node, e.g. two or three chief executive officer.

Do you implement this essential feature (at least for LayeredLayout) in Version 5?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Layout algorithm ignores Box/DiagrammNode boun
Reply #3 - Jul 12th, 2007 at 12:42pm
Print Post  
Well, that's not exactly a tree. We'll try to implement node size processing for the layered layout while version 5 is in beta tests.

Stoyan
  
Back to top
 
IP Logged
 
due
YaBB Newbies
*
Offline



Posts: 27
Joined: Jun 20th, 2007
Re: Layout algorithm ignores Box/DiagrammNode boun
Reply #4 - Jul 16th, 2007 at 5:06am
Print Post  
Thank you for your quick reply.
Now, I am looking forward to using version 5...
  
Back to top
 
IP Logged
 
due
YaBB Newbies
*
Offline



Posts: 27
Joined: Jun 20th, 2007
Re: Layout algorithm ignores Box/DiagrammNode boun
Reply #5 - Oct 11th, 2007 at 12:05pm
Print Post  
After updating to version 5 the layered layout algorithm still have the same behavior (ignores node size) ???
Or did I miss something?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Layout algorithm ignores Box/DiagrammNode boun
Reply #6 - Oct 12th, 2007 at 4:57am
Print Post  
Sorry, we haven't implemented this yet.

Stoyan
  
Back to top
 
IP Logged
 
due
YaBB Newbies
*
Offline



Posts: 27
Joined: Jun 20th, 2007
Re: Layout algorithm ignores Box/DiagrammNode boun
Reply #7 - Oct 12th, 2007 at 9:21am
Print Post  
Sad
When is this going to be available?
(at end of October?)
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Layout algorithm ignores Box/DiagrammNode boun
Reply #8 - Oct 12th, 2007 at 12:02pm
Print Post  
I don't know. We'd like to have this feature too, but it's not that easy to implement.

We have recently added support for different node sizes to the AnnealLayout. I can send you a preview build of version 5.0.1 if you wish to try it.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Layout algorithm ignores Box/DiagrammNode boun
Reply #9 - Oct 16th, 2007 at 8:20am
Print Post  
Hi,

This version contains an updated LayeredLayout that considers the nodes sizes:

https://mindfusion.org/_temp/fcnet501_pre.zip

The implementation is still in experimental stage, so that's disabled by default. To try it, set

LayeredLayout.IgnoreNodeBounds = false;

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint