Interface ProgressBar

    • Method Detail

      • isValid

        boolean isValid()
        Returns true iff the ave time is > 0
        Returns:
      • isUnderAverageTime

        boolean isUnderAverageTime()
        Returns true if elapse time < ave time
        Returns:
        true if elapse time < ave time
      • getPercentageCompleted

        double getPercentageCompleted()
        Elapsed time / total time
        Returns:
        Elapsed time / total time
      • getPrettyTimeRemaining

        String getPrettyTimeRemaining()
        Returns:
        Returns the approximate amount of time remaining
      • getPrettyTimeRemaining

        String getPrettyTimeRemaining​(boolean isLong)
        Parameters:
        isLong - true if you want the long-winded version, false if you want the short version
        Returns:
        Returns the approximate amount of time remaining
      • getTotalTimeWidth

        int getTotalTimeWidth()
        Return the width of the "total time" progress bar
        Returns:
        width of bar
      • getTimeElapsedWidth

        int getTimeElapsedWidth()
        Return the width of the "elapsed time" progress bar
        Returns:
      • getEstimatedDuration

        long getEstimatedDuration()
        Returns prospected duration of a task.
        Returns:
        estimated execution total time in milliseconds
      • getPercentageCompletedAsString

        String getPercentageCompletedAsString()