weka.gui
Class ReaderToTextPane
java.lang.Object
java.lang.Thread
weka.gui.ReaderToTextPane
- All Implemented Interfaces:
- Runnable
public class ReaderToTextPane
- extends Thread
A class that sends all lines from a reader to a JTextPane component.
- Version:
- $Revision: 8034 $
- Author:
- Len Trigg (trigg@cs.waikato.ac.nz), FracPete (fracpete at waikato dot ac dot nz)
|
Method Summary |
Color |
getColor()
Returns the color in use. |
void |
run()
Sit here listening for lines of input and appending them straight
to the text component. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
ReaderToTextPane
public ReaderToTextPane(Reader input,
JTextPane output)
- Sets up the thread. Using black as color for displaying the text.
- Parameters:
input - the Reader to monitoroutput - the TextArea to send output to
ReaderToTextPane
public ReaderToTextPane(Reader input,
JTextPane output,
Color color)
- Sets up the thread.
- Parameters:
input - the Reader to monitoroutput - the TextArea to send output tocolor - the color to use
getColor
public Color getColor()
- Returns the color in use.
- Returns:
- the color
run
public void run()
- Sit here listening for lines of input and appending them straight
to the text component.
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.