java.lang.Object
de.grogra.video.util.CommandLineProgress
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionCommandLineProgress(String title, int width, char charEmpty, char charDone, String leftBound, String rightBound, boolean showProgress) Create aCommandLineProgressobject defining its style. -
Method Summary
-
Constructor Details
-
CommandLineProgress
public CommandLineProgress(String title, int width, char charEmpty, char charDone, String leftBound, String rightBound, boolean showProgress) Create aCommandLineProgressobject defining its style.- Parameters:
title- - Title of theCommandLineProgress(will be printed before each progress output)width- - Number of characters representing the progresscharEmpty- - Character for empty progress barcharDone- - Character for filled progress barleftBound- - Left bound character of the progress barrightBound- - Right bound character of the progress barshowProgress- - Show the progress value at the end
-
-
Method Details