gr.demokritos.iit.jinsect.console
Class StreamOutputConsole

java.lang.Object
  extended by gr.demokritos.iit.jinsect.console.StreamOutputConsole
All Implemented Interfaces:
IStatusDisplayer

public class StreamOutputConsole
extends java.lang.Object
implements IStatusDisplayer

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

StreamOutputConsole

public 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.

Parameters:
osOut - The output PrintStream.
bOutputProgressPercentage - If true, progress percentage is output.
Method Detail

setStatus

public void setStatus(java.lang.String sText,
                      double dValue)
Description copied from interface: IStatusDisplayer
Should set the status and the value as an indication of progress.

Specified by:
setStatus in interface IStatusDisplayer

getStatusText

public java.lang.String getStatusText()
Description copied from interface: IStatusDisplayer
Should return the text part of the status.

Specified by:
getStatusText in interface IStatusDisplayer

setVisible

public void setVisible(boolean bShow)
Defines whether progress percentage should be output.

Specified by:
setVisible in interface IStatusDisplayer
Parameters:
bShow - If true, output will be directed to the printstream, else it will not.

getVisible

public boolean getVisible()
Description copied from interface: IStatusDisplayer
Should indicate whether the status is displayed or not.

Specified by:
getVisible in interface IStatusDisplayer