I am creating a family tree and have the Orthogonal property set to true.
First, the critical point is that you can assign any GoObject to be the GoLabeledLink.MidLabel, including a GoPort. This will cause that MidLabel object to be positioned at the middle of the middle segment of the link.
// multiple spouses more reasonably
if (link.FromPort == spousep)
link.FromLabel = mp;
else if (link.ToPort == spousep)
link.ToLabel = mp;[/code]
- Every family tree that gets created starts with 1 node.
- You can then add parents, a spouse and child etc.
If you are showing both ancestors and descendants for multiple people, you no longer have a tree structure. I suppose if you were showing them for just a single person, you could do the layout as if there were two trees, one going up and the other going down, starting with that one person. Hmmm, if you have second cousins marrying each other, you don’t have a tree in any case. It gets even more fun when you have a man marrying his own mother, for example.