org.sadun.util
Class TextProgressBar

java.lang.Object
  extended byorg.sadun.util.TextProgressBar

public class TextProgressBar
extends java.lang.Object

NOT FUNCTIONAL YET To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates. To enable and disable the creation of type comments go to Window>Preferences>Java>Code Generation.

Author:
Cristiano Sadun

Field Summary
static java.lang.String ANSI
           
 
Constructor Summary
TextProgressBar(java.lang.String terminalType)
           
TextProgressBar(java.lang.String terminalType, int total)
           
 
Method Summary
 int getProgress()
          Returns the progress.
 int getTotal()
          Returns the total.
 void inc()
           
 void inc(int n)
           
static void main(java.lang.String[] args)
           
 void setProgress(int progress)
          Sets the progress.
 void setTotal(int total)
          Sets the total.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANSI

public static final java.lang.String ANSI
See Also:
Constant Field Values
Constructor Detail

TextProgressBar

public TextProgressBar(java.lang.String terminalType)

TextProgressBar

public TextProgressBar(java.lang.String terminalType,
                       int total)
Method Detail

inc

public void inc(int n)

inc

public void inc()

main

public static void main(java.lang.String[] args)
                 throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

getTotal

public int getTotal()
Returns the total.

Returns:
int

setTotal

public void setTotal(int total)
Sets the total.

Parameters:
total - The total to set

getProgress

public int getProgress()
Returns the progress.

Returns:
int

setProgress

public void setProgress(int progress)
Sets the progress.

Parameters:
progress - The progress to set