Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic anchorpoint problem (Read 2758 times)
wangqaa
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 24
Joined: May 18th, 2007
anchorpoint problem
May 18th, 2007 at 7:51am
Print Post  
condition:

I created my flowchart with about 20 boxes. Some of them connected by arrows which mean orgin box and dest box have some relations.

the most important requirement is hope the total arrows' length are as shorter as possible.In order to clear display.(box location is arranged like grid and fixed. )

boxes initial with 4 anchorpoints in each sides.

some conditions I need the arrow from the same anchorpoint and other purposes need the arrow from the "not used" anchorpoint. (It's means if the better side to allocate arrow Oring anchorpoint is occupied, I need to new anchor point beside it)

So, the problem I confront now is :

???
Which method or way can judge the anchorpoint is used ?

and then I can judge whether add the anchorpoint dynamically or not.


first time post here,need your help, sincerely Tongue
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: anchorpoint problem
Reply #1 - May 18th, 2007 at 8:50am
Print Post  
Hello,

You can use the ValidateAnchorPoint event to allow or prevent attaching an arrow to an anchor point. The only way to find out how many arrows are connected to a point is to iterate all arrows in the OutgoingArrows and IncomingArrows collections and check their OrgnAcnhor or DestAnchor properties.

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


I love YaBB 1G - SP1!

Posts: 24
Joined: May 18th, 2007
Re: anchorpoint problem
Reply #2 - May 21st, 2007 at 12:15am
Print Post  
hello:

thanks for your replying.
I'm tring it...

If it is no difficult to you.

Can you demonstrate how to create a "ValidateAnchorPoint event" and use it.

It maybe a helpful example in the future developer's guide.



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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: anchorpoint problem
Reply #3 - May 21st, 2007 at 5:51am
Print Post  
  
Back to top
 
IP Logged
 
wangqaa
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 24
Joined: May 18th, 2007
Re: anchorpoint problem
Reply #4 - May 23rd, 2007 at 2:29am
Print Post  
Thank you~

it is helpful to me~

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