org.sourcejammer.client.gui.logger
Class MessageDisplayStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--org.sourcejammer.client.gui.logger.MessageDisplayStream

public class MessageDisplayStream
extends java.io.OutputStream

Outputs to specified JTextArea.


Nested Class Summary
private  class MessageDisplayStream.WriteThread
           
 
Field Summary
private  javax.swing.JTextArea displayArea
           
private  java.awt.Point endPoint
           
private  javax.swing.JScrollPane pane
           
(package private)  MessageDisplayStream.WriteThread thread
           
 
Constructor Summary
MessageDisplayStream(javax.swing.JTextArea area, javax.swing.JScrollPane p)
           
 
Method Summary
protected  void initializeThreadIfNeeded()
           
protected  void waitTillNotified()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 void writeToDisplayArea(java.lang.String s)
           
 
Methods inherited from class java.io.OutputStream
close, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

displayArea

private javax.swing.JTextArea displayArea

pane

private javax.swing.JScrollPane pane

endPoint

private java.awt.Point endPoint

thread

MessageDisplayStream.WriteThread thread
Constructor Detail

MessageDisplayStream

public MessageDisplayStream(javax.swing.JTextArea area,
                            javax.swing.JScrollPane p)
Method Detail

write

public void write(int b)
Specified by:
write in class java.io.OutputStream

write

public void write(byte[] b)
Overrides:
write in class java.io.OutputStream

write

public void write(byte[] b,
                  int off,
                  int len)
Overrides:
write in class java.io.OutputStream

writeToDisplayArea

public void writeToDisplayArea(java.lang.String s)

waitTillNotified

protected void waitTillNotified()
                         throws java.lang.InterruptedException
java.lang.InterruptedException

initializeThreadIfNeeded

protected void initializeThreadIfNeeded()


Copyright © 2003 Soucejammer project.