0

I would like to visualize a Family Tree and save it as an image (byte[]).

The Family Tree is based on a simple model:

public class Person {

  private List<Person> children = new ArrayList<Person>();
  private Person partner;
  private Person mother;
  private Person father;

  private final String fullName;
}

So far I tried using graphstream and jung. With both frameworks I was able to generate the image, except the position of the nodes are not like they should be in a family tree.

I could write a "Family Tree layout manager" myself, but I'm afraid this is a difficult and error prone process.

Does someone has some advise how to tackle this problem?

Martijn
  • 41
  • 5

1 Answers1

0

I ended up writing the "Family Tree layout manager" myself and using jgraph library as the framework.

Martijn
  • 41
  • 5