public class ProgressBarImpl extends Object implements ProgressBar
| Constructor and Description |
|---|
ProgressBarImpl(ExecutionStatus executionStatus) |
| Modifier and Type | Method and Description |
|---|---|
long |
getEstimatedDuration()
Returns prospected duration of a task.
|
double |
getPercentageCompleted()
Elapsed time / total time
|
String |
getPercentageCompletedAsString() |
String |
getPrettyTimeRemaining() |
String |
getPrettyTimeRemaining(boolean isLong) |
int |
getTimeElapsedWidth()
Return the width of the "elapsed time" progress bar
|
int |
getTotalTimeWidth()
Return the width of the "total time" progress bar
|
boolean |
isUnderAverageTime()
Returns true if elapse time < ave time
|
boolean |
isValid()
Returns true iff the ave time is > 0
|
public ProgressBarImpl(ExecutionStatus executionStatus)
public boolean isValid()
ProgressBarisValid in interface ProgressBarpublic boolean isUnderAverageTime()
ProgressBarisUnderAverageTime in interface ProgressBarpublic double getPercentageCompleted()
ProgressBargetPercentageCompleted in interface ProgressBarpublic String getPrettyTimeRemaining(boolean isLong)
getPrettyTimeRemaining in interface ProgressBarisLong - true if you want the long-winded version, false if you want the short versionpublic String getPrettyTimeRemaining()
getPrettyTimeRemaining in interface ProgressBarpublic String getPercentageCompletedAsString()
getPercentageCompletedAsString in interface ProgressBarpublic int getTotalTimeWidth()
ProgressBargetTotalTimeWidth in interface ProgressBarpublic int getTimeElapsedWidth()
ProgressBargetTimeElapsedWidth in interface ProgressBarpublic long getEstimatedDuration()
ProgressBargetEstimatedDuration in interface ProgressBarCopyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.