com.lowagie.rups.view
public class Console extends Object implements Observer
| Nested Class Summary | |
|---|---|
| class | Console.ConsoleStyleContext
The style context defining the styles of each type of PrintStream. |
| class | Console.ReadWriteThread
The thread that will write everything to the text area. |
| Field Summary | |
|---|---|
| static Console | console Single Console instance. |
| PipedInputStream | piCustom Custom InputStream. |
| PipedInputStream | piErr InputStream for System.err. |
| PipedInputStream | piOut InputStream for System.out. |
| PipedOutputStream | poCustom Custom OutputStream. |
| PipedOutputStream | poErr OutputStream for System.err. |
| PipedOutputStream | poOut OutputStream for System.out. |
| PrintStream | printStream Custom PrintStream. |
| Console.ConsoleStyleContext | styleContext The StyleContext for the Console. |
| JTextPane | textArea The text area to which everything is written. |
| Constructor Summary | |
|---|---|
| Console()
Creates a new Console object. | |
| Method Summary | |
|---|---|
| static Console | getInstance()
Console is a Singleton class: you can only get one Console. |
| PrintStream | getPrintStream()
Get the custom PrintStream of the console. |
| JTextPane | getTextArea()
Get the JTextArea to which everything is written. |
| static void | println(String s)
Allows you to print something to the custom PrintStream. |
| void | update(Observable observable, Object obj) |
Throws: IOException
Parameters: s the message you want to send to the Console
See Also: java.util.Observer#update(java.util.Observable, java.lang.Object)