Class ProgressBarStyle

java.lang.Object
me.tongfei.progressbar.ProgressBarStyle

public class ProgressBarStyle extends Object
Represents the display style of a progress bar.
Since:
0.5.1
  • Field Details

    • refreshPrompt

      String refreshPrompt
    • leftBracket

      String leftBracket
    • delimitingSequence

      String delimitingSequence
    • rightBracket

      String rightBracket
    • block

      char block
    • space

      char space
    • fractionSymbols

      String fractionSymbols
    • rightSideFractionSymbol

      char rightSideFractionSymbol
    • COLORFUL_UNICODE_BLOCK

      public static ProgressBarStyle COLORFUL_UNICODE_BLOCK
    • COLORFUL_UNICODE_BAR

      public static ProgressBarStyle COLORFUL_UNICODE_BAR
    • UNICODE_BLOCK

      public static ProgressBarStyle UNICODE_BLOCK
      Use Unicode block characters to draw the progress bar.
    • ASCII

      public static ProgressBarStyle ASCII
      Use only ASCII characters to draw the progress bar.
  • Constructor Details

    • ProgressBarStyle

      ProgressBarStyle(String refreshPrompt, String leftBracket, String delimitingSequence, String rightBracket, char block, char space, String fractionSymbols, char rightSideFractionSymbol)
  • Method Details

    • builder

      public static ProgressBarStyleBuilder builder()
      Creates a builder to build a custom progress bar style.