Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to retrieve the parent node after using attachTo()? (Read 2376 times)
Jan Meyer
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Joined: Feb 26th, 2012
How to retrieve the parent node after using attachTo()?
May 15th, 2012 at 10:37am
Print Post  
Assuming the following code snippet :

nodeB.attachTo(nodeA, AttachToNode.BottomRight)

How can I retrieve the the attached nodeA later? Is there something similar to nodeB.getAttachedTo() returning nodeA ?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to retrieve the parent node after using attachTo()?
Reply #1 - May 15th, 2012 at 11:29am
Print Post  
Check if nodaB.getMasterGroup() returns a non-null value. If it does, typecast group.getMainItem() to DiagramNode.

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