mk.fsgrep.util
Class TextProgressBar

java.lang.Object
  extended by mk.fsgrep.util.TextProgressBar
All Implemented Interfaces:
ProgressBar

public class TextProgressBar
extends java.lang.Object
implements ProgressBar

Draws a text-based progress bar (percentage completion).

Author:
Murali Krishnan

Constructor Summary
TextProgressBar(OutputDestination pOut)
           
 
Method Summary
protected  void decrSegmentCount()
           
protected  void decrTotalCount()
           
 void finish()
           
protected  OutputDestination getOut()
           
protected  int getSegmentCount()
           
protected  java.util.LinkedList<java.lang.Integer> getSegments()
           
protected  int getTotalCount()
           
 void initialize(int pTotalCount)
           
protected  void initializeSegment()
           
protected  boolean isDefined()
           
protected  void printHeader()
           
protected  void setOut(OutputDestination val)
           
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextProgressBar

public TextProgressBar(OutputDestination pOut)
Method Detail

getSegments

protected java.util.LinkedList<java.lang.Integer> getSegments()

getTotalCount

protected int getTotalCount()

getSegmentCount

protected int getSegmentCount()

getOut

protected OutputDestination getOut()

isDefined

protected boolean isDefined()

setOut

protected void setOut(OutputDestination val)

decrTotalCount

protected void decrTotalCount()

decrSegmentCount

protected void decrSegmentCount()

initializeSegment

protected void initializeSegment()

printHeader

protected void printHeader()

update

public void update()
Specified by:
update in interface ProgressBar

finish

public void finish()
Specified by:
finish in interface ProgressBar

initialize

public void initialize(int pTotalCount)
Specified by:
initialize in interface ProgressBar


Copyright © 2009. All Rights Reserved.