gr.demokritos.iit.jinsect.console
Class StatusConsole

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

public class StatusConsole
extends java.lang.Object
implements IStatusDisplayer

This class describes object that can display status (IStatusDisplayer subclass) and directs the output to the console (stderr).


Field Summary
protected  java.lang.String LabelText
           
protected  int Width
           
 
Constructor Summary
StatusConsole(int iWidth)
          Creates a new instance of StatusConsole
 
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)
          Enables or disables the output of messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LabelText

protected java.lang.String LabelText

Width

protected int Width
Constructor Detail

StatusConsole

public StatusConsole(int iWidth)
Creates a new instance of StatusConsole

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

setVisible

public void setVisible(boolean bShow)
Enables or disables the output of messages.

Specified by:
setVisible in interface IStatusDisplayer
Parameters:
bShow - If true enables output, else disables it.

getVisible

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

Specified by:
getVisible 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