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

Feature: Support for Stacked/Styled Progress-Bars #157

Closed
drothmaler opened this issue Sep 18, 2023 · 1 comment
Closed

Feature: Support for Stacked/Styled Progress-Bars #157

drothmaler opened this issue Sep 18, 2023 · 1 comment

Comments

@drothmaler
Copy link

There are certain situation where I would like to have some kind of stacked progress bar. E.g. to show the result of the tasks or to visualize some other kind of distribution within the progress...

Test 46% [xxx========> ] 20 failed; 70 successful / 200
Import 46% [xxxooo=====> ] 20 foo; 20 bar, 50 bazz / 200

It wold be nice, if this could be added to this library.

@ctongfei
Copy link
Owner

ctongfei commented Jan 1, 2024

Stacked bars are actually supported with the following usage:

try (ProgressBar pb1 = new ProgressBar("Job1", max1); 
     ProgressBar pb2 = new ProgressBar("Job2", max2)) { 
    ... 
}

Styles can be customized by implementing your own ProgressBarRenderer. Right now you can use this customized renderer using this deprecated constructor, but in the next version it'll be added to the builder pattern so that you can use

ProgressBar.builder().setRenderer(...)

Thanks!

@ctongfei ctongfei mentioned this issue Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants