Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Connection layout (Read 2280 times)
Rico
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: May 4th, 2009
Connection layout
May 4th, 2009 at 9:25am
Print Post  
Hi,

I need a diagram with connections which are looking always like in the first screenshot:

All connections should use the same AnchorPoint of a Node and the same StartOrientation and then seperate on a horizontal line.

Sometimes it looks like:


or even worse, like:


How can I make sure that it looks always like on the first screenshot?

I set:
diagram1.setLinkSegments((short)3);
diagram1.getRoutingOptions().setEndOrientation(Orientation.Vertical);
diagram1.getRoutingOptions().setStartOrientation(Orientation.Vertical);

Thank you very much,
Rico
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Connection layout
Reply #1 - May 4th, 2009 at 12:14pm
Print Post  
Hi,

Call Diagram.setLinkCascadeOrientation(Vertical) before creating the links, or set the individual property of newly created links. What you set in RoutingOptions is considered only for AutoRouted links, but they ignore the SegmentCount set by you, so might turn up with a very different shape. You could also set your own positions for the link bend points by assigning them to the DiagramLink.getControlPoints() list.

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


I love YaBB 1G - SP1!

Posts: 6
Joined: May 4th, 2009
Re: Connection layout
Reply #2 - May 5th, 2009 at 6:12am
Print Post  
Hi!

Perfect. That's what I need.

Thanks!!!
Rico
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint