|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--weka.gui.LogPanel
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.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected boolean |
m_First
An indicator for whether text has been output yet |
protected JTextArea |
m_LogText
Displays the log messages |
protected JLabel |
m_StatusLab
Displays the current status |
protected WekaTaskMonitor |
m_TaskMonitor
The panel for monitoring the number of running tasks (if supplied) |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
LogPanel()
Creates the log panel |
|
LogPanel(WekaTaskMonitor tm)
Creates the log panel |
Method Summary | |
protected static String |
getTimestamp()
Gets a string containing current date and time. |
void |
logMessage(String message)
Sends the supplied message to the log area. |
static void |
main(String[] args)
Tests out the log panel from the command line. |
void |
statusMessage(String message)
Sends the supplied message to the status line. |
void |
taskFinished()
Record a task ending |
void |
taskStarted()
Record the starting of a new task |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected JLabel m_StatusLab
protected JTextArea m_LogText
protected boolean m_First
protected WekaTaskMonitor m_TaskMonitor
Constructor Detail |
public LogPanel()
public LogPanel(WekaTaskMonitor tm)
Method Detail |
public void taskStarted()
taskStarted
in interface TaskLogger
public void taskFinished()
taskFinished
in interface TaskLogger
protected static String getTimestamp()
public void logMessage(String message)
logMessage
in interface Logger
message
- a value of type 'String'public void statusMessage(String message)
statusMessage
in interface Logger
message
- the status messagepublic static void main(String[] args)
args
- ignored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |