Page Index Toggle Pages: 1 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) layerlayout (Read 10219 times)
vchimakurthi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Apr 6th, 2011
Re: layerlayout
Reply #15 - Apr 7th, 2011 at 12:30pm
Print Post  
hi stoyo
i wrote like

childNode.Shape = Shapes.Terminator;
           childNode.Bounds = new RectangleF(0, 0, 20, 15);
           
           ShapeNode label =diagram.Factory.CreateShapeNode(0,0,20,15);
           label.AttachTo(childNode, AttachToNode.BottomCenter);
           label.Text = name;
           label.TextFormat.LineAlignment = StringAlignment.Center;
           label.Transparent = true;
           label.Locked = true;

i was not setting the bounds of nodes
arranging using layered layout

but they are arranging leftcentre  of the node
i chang different alignments but the same result

how can i at the bottom

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: layerlayout
Reply #16 - Apr 7th, 2011 at 12:48pm
Print Post  
Hi,

Create the label below the image node, because AttachTo(Bottom) only preserves the initial offset from the attached node to the master node, and won't actually move it there. E.g.

label = diagram.Factory.CreateShapeNode(0,childNode.Bounds.Bottom,20,15);

Then also run LayeredLayout using the KeepGroupLayout option, so that it does not process the labels as independent nodes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
vchimakurthi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Apr 6th, 2011
Re: layerlayout
Reply #17 - Apr 7th, 2011 at 2:33pm
Print Post  
hi ,

childNode.Shape = Shapes.Terminator;
           childNode.Bounds = new RectangleF(0, 0, 20, 15);

           ShapeNode label = diagram.Factory.CreateShapeNode(0, childNode.Bounds.Bottom, 20, 15);
           label.AttachTo(childNode, AttachToNode.BottomCenter);
           label.Text = name;
           label.TextFormat.LineAlignment = StringAlignment.Center;
           label.Transparent = true;
           label.Locked = true;

layerLayout.KeepGroupLayout = true;

but still no change only on left side showing the nodes

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: layerlayout
Reply #18 - Apr 7th, 2011 at 2:46pm
Print Post  
It works fine in my test app. Are you sure you have set KeepGroupLayout before calling LayeredLayout.Arrange()?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: layerlayout
Reply #19 - Apr 7th, 2011 at 2:59pm
Print Post  
and you are not also running the diagram.Nodes loop from a few posts to arrange nodes in a grid before calling LayeredLayout?
  
Back to top
 
IP Logged
 
vchimakurthi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Apr 6th, 2011
Re: layerlayout
Reply #20 - Apr 8th, 2011 at 12:05pm
Print Post  
hi stoyo,

what layout i can use so that no of node connected to center root node  at the middle  and node arranged as in circular manner

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: layerlayout
Reply #21 - Apr 8th, 2011 at 12:20pm
Print Post  
Hi,

TreeLayout with its Type property set to Radial.

Stoyan
  
Back to top
 
IP Logged
 
vchimakurthi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Apr 6th, 2011
SpringLayout
Reply #22 - Apr 8th, 2011 at 2:03pm
Print Post  
hi,

i am using spring layout.
how to avoid the overlapping of the link between nodes.

thanks

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: layerlayout
Reply #23 - Apr 8th, 2011 at 2:29pm
Print Post  
SpringLayout cannot guarantee that, but there should be less overlappings if you set its LinkType property to Rounded. You could also try the v5.6.2 beta, it leaves more empty space around large nodes which should lead to fewer overlappings too.
  
Back to top
 
IP Logged
 
vchimakurthi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Apr 6th, 2011
Re: springlayout
Reply #24 - Apr 11th, 2011 at 4:47pm
Print Post  
hi,

how come we prevent nodes overlapping each others in springlayout

(how can i attach an image in the message posting to you)

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: layerlayout
Reply #25 - Apr 12th, 2011 at 8:37am
Print Post  
Hi,

Try setting larger RepulsionFactor, or use v5.6.2 - it should prevent overlapping nodes if the graph is not very dense.

Stoyan
  
Back to top
 
IP Logged
 
vchimakurthi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Apr 6th, 2011
Re: layerlayout
Reply #26 - Apr 12th, 2011 at 8:50am
Print Post  
hi,

From where i can download v5.6.2 please give me the link

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: layerlayout
Reply #27 - Apr 12th, 2011 at 10:51am
Print Post  
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint