Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic FlowchartLayout problem (Read 2038 times)
cbh
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Sep 3rd, 2009
FlowchartLayout problem
May 10th, 2010 at 3:58pm
Print Post  
Hi,

With version 5.3.4, I use FlowchartLayout to layout with Anchoring = Anchoring.Keep  but after call to Arrange method some anchors are changed.
My nodes are group with shapes.

I 've tried with Anchoring.Ignore but result is same.

Is it also possible to center first item in doc area ?
Regards
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowchartLayout problem
Reply #1 - May 10th, 2010 at 5:32pm
Print Post  
Hi,

FlowchartLayout inherits this property from the base class but does not use it. Especially the Keep value would require the branch sorting logic to be changed to use the geometric order of the links' anchor points, and that's not supported at this time.

To center horizontally the first node in the diagram, call ResizeToFitItems, find max(diagram.right - firstNode.right, firstNode.left - diagram.left), and set the diagram's left and right sides to the node's left and right inflated by this value.

Stoyan
  
Back to top
 
IP Logged
 
pbabu
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Jul 10th, 2010
Re: FlowchartLayout problem
Reply #2 - Jul 10th, 2010 at 11:35pm
Print Post  
I made the AllowLinksRepeat= false in my diagram and it works good. But while using flowchart layout, it shows duplicate links between one node to other node. That mean it shows unique path in my flow chart, which I don't need.

Can you please tell me how to disable duplicate links in flowchart.

but it works in diagram.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowchartLayout problem
Reply #3 - Jul 11th, 2010 at 8:55am
Print Post  
AllowLinksRepeat only prevents drawing a second link interactively in the same direction. Are you trying to prevent drawing a link in the opposite direction too, or need to add a check for repeating links when adding them from code?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint