程序包 weka.gui

类 LogPanel

所有已实现的接口:
ImageObserver, MenuContainer, Serializable, Accessible, Logger, TaskLogger

public class LogPanel extends 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.
版本:
$Revision: 7059 $
作者:
Len Trigg (trigg@cs.waikato.ac.nz)
另请参阅:
  • 构造器详细资料

    • 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.
      参数:
      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.
      参数:
      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.
    • LogPanel

      public LogPanel(WekaTaskMonitor tm, boolean logHidden, boolean statusHidden, boolean titledBorder)
      Creates the log panel, possibly with task monitor, where the either the log is optionally hidden or the status (having both hidden is not allowed).
      参数:
      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.
      statusHidden - true if the status bar should be hidden (i.e.
      titledBorder - true if the log should have a title you only want the log part).
  • 方法详细资料

    • taskStarted

      public void taskStarted()
      Record the starting of a new task
      指定者:
      taskStarted 在接口中 TaskLogger
    • taskFinished

      public void taskFinished()
      Record a task ending
      指定者:
      taskFinished 在接口中 TaskLogger
    • logMessage

      public void logMessage(String message)
      Sends the supplied message to the log area. The current timestamp will be prepended.
      指定者:
      logMessage 在接口中 Logger
      参数:
      message - a value of type 'String'
    • statusMessage

      public void statusMessage(String message)
      Sends the supplied message to the status line.
      指定者:
      statusMessage 在接口中 Logger
      参数:
      message - the status message
    • main

      public static void main(String[] args)
      Tests out the log panel from the command line.
      参数:
      args - ignored