Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how to set link header snap to corners of a node ? (Read 2340 times)
jay
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 59
Joined: Feb 4th, 2009
how to set link header snap to corners of a node ?
Feb 19th, 2009 at 5:31am
Print Post  
Hi stoyan,

              I am creating shapeNode with shape "Decision". The link end or header snaps it to border as it is set. But i want that any incoming link or outgoing link from it should snap to nearby corner edge of that Decision shape node, not on any part of border.
               How to achieve this?

Thank you.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to set link header snap to corners of a no
Reply #1 - Feb 19th, 2009 at 8:36am
Print Post  
Hi,

Try with

node.setAnchorPattern(AnchorPattern.fromId("Decision2In2Out"));

or

node.setAnchorPattern(AnchorPattern.fromId("Decision1In3Out"));

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 set link header snap to corners of a no
Reply #2 - Feb 20th, 2009 at 7:07am
Print Post  
hi stoyan,
           
              It works fine at first time when there is outgoing or incoming link for that node. But when later on user drags the header or root of link from decision node it remains at new position rather on corner.


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to set link header snap to corners of a no
Reply #3 - Feb 20th, 2009 at 9:56am
Print Post  
Hi Jay,

diagram.setSnapToAnchor(SnapToAnchor.OnCreateOrModify);

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint