I’m trying to replicate the Double Tree example for my own purposes but I’m having a little bit of difficulty. There are two key differences between the Double Tree example and my diagram. My diagram uses a GraphLinksModel instead of a TreeModel and the left-sub tree of my “root” node are all the descendants of the “root” while the right-sub tree are all the ancestors of the “root”. I know that referring to the node as the “root” isn’t technically correct but I think you get the idea.
You might be thinking “why not use a single tree layout”? This is because I need the “root” to be laid out in the center of the diagram and the Double Tree is where I got the idea on how to do this.
The problem I’m having is attempting to plot this relationship. The left sub-tree plots fine but the right sub-tree doesn’t plot correctly. Below is picture of what I mean: (In this example the ‘Prepaid Expenses’ node is the “root”; the ‘Plant’ node is an ancestor of the “root” and all the other nodes are children of the root. Notice how the ‘Plant’ node is plotting to the left of the root)
However, if I treat the the ‘Plant’ node as a descendant of the root then it plots correctly:
I’m guessing this is because the layout sees ‘Plant’ as the root and plots accordingly, regardless of my attempts to try and fool it.
My only other option, I’m guessing, is to plot the entire the tree in a single tree layout and somehow center the view around the ‘Prepaid Expenses’ node?