public static class ConsoleProgressBar.View extends Object
| Constructor and Description |
|---|
ConsoleProgressBar.View() |
| Modifier and Type | Method and Description |
|---|---|
PrintStream |
getPrintStream() |
void |
resetIndeterminateBar() |
void |
setBarLength(int length,
boolean isIndetermined)
Set the progress bar length.
|
void |
setDoneMessage(String message) |
void |
setIncompleteMessage(String message) |
void |
setLeftMarginLength(int length)
Set the left margin length (with completion infos).
|
void |
setPrintStream(PrintStream ps)
Set the print stream for bar display.
|
void |
setRefreshBarPeriod(int period)
Set the period of bar animation refresh while the bar is in indeterminate
mode.
|
void |
setSegmentLength(int length)
Set the length of segment constantly animated in indeterminate mode.
|
void |
setTaskName(String name) |
public void resetIndeterminateBar()
public void setLeftMarginLength(int length)
length - the left margin length.public void setBarLength(int length,
boolean isIndetermined)
length - the given length.public void setRefreshBarPeriod(int period)
period - the period of refresh for cursor animation.public void setSegmentLength(int length)
length - the given length (> 0 and < bar len).public void setTaskName(String name)
public void setDoneMessage(String message)
public void setIncompleteMessage(String message)
public void setPrintStream(PrintStream ps)
ps - the output stream.public PrintStream getPrintStream()
Copyright © 2016. All Rights Reserved.