heurgame.ui
Class GraphicalLogInterface

java.lang.Object
  extended byheurgame.ui.GraphicalLogInterface
All Implemented Interfaces:
LogReader

public class GraphicalLogInterface
extends java.lang.Object
implements LogReader

Author:
David Kaplin A common interface for getting messages that are logged

Constructor Summary
GraphicalLogInterface()
           
 
Method Summary
 void clearLog()
          Resets the reader to its initial state.
static java.awt.Frame getLogWindow()
           
 void readLog(java.lang.String who, int priority, LogItem information)
          Callback method from Log when it receives new information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicalLogInterface

public GraphicalLogInterface()
Method Detail

readLog

public void readLog(java.lang.String who,
                    int priority,
                    LogItem information)
Description copied from interface: LogReader
Callback method from Log when it receives new information.

Specified by:
readLog in interface LogReader
Parameters:
who - Name of the component registered with the log.
priority - 0 is normal, anything higher is more important.
information - Has the actual log information.
See Also:
LogReader.readLog(java.lang.String, int, heurgame.logging.LogItem)

getLogWindow

public static java.awt.Frame getLogWindow()

clearLog

public void clearLog()
Description copied from interface: LogReader
Resets the reader to its initial state.

Specified by:
clearLog in interface LogReader
See Also:
LogReader.clearLog()