Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic arrange diagram (Read 1846 times)
nick00
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 44
Joined: Nov 7th, 2008
arrange diagram
Feb 3rd, 2009 at 2:38pm
Print Post  
hi,
I am creating the node and simulteniously arraging the node horizontal manner, and then linking them according the relation in DB.
I set CascadeOrientation= vertical
linkstyle= cascade
lsegments= 3
but still my links appears

horizatally, I want the link attaches the nodes from top of the node.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: arrange diagram
Reply #1 - Feb 3rd, 2009 at 3:07pm
Print Post  
Try it in this order:

link.Style = LinkStyle.Cascading;
link.SegmentCount = 3;
link.CascadeOrientation = Orientation.Vertical;
  
Back to top
 
IP Logged
 
nick00
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 44
Joined: Nov 7th, 2008
Re: arrange diagram
Reply #2 - Feb 3rd, 2009 at 3:50pm
Print Post  
Actually I am trying to show the nodes in two ways
TableNode View
ElipseNode View

If I use the above code while creating the links
I get the result as shown 1 and 2 image
Image1:

Image2:


but after creating link if i update the control point I got the images 3 and 4- problem with this is my links getting overlapped i want to show each link separatly, yes they can cross but not overlape each other, see image 5 where overlapping effect is clear.
Image 3:

Image 4:

Image 5:

but i believe even i dont want to update the control points i can still get the effect which i am expecting. Is there any way without updating the control points.
  
Back to top
 
IP Logged
 
nick00
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 44
Joined: Nov 7th, 2008
Re: arrange diagram
Reply #3 - Feb 4th, 2009 at 2:22pm
Print Post  
Hello,

After some calculations on Link.ControlPoint
somehow i got the layout which i want,
Now my consern is if my layout is very huge, in that case I dont know how it will work, is this lowers down the pwrformance.
if yes! then
Is there any other way instead of updating each link's control point.

thanks,
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: arrange diagram
Reply #4 - Feb 4th, 2009 at 2:42pm
Print Post  
Hi,

This looks as if it can be implemented to run in linear time on the number of links. If you are using only a single loop over Diagram.Links, there's nothing to worry about Wink

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