Module video

Class CommandLineProgress

java.lang.Object
de.grogra.video.util.CommandLineProgress
All Implemented Interfaces:
Observer

public class CommandLineProgress extends Object implements Observer
The CommandLineProgress is an observer for objects, which are ProgressObservable. This class prints the progress to the standard output on the command line.
Author:
Dominick Leppich
  • Constructor Details

    • CommandLineProgress

      public CommandLineProgress(String title, int width, char charEmpty, char charDone, String leftBound, String rightBound, boolean showProgress)
      Create a CommandLineProgress object defining its style.
      Parameters:
      title - - Title of the CommandLineProgress (will be printed before each progress output)
      width - - Number of characters representing the progress
      charEmpty - - Character for empty progress bar
      charDone - - Character for filled progress bar
      leftBound - - Left bound character of the progress bar
      rightBound - - Right bound character of the progress bar
      showProgress - - Show the progress value at the end
  • Method Details