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()
ProgressBar
isValid
in interface ProgressBar
public boolean isUnderAverageTime()
ProgressBar
isUnderAverageTime
in interface ProgressBar
public double getPercentageCompleted()
ProgressBar
getPercentageCompleted
in interface ProgressBar
public String getPrettyTimeRemaining(boolean isLong)
getPrettyTimeRemaining
in interface ProgressBar
isLong
- true if you want the long-winded version, false if you want the short versionpublic String getPrettyTimeRemaining()
getPrettyTimeRemaining
in interface ProgressBar
public String getPercentageCompletedAsString()
getPercentageCompletedAsString
in interface ProgressBar
public int getTotalTimeWidth()
ProgressBar
getTotalTimeWidth
in interface ProgressBar
public int getTimeElapsedWidth()
ProgressBar
getTimeElapsedWidth
in interface ProgressBar
public long getEstimatedDuration()
ProgressBar
getEstimatedDuration
in interface ProgressBar
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.