|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.demokritos.iit.jinsect.console.StreamOutputConsole
public class StreamOutputConsole
A IStatusDisplayer
outputting status to a given PrintStream.
Constructor Summary | |
---|---|
StreamOutputConsole(java.io.PrintStream osOut,
boolean bOutputProgressPercentage)
Creates a new instance of StreamOutputConsole, given an output stream and an indication of whether progress percentage should be output. |
Method Summary | |
---|---|
java.lang.String |
getStatusText()
Should return the text part of the status. |
boolean |
getVisible()
Should indicate whether the status is displayed or not. |
void |
setStatus(java.lang.String sText,
double dValue)
Should set the status and the value as an indication of progress. |
void |
setVisible(boolean bShow)
Defines whether progress percentage should be output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamOutputConsole(java.io.PrintStream osOut, boolean bOutputProgressPercentage)
osOut
- The output PrintStream
.bOutputProgressPercentage
- If true, progress percentage is output.Method Detail |
---|
public void setStatus(java.lang.String sText, double dValue)
IStatusDisplayer
setStatus
in interface IStatusDisplayer
public java.lang.String getStatusText()
IStatusDisplayer
getStatusText
in interface IStatusDisplayer
public void setVisible(boolean bShow)
setVisible
in interface IStatusDisplayer
bShow
- If true, output will be directed to the printstream, else it will not.public boolean getVisible()
IStatusDisplayer
getVisible
in interface IStatusDisplayer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |