|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cuni.jagrlib.ProgressCounter
public class ProgressCounter
Object able to process progress messages and compute a little more complex results.
| Field Summary | |
|---|---|
protected double |
progressAct
Actual progress. |
protected double |
progressAdd
Progress origin. |
protected double |
progressMul
Progress multiplier. |
protected double |
progressStart
Starting progress. |
protected long |
timeAct
Actual time in milliseconds. |
protected long |
timeStart
Starting time in milliseconds. |
| Constructor Summary | |
|---|---|
ProgressCounter()
|
|
| Method Summary | |
|---|---|
java.lang.String |
message()
Assembles more complex "Finished.." message. |
void |
progress(long state,
long total)
Sets progress state ( 0 <= state <= total). |
java.lang.String |
remainingString()
Estimates remaining time and returns its HH:MM:SS representation. |
double |
remainingTime()
Estimates remaining time in seconds. |
void |
repaint()
Repaint progress indicator (if applicable). |
void |
setInterval(double mul,
double add)
Sets actual progress-interval (domain of both parameters is < 0.0, 1.0 >). |
double |
totalTime()
Total time in seconds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long timeStart
protected long timeAct
protected double progressStart
protected double progressAct
protected double progressMul
protected double progressAdd
| Constructor Detail |
|---|
public ProgressCounter()
| Method Detail |
|---|
public void progress(long state,
long total)
0 <= state <= total).
progress in interface ProgressListenerpublic void repaint()
repaint in interface ProgressListener
public void setInterval(double mul,
double add)
< 0.0, 1.0 >).
public double totalTime()
public double remainingTime()
public java.lang.String remainingString()
public java.lang.String message()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||