Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic creating extra node inside a in a inheritance diagram (Read 906 times)
Ankur shah
Junior Member
**
Offline


I Love MindFusion!

Posts: 63
Joined: Mar 16th, 2017
creating extra node inside a in a inheritance diagram
May 21st, 2019 at 9:13am
Print Post  
We have a requirement that we have Class Inheritance diagram already shown in a canvas. Now if user clicks on any node we will have to show a new node in same diagram. Which is not linked any node in a diagram. I am bale to create a new node but facing  problem while showing on canvas. As some time this new node created overlaps the existing diagram. Can you please let me know how should i align this new node that it should be visible some where where it does not overlaps the existing diagram.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: creating extra node inside a in a inheritance diagram
Reply #1 - May 21st, 2019 at 11:11am
Print Post  
Call diagram.getContentBounds() to find the location of old nodes, and create the new one somewhere outside it, e.g. contentRect.right() + padding or contentRect.bottom() + padding. Alternatively call diagram.arrange if you already use some layout class; it should move the new node to the sides too depending on multipleGraphsOrientation property.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint