All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.gui.LogPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----javax.swing.JComponent
|
+----javax.swing.JPanel
|
+----weka.gui.LogPanel
- public class LogPanel
- extends javax.swing.JPanel
- implements Logger, TaskLogger
This panel allows log and status messages to be posted. Log messages
appear in a scrollable text area, and status messages appear as one-line
transient messages.
- Version:
- $Revision: 1.13 $
- Author:
- Len Trigg (trigg@cs.waikato.ac.nz)
LogPanel()
- Creates the log panel with no task monitor and
the log always visible.
LogPanel(WekaTaskMonitor)
- Creates the log panel with a task monitor,
where the log is hidden.
LogPanel(WekaTaskMonitor, boolean)
- Creates the log panel, possibly with task monitor,
where the log is optionally hidden.
logMessage(String)
- Sends the supplied message to the log area.
main(String[])
- Tests out the log panel from the command line.
statusMessage(String)
- Sends the supplied message to the status line.
taskFinished()
- Record a task ending
taskStarted()
- Record the starting of a new task
LogPanel
public LogPanel()
Creates the log panel with no task monitor and
the log always visible.
LogPanel
public LogPanel(WekaTaskMonitor tm)
Creates the log panel with a task monitor,
where the log is hidden.
- Parameters:
tm - the task monitor, or null for none
LogPanel
public LogPanel(WekaTaskMonitor tm,
boolean logHidden)
Creates the log panel, possibly with task monitor,
where the log is optionally hidden.
- Parameters:
tm - the task monitor, or null for none
logHidden - true if the log should be hidden and
acessible via a button, or false if the
log should always be visible.
taskStarted
public void taskStarted()
Record the starting of a new task
taskFinished
public void taskFinished()
Record a task ending
logMessage
public void logMessage(java.lang.String message)
Sends the supplied message to the log area. The current timestamp will
be prepended.
- Parameters:
message - a value of type 'String'
statusMessage
public void statusMessage(java.lang.String message)
Sends the supplied message to the status line.
- Parameters:
message - the status message
main
public static void main(java.lang.String args[])
Tests out the log panel from the command line.
- Parameters:
args - ignored
All Packages Class Hierarchy This Package Previous Next Index WEKA's home