|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
weka.gui.experiment.HadoopRunLogPanel
public class HadoopRunLogPanel
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/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected Calendar |
calendar
|
protected boolean |
m_First
An indicator for whether text has been output yet |
protected JButton |
m_logButton
The button for viewing the log |
protected JTextArea |
m_LogText
Displays the log messages |
protected JLabel |
m_StatusLab
Displays the current status |
protected weka.gui.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 | |
|---|---|
HadoopRunLogPanel()
Creates the log panel with no task monitor and the log always visible. |
|
HadoopRunLogPanel(weka.gui.WekaTaskMonitor tm)
Creates the log panel with a task monitor, where the log is hidden. |
|
HadoopRunLogPanel(weka.gui.WekaTaskMonitor tm,
boolean logHidden)
Creates the log panel, possibly with task monitor, where the log is optionally hidden. |
|
HadoopRunLogPanel(weka.gui.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). |
|
| 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. |
void |
logMsgWithNoTime(String message)
Send the supplied message without current time data, because Hadoop already provided it. |
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 JButton m_logButton
protected boolean m_First
protected weka.gui.WekaTaskMonitor m_TaskMonitor
protected Calendar calendar
| Constructor Detail |
|---|
public HadoopRunLogPanel()
public HadoopRunLogPanel(weka.gui.WekaTaskMonitor tm)
tm - the task monitor, or null for none
public HadoopRunLogPanel(weka.gui.WekaTaskMonitor tm,
boolean logHidden)
tm - the task monitor, or null for nonelogHidden - true if the log should be hidden and
acessible via a button, or false if the
log should always be visible.
public HadoopRunLogPanel(weka.gui.WekaTaskMonitor tm,
boolean logHidden,
boolean statusHidden,
boolean titledBorder)
tm - the task monitor, or null for nonelogHidden - 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).| Method Detail |
|---|
public void taskStarted()
taskStarted in interface weka.gui.TaskLoggerpublic void taskFinished()
taskFinished in interface weka.gui.TaskLoggerprotected static String getTimestamp()
public void logMessage(String message)
logMessage in interface weka.gui.Loggermessage - a value of type 'String'public void logMsgWithNoTime(String message)
message - public void statusMessage(String message)
statusMessage in interface weka.gui.Loggermessage - 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 | |||||||||