Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Rulers with a Custom Dots Per Unit Setting #613

Merged
merged 3 commits into from
Nov 11, 2024

Conversation

azoitl
Copy link
Contributor

@azoitl azoitl commented Nov 10, 2024

With this change the API of the RulerProvider class is extended with a custom dots per unit setting. This allows clients to use our default Ruler Figure adjusted to application specific resolutions and drawing scales.

As part of this change the RulerFigure was cleaned by splitting the paintFigure method in several methods for increased readability and maintainability.

Bugzilla entry: https://bugs.eclipse.org/bugs/show_bug.cgi?id=105493

With this change the API of the RulerProvider class is extended with a
custom dots per unit setting. This allows clients to use our default
Ruler Figure adjusted to application specific resolutions and drawing
scales.

As part of this change the RulerFigure was cleaned by splitting the
paintFigure method in several methods for increased readability and
maintainability.

Bugzilla entry: https://bugs.eclipse.org/bugs/show_bug.cgi?id=105493
@azoitl azoitl requested a review from ptziegler November 10, 2024 15:52
Copy link
Contributor

@ptziegler ptziegler left a comment

Choose a reason for hiding this comment

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

Looking good outside of this very minor typo.

@azoitl
Copy link
Contributor Author

azoitl commented Nov 11, 2024

Looking good outside of this very minor typo.

thx for finding this.

@ptziegler ptziegler merged commit 98cd019 into eclipse-gef:master Nov 11, 2024
7 of 8 checks passed
@ptziegler ptziegler added this to the 3.22.0 milestone Nov 11, 2024
@azoitl azoitl deleted the customRulerUnits branch November 11, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants