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

#167 added option to fill rectangles #168

Merged
merged 4 commits into from
Jan 19, 2020
Merged

#167 added option to fill rectangles #168

merged 4 commits into from
Jan 19, 2020

Conversation

MrMisterG
Copy link

@MrMisterG MrMisterG commented Jan 17, 2020

PR Details
See issue #167 for details
Description
See issue #167
Related Issue
#167
Motivation and Context
See issue #167
How Has This Been Tested
Added two new tests that follow a similar style as existing tests
Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@MrMisterG MrMisterG requested a review from romankh3 January 17, 2020 18:43
Copy link
Owner

@romankh3 romankh3 left a comment

Choose a reason for hiding this comment

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

Well done!
Please, resolve minor comment with the method name and these changes can be merged.

* @param rectangles rectangles the collection of the {@link Rectangle}.
* @param percentOpacity the opacity of the fill.
*/
private void fill(Graphics2D graphics, List<Rectangle> rectangles, double percentOpacity) {
Copy link
Owner

Choose a reason for hiding this comment

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

Let's make the method name more self-describing.

Copy link
Author

Choose a reason for hiding this comment

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

I renamed it from fill to fillRectangles

@romankh3 romankh3 merged commit 6179144 into romankh3:development Jan 19, 2020
@romankh3
Copy link
Owner

@MrMisterG thanks for your contributions!

romankh3 added a commit that referenced this pull request Jan 29, 2020
#167: Added options to draw transparent fill inside rectangles
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