|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umd.cfar.lamp.viper.util.Revealer
Shows a series of dots, or a message, over a period of time, similar to the dots that run across the screen in an id installer or the old PKZip.
Constructor Summary | |
Revealer()
Constructs a new Revealer that will print 10 dots and expects 10 calls to tick. |
|
Revealer(int total,
int count,
java.lang.String unit)
Creates a new revealer that, given total ticks, will print out the specified String count number of times to System.out. |
|
Revealer(int total,
int count,
java.lang.String unit,
java.io.PrintWriter output)
Creates a new revealer that, given total ticks, will print out the specified String count number of times to System.out. |
Method Summary | |
void |
finish()
Print an end of line character. |
void |
sendError(java.lang.String err)
Sends the error message to the list of errors occurred during this reveal |
void |
setTotal(int total)
Reset the expected number of calls to ticks. |
void |
tick()
Indicate a single tick. |
void |
tick(int times)
Indicate multiple ticks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Revealer()
public Revealer(int total, int count, java.lang.String unit)
total
- The expected number of calls to tick.count
- The wanted number of units to be printed.unit
- The String to print out.public Revealer(int total, int count, java.lang.String unit, java.io.PrintWriter output)
total
- The expected number of calls to tick.count
- The wanted number of units to be printed.unit
- The String to print out.output
- Where to print the revealed stuff.Method Detail |
public void tick()
public void tick(int times)
times
- the number of ticks that have passed.public void finish()
public void sendError(java.lang.String err)
err
- the error messagepublic void setTotal(int total)
total
- The new expected number of calls to tick().
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |