Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how to avoid links to overlap any node ? (Read 3864 times)
jay
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 59
Joined: Feb 4th, 2009
how to avoid links to overlap any node ?
Feb 4th, 2009 at 10:03am
Print Post  
Hi,
 
   Whenever I move any node  in diagram, the links over lap some nodes or parent/ child node.
   How to resolve this problem.

Thank you.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to avoid links to overlap any node ?
Reply #1 - Feb 4th, 2009 at 10:44am
Print Post  
DiagramLink.setAutoRoute(true);

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
jay
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 59
Joined: Feb 4th, 2009
Re: how to avoid links to overlap any node ?
Reply #2 - Feb 4th, 2009 at 12:53pm
Print Post  
hi  Stoyan,

    Thanks for reply. I have tried this solution but it is not working.
    I have added ((DiagramLink)e.getLink()).setAutoRoute(true);
on the link creation event.

the code block also having statements ;
((DiagramLink)e.getLink()).setAllowMoveEnd(true);
((DiagramLink)e.getLink()).setAllowMoveStart(true);



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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to avoid links to overlap any node ?
Reply #3 - Feb 4th, 2009 at 1:15pm
Print Post  
If you have some large nodes in the background, call setObstacle(false) for them.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
jay
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 59
Joined: Feb 4th, 2009
Re: how to avoid links to overlap any node ?
Reply #4 - Feb 5th, 2009 at 5:22am
Print Post  
hi Stoyan,

            sorry, things were not working because of browser cache. later I cleared it and tested application your solution worked.
((DiagramLink)e.getLink()).setAutoRoute(true);

Thank you.
           
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint