|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
weka.gui.ReaderToTextPane
public class ReaderToTextPane
A class that sends all lines from a reader to a JTextPane component.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
ReaderToTextPane(java.io.Reader input,
javax.swing.JTextPane output)
Sets up the thread. |
|
ReaderToTextPane(java.io.Reader input,
javax.swing.JTextPane output,
java.awt.Color color)
Sets up the thread. |
Method Summary | |
---|---|
java.awt.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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReaderToTextPane(java.io.Reader input, javax.swing.JTextPane output)
input
- the Reader to monitoroutput
- the TextArea to send output topublic ReaderToTextPane(java.io.Reader input, javax.swing.JTextPane output, java.awt.Color color)
input
- the Reader to monitoroutput
- the TextArea to send output tocolor
- the color to useMethod Detail |
---|
public java.awt.Color getColor()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |