How rambaut/figtree works
Main Components
a. Core Application Layer:
• Main Application (FigTreeApplication.java)
• Application Frame (FigTreeFrame.java)
• Menu System (FigTreeMenuBarFactory.java)
b. Tree Visualization Layer:
• Tree Viewer Components
• Tree Pane
• Multiple Viewers Support
• Layout Engines
c. Data Management Layer:
• Tree Data Models
• Import/Export Handlers
• File Format Support
d. UI Components:
• Control Panels
• Preference Managers
• Dialog Systems
Architectural Patterns to Highlight
a. MVC (Model-View-Controller) Pattern:
• Models: Tree data structures
• Views: TreePane, TreeViewer implementations
• Controllers: Various *Controller classes
b. Observer Pattern:
• Listener interfaces for tree updates
• Event handling system
[User Interface Layer]
• Application Frame
• Menu System
• Toolbar
• [Visualization Layer]
• Tree Viewers
• Single Tree View
• Multi-Pane View
• Tree Layouts
• Polar
• Radial
• Rectilinear
• Painters
• Node Painters
• Scale Painters
• [Control Layer]
• Tree Controllers
• Layout Controllers
• Appearance Controllers
• [Data Layer]
• File I/O
• Importers
• Exporters
• Data Models
• Tree Structures
Key Relationships
• Event flow paths between components
• Data flow between I/O components and data models
Important Implementation Details
• Support for multiple tree layouts
• Plugin architecture for different tree formats
• Separation between tree data and visualization
• Integration with external tools (BEAST)