|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.util.ProgressEvent
public class ProgressEvent
Generically represents an update to progress information.
| Constructor Summary | |
|---|---|
ProgressEvent(Object source,
int pct,
long progress,
String note)
Instantiates a ProgressEvent from the specified information. |
|
| Method Summary | |
|---|---|
String |
getNote()
Returns the note. |
int |
getPercent()
Returns the percentage completed. |
long |
getProgress()
Returns the progress. |
int |
getScaledPercent(int low,
int high)
Returns the scaled percentage. |
Object |
getSource()
Returns the source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProgressEvent(Object source,
int pct,
long progress,
String note)
ProgressEvent from the specified information.
source - event sourcepct - percent finishedprogress - total progress valuenote - progress note| Method Detail |
|---|
public int getPercent()
public int getScaledPercent(int low,
int high)
low - the low end of the scalehigh - the high end of the scale
public long getProgress()
public String getNote()
public Object getSource()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||