Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic overlaid nodes (Read 1441 times)
BidMaestro
Junior Member
**
Offline


to learn is to live

Posts: 74
Location: Australia
Joined: Apr 20th, 2008
overlaid nodes
Jul 26th, 2009 at 12:21am
Print Post  
Stoyo

I create a chart which has a shapenode with a link to a tablenode; when the diagram is created the tablenode link is collapsed. The user at some stage may then expand the collapsed display to reveal the tablenode....this all works fine... however in most cases the tablenode on being revealed is usally displayed on top of some other node(s).

Is there a means of detecting via the expandbuttonclicked as to whether the tablenode is overlaid on other node(s) and relocate it to blank area in the diagram?

regards
Doug
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: overlaid nodes
Reply #1 - Jul 26th, 2009 at 9:20am
Print Post  
Hi Doug,

The expand button shows the nodes at their original positions. You could use the DiagramNode.Intersects method to find out whether the table intersects with any other node in the diagram.

You could find an empty area by iteratively moving the table in concentric circles around the expanded node until Intersects returns false for all nodes. If this is too slow, we have a method in the link-routing class that very quickly builds a map of the empty area in the diagram; we could make it public for the next release to let you find an empty spot faster.

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


to learn is to live

Posts: 74
Location: Australia
Joined: Apr 20th, 2008
Re: overlaid nodes
Reply #2 - Jul 26th, 2009 at 9:25am
Print Post  
Stoyo

Thanks for that: I will try your suggestion a bit later. My other option was to do the layout first then collapse the link as the last task when creating the diagram.

Hope you are all keeping well up there.

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