Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how can i use two components (Read 3563 times)
taxi00driver
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Apr 19th, 2010
how can i use two components
Apr 19th, 2010 at 11:30am
Print Post  
Hi,

I have big problem with my script. I must use SpringLayout and LayeredLayout, but I don't now how i can do that.

Pleas help me !
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how can i use two components
Reply #1 - Apr 19th, 2010 at 1:03pm
Print Post  
Do you need to run the layout functions from JavaScript?
  
Back to top
 
IP Logged
 
taxi00driver
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Apr 19th, 2010
Re: how can i use two components
Reply #2 - Apr 19th, 2010 at 2:07pm
Print Post  
I only use c#  Wink
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how can i use two components
Reply #3 - Apr 19th, 2010 at 7:15pm
Print Post  
Create an instance of the respective layout class and call its Arrange method, or is there something more specific you need?
  
Back to top
 
IP Logged
 
taxi00driver
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Apr 19th, 2010
Re: how can i use two components
Reply #4 - Apr 20th, 2010 at 8:39am
Print Post  
I writing a script that show me the data and drawing the connection lines and Nodes so that nothing crossed.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how can i use two components
Reply #5 - Apr 20th, 2010 at 10:39am
Print Post  
The only layout class that guarantees there won't be crossings if the underlying graph is planar is OrthogonalLayout.

For SpringLayout, set MinimizeLinkCrossings = true and run more iterations; that usually manages to remove the crossings.

LayeredLayout always tries to minimize crossings, but it doesn't guarantee there won't be ones. Still if your graph is planar and not very dense, it usually draws the graph without crossings.

Stoyan
  
Back to top
 
IP Logged
 
taxi00driver
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Apr 19th, 2010
Re: how can i use two components
Reply #6 - Apr 20th, 2010 at 12:16pm
Print Post  
and it is it. great thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint