Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Z order of Links (Read 2358 times)
bkernan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: May 28th, 2009
Z order of Links
Feb 12th, 2010 at 10:04pm
Print Post  
Hello,

I have a large JavaApplet mode diagram where laid out in the Layered Layout. I would like all my nodes to be above all the links. Currently it depends on which node/link was rendered/created first I beleive.

I have tried looping through the Diagram.Items and if its a link I call the ZBottom() method, which doesn't change anything. I also loop through the Diagram.Links and do the same thing.

I cannot call ZBottom/ZTop while rendering nodes because I create them  interchangeably.

Please let me know if what I am requesting is even possible. : ) Thanks!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Z order of Links
Reply #1 - Feb 14th, 2010 at 11:04am
Print Post  
Hi,

The ZIndex setter modifies the diagram.Items collection, and changing the Z order while looping over Items might not work as expected, or could even throw an exception if using an enumerator / foreach loop.

It should be safe to change the Z order from a loop over diagram.Nodes or diagram.Links. In addition, by default selected items and their links appear over non-selected ones, so if you want to show some items selected, disable SelectionOnTop:

Code
Select All
diagram.SelectionOnTop = false;
foreach (DiagramLink link in diagram.Links)
	link.ZBottom();
 



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


I love YaBB 1G - SP1!

Posts: 37
Joined: May 28th, 2009
Re: Z order of Links
Reply #2 - Mar 24th, 2010 at 3:11pm
Print Post  
Hello,

I tried that out after I arranged the nodes with layered layout and it did not work. I assume because the links are attached to the nodes, the links retain the same z index as their node that they start from.

Let me know if this is changed in an new version : )
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Z order of Links
Reply #3 - Mar 24th, 2010 at 3:42pm
Print Post  
Hi,

Could you email us a sample page that reproduces this?

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