Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Automatic positioning for items on diagram (Read 1592 times)
rlira
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: Apr 28th, 2011
Automatic positioning for items on diagram
Apr 28th, 2011 at 7:15pm
Print Post  
Hi everyone!

I'm looking forward to buy the component for my company. I have been trying the trial version and so far looks exactly what we need.

On our application, however, we already have all data to create a diagram on the database (elements, names, links). So, the user won't exactly use it to draw a new diagram. Mainly what we need is to display the data currently on our database.

As stated above, I can query the elements and links and what I want is to add them to the diagram.

The problem I'm having is that addind a new element requires that I provide X and Y coordinates. Is it possible to make the component position everything automatically based on all elements and links?

Thanks in advance.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Automatic positioning for items on diagram
Reply #1 - Apr 28th, 2011 at 7:51pm
Print Post  
Hi!

It's possible; select some class derived from Layout and call its Arrange method after creating all nodes and links. E.g. if you data is hierarchical, try TreeLayout or LayeredLayout. For arbitrary graphs, try the Annealing, Spring or Layered algorithms.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint