tornadofx_epub
AI Architecture
Sign in to run a focused analysis on specific parts of this codebase.
Sign inTrigger
User clicks 'Open File' button to select an EPUB file
Application Initialization
Application Start
TornadoFX application launches and initializes the main application class, setting up the JavaFX runtime environment.
Primary View Rendering
Load Main View
The application instantiates and displays the MainView component, rendering the file selection interface with controls.
File Selection
Show File Chooser
User triggers file selection, opening a native file chooser dialog filtered for EPUB files.
EPUB Parsing
Parse EPUB File
The selected file is passed to epublib's EpubReader to parse the EPUB structure, extracting metadata, table of contents, and chapter resources.
Extract Book Metadata
Retrieve Book Information
Extract title, author, and table of contents from the parsed EPUB book object for display and navigation purposes.
View Transition
Navigate to Reading View
The application transitions from MainView to ReadingView, passing the parsed book object and initializing the reading interface.
Reading View Setup
Initialize WebView Component
Creates and configures a JavaFX WebView component for rendering HTML content, setting up the web engine and style properties.
Load First Chapter
Retrieve Chapter Content
Fetches the first chapter's HTML content from the EPUB book object using the spine references.
Apply Styling
Load CSS Stylesheet
Loads the webview.css stylesheet from resources to apply custom styling to the rendered EPUB content.
Render Content
Display Chapter HTML
The WebView engine renders the chapter HTML content with applied CSS styling, displaying the text and images to the user.
Navigation Setup
Initialize Navigation Controls
Sets up previous/next chapter buttons and their event handlers for navigating through the book content.
Analyzed 2/18/2026, 9:41:25 PM
Sign in to analyze your own repositories.
Sign in