Skip to content

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

Closed

Description

@drothmaler

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.

Activity

  1. ctongfei commented on Jan 1, 2024

    @ctongfei
    Owner

    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!

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions