Class ProgressBar


  • public class ProgressBar
    extends Object
    Simple progress bar that is used during the guess and scan operations.
    Author:
    Tobias Neitzel (@qtc_de)
    • Constructor Detail

      • ProgressBar

        public ProgressBar​(int work,
                           int length)
        Initialize the progress bar with the amount of work and the desired length.
        Parameters:
        work - Amount of work that needs to be done
        length - Length of the actual progress bar (# - part)
    • Method Detail

      • addWork

        public void addWork()
        During the scan action, the amount of work may increases and we need a function to increase the value.
      • taskDone

        public void taskDone()
        Is called for each task that is done. Increases the number of done tasks and updates the progress bar.