simulator
Class VSLogging

java.lang.Object
  extended by simulator.VSLogging

public class VSLogging
extends java.lang.Object

The class VSLogging, an object of this class is responsible for the loging of text messages into the simulator's loging window.

Author:
Paul C. Buetow

Constructor Summary
VSLogging()
          Instantiates a new VSLogging object.
 
Method Summary
 void clear()
          Clears the loging.
 javax.swing.JTextArea getLoggingArea()
          Gets the loging area.
 void isFiltered(boolean isFiltered)
          Checks if the loging is filtered.
 void isPaused(boolean isPaused)
          Sets if the loging is paused.
 void log(java.lang.String message)
          Loggs a message using the global time.
 void log(java.lang.String message, long time)
          Loggs a message using the specified time.
 void setFilterText(java.lang.String filterText)
          Sets the filter text.
 void setSimulatorCanvas(VSSimulatorVisualization sv)
          Sets the simulator canvas.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VSLogging

public VSLogging()
Instantiates a new VSLogging object.

Method Detail

setSimulatorCanvas

public void setSimulatorCanvas(VSSimulatorVisualization sv)
Sets the simulator canvas.

Parameters:
sv - the simulator canvas

getLoggingArea

public javax.swing.JTextArea getLoggingArea()
Gets the loging area.

Returns:
the loging area

log

public void log(java.lang.String message)
Loggs a message using the global time.

Parameters:
message - the message

log

public void log(java.lang.String message,
                long time)
Loggs a message using the specified time.

Parameters:
message - the message
time - the time

isPaused

public void isPaused(boolean isPaused)
Sets if the loging is paused.

Parameters:
isPaused - true, if the loging is paused

isFiltered

public void isFiltered(boolean isFiltered)
Checks if the loging is filtered.

Parameters:
isFiltered - true, if the loging is filtered

setFilterText

public void setFilterText(java.lang.String filterText)
Sets the filter text.

Parameters:
filterText - the new filter text

clear

public void clear()
Clears the loging.