Skip to content

adds fragment frequencies to fragments overview#213

Open
JonasSchaub wants to merge 31 commits intoproductionfrom
issue-186-fragment-freqs-overview
Open

adds fragment frequencies to fragments overview#213
JonasSchaub wants to merge 31 commits intoproductionfrom
issue-186-fragment-freqs-overview

Conversation

@JonasSchaub
Copy link
Copy Markdown
Collaborator

@JonasSchaub JonasSchaub commented Jan 16, 2026

closes #186

This PR adds fragment frequency labels to the fragment overview view and a general screenshot functionality to the overview view. Also included are several code quality improvements behind the scenes

@JonasSchaub JonasSchaub self-assigned this Jan 16, 2026
@JonasSchaub JonasSchaub added the enhancement New feature or request label Jan 16, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds the display of fragment frequencies in the fragments overview view. When viewing fragments from the fragments tab, each fragment image now shows its frequency count and percentage below the molecular structure.

Changes:

  • Refactored repeated Graphics2D rendering configuration into a reusable configureGraphics2D method
  • Added a new depictImageWithTextForOverview method that supports both transparent and white backgrounds for images with text labels
  • Introduced frequency display logic to show fragment counts and percentages in the overview view for fragments tab data

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
DepictionUtil.java Refactored rendering hints configuration and added new method to depict images with text labels supporting configurable backgrounds
OverviewViewController.java Added frequency display flag and logic to show fragment frequencies in the overview view

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link
Copy Markdown

@JonasSchaub
Copy link
Copy Markdown
Collaborator Author

Example picture:

ChEBI_MolWURCS

@JonasSchaub JonasSchaub marked this pull request as ready for review April 1, 2026 16:23
@JonasSchaub JonasSchaub requested a review from Copilot April 1, 2026 16:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 10 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JonasSchaub JonasSchaub requested a review from Copilot April 8, 2026 21:53
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JonasSchaub
Copy link
Copy Markdown
Collaborator Author

To do: final (human) code review

@JonasSchaub
Copy link
Copy Markdown
Collaborator Author

To do: update tutorial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants