Class FamilyTreeDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class FamilyTreeDialog extends JDialog
A dialog that displays an interactive family tree visualization.

This dialog shows a genealogical tree with the ability to:

  • View ancestors (parents, grandparents, etc.) above the origin person
  • View descendants (children, grandchildren, etc.) below the origin person
  • Zoom in and out using the mouse wheel
  • Click on any person to open their family tree in a new tab
  • Navigate between multiple family trees via tabs

The tree uses gender-based color coding for relationship lines: pink for female, blue for male, and green for non-binary.

Since:
0.50.10
See Also:
  • Constructor Details

    • FamilyTreeDialog

      public FamilyTreeDialog(Frame owner, Genealogy genealogy, Collection<Person> personnel)
      Constructs a new FamilyTreeDialog.
      Parameters:
      owner - the parent frame that owns this dialog
      genealogy - the genealogy tree to display initially
      personnel - the collection of all personnel in the campaign
      Since:
      0.50.10