Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Continuation to scatter the boxes in chart (Read 15577 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Continuation to scatter the boxes in chart
Reply #15 - Jul 3rd, 2007 at 5:19am
Print Post  
8) Well, if you don't call the AnnealLayout.setLayoutArea method, the layout algorithm will choose some size it deems fine for the current number of nodes and their sizes. If you don't like the area size the algorithm chooses when it is not explicitly set, find this comment in the jlayout\AnnealLayout.java:

// Determine what the graph boundaries should be

and try increasing or decreasing the size factor used after it (currently 2.4f).

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Re: Continuation to scatter the boxes in chart
Reply #16 - Jul 3rd, 2007 at 12:12pm
Print Post  
I think this solved the issue.
But I have another problem. I think I don't have the most updated AnnealLayout.java - when I try to run the code from the compiled source it takes ages to work. Can you resend me the sources?

And another question: after seeing how important this "spacing factor" is, can you add it as a variable of the Anneal layout? Something like setSpacingFactor(float)

Thanks,
Yoav
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Continuation to scatter the boxes in chart
Reply #17 - Jul 3rd, 2007 at 12:57pm
Print Post  
Hi,

Ok, we will add some property for the spacing factor as well.

You can find the latest source code zipped in jdiag.src.zip, which should be included in the zip file you have received as an upgrade to v.1.2.1.

Stoyan
  
Back to top
 
IP Logged
 
ymoran00
Full Member
***
Offline



Posts: 163
Joined: May 2nd, 2007
Re: Continuation to scatter the boxes in chart
Reply #18 - Jul 3rd, 2007 at 12:59pm
Print Post  
Thanks!
Yoav
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint