Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Require custom arrangement of links (Read 6399 times)
Anshul
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 316
Joined: Apr 3rd, 2009
Re: Require custom arrangement of links
Reply #15 - Jun 3rd, 2010 at 7:22am
Print Post  
Yes, we want to create links from the first point, when link is created it should connect to third point.

Scenario is like that, let say we have a Boolean property "StylishLink" in our application. When its value is true we want two additional anchor points in each node, one is for incoming links and other is for outgoing links. Both of these anchors should be invisible.
When property value is false we don’t want these two anchor points. We already have an anchor point in our application that should remain as it is, we don’t want to play with it. Now please let us know how we can have three custom anchor points which will perform same operation described above.

Also, Please let us know how we can have maximum 3 segment per link even after calling link.Route() method, because when we call Link.Route(), links segment count get increase automatically.

Regards,
Anshul
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Require custom arrangement of links
Reply #16 - Jun 3rd, 2010 at 8:17am
Print Post  
I suppose you can define two AnchorPattern instances, the first containing a single point and the second containing three points. Then assign the respective instance to the AnchorPattern of all nodes when the link mode changes.

The link router will set as many segments as it sees fit to avoid nodes. After calling the Route method, you could check the current SegmentCount value and reset it if it's greater than 3.

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