|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
optics.graphics.TextAreaPrintStream
public class TextAreaPrintStream
Class to form form a PrintStream attached to the
a Swing JTextArea which overloads the simple
print, prinln and printf methods.
| Field Summary |
|---|
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
TextAreaPrintStream(javax.swing.JTextArea ta)
Constructor to create the TextAreaPrintStream
attacked to specified JTextArea |
|
| Method Summary | |
|---|---|
void |
clear()
Method to clear the test area. |
void |
print(boolean b)
Method to print a single boolean to the text field. |
void |
print(double d)
Method to print a single double in default format to the text field. |
void |
print(int i)
Method to print a single int to the text field. |
void |
print(java.lang.String s)
Basic print method, to print a String. |
java.io.PrintStream |
printf(java.lang.String format,
java.lang.Object... args)
Method to implement the Java 5.0 (and later) printf C Style print scheme with internal formating (pop-up) error trap. |
void |
println()
Method to print newline |
void |
println(boolean b)
Method to print single boolean followed by newline. |
void |
println(double d)
Method to print single double followed
by a new line. |
void |
println(int i)
Method to print single int followed
by a new line. |
void |
println(java.lang.String s)
Method to print a String>/code> followed by a new line. |
| Methods inherited from class java.io.PrintStream |
|---|
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, printf, println, println, println, println, println, setError, write, write |
| Methods inherited from class java.io.FilterOutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextAreaPrintStream(javax.swing.JTextArea ta)
TextAreaPrintStream
attacked to specified JTextArea
ta - the JTextArea to display the text| Method Detail |
|---|
public void print(java.lang.String s)
String. It
will also move tex caret to end of text field.
print in class java.io.PrintStreams - the String to be printed.public void print(int i)
print in class java.io.PrintStreami - value to be printedpublic void print(double d)
print in class java.io.PrintStreamd - value to be printedpublic void print(boolean b)
print in class java.io.PrintStreamb - value to be printedpublic void println()
println in class java.io.PrintStreampublic void println(java.lang.String s)
String>/code> followed by a new line.
- Overrides:
println in class java.io.PrintStream
- Parameters:
s - The String to be printed.
public void println(int i)
int followed
by a new line.
println in class java.io.PrintStreami - value to be output.public void println(double d)
double followed
by a new line.
println in class java.io.PrintStreamd - value to be printedpublic void println(boolean b)
boolean followed by newline.
println in class java.io.PrintStreamb - value to be printed.public void clear()
public java.io.PrintStream printf(java.lang.String format,
java.lang.Object... args)
PopUpOptions.formatConversion(java.awt.Container, java.lang.String).
printf in class java.io.PrintStreamformat - The format stringargs - The argument list.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||