How wumpz/jhotdraw works
Project type and purpose
• This is a multi‐module Java library (JHotDraw) providing a programmable 2D drawing framework and sample applications.
• It is not a web or full-stack application but an open-source Swing-based drawing SDK with a plugin-style architecture, organized into smaller Maven submodules.
File structure
• Top-level modules (pom.xml aggregating):
• jhotdraw-api – public interfaces, contracts for applications, views, menus, actions.
• jhotdraw-core – the drawing model (Figures, Drawings, Editors, Tools, Events) and controller logic.
• jhotdraw-app – concrete application implementations (SDI/MDI, platform adapters, application-level actions).
• jhotdraw-actions – generic actions (cut/copy/paste, window arrangement, view toggles).
• jhotdraw-io – persistence layer (InputFormat/OutputFormat implementations for XML, serialization, images).
• jhotdraw-datatransfer – clipboard/transferable abstractions for cut/copy/paste.
• jhotdraw-utils – reusable utilities (geometry, beans binding, formatting, undo/redo manager).
• jhotdraw-xml – low-level XML DOM factories and CSS parser for style management.
• jhotdraw-samples* – example applications consuming and illustrating the framework.
Extract insights from the README
• Version 10.0-SNAPSHOT refactors include separating IO into its own module, moving attribute management into a dedicated class, introducing JDK 17 and Maven builds, and establishing clear submodule boundaries.