|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--canvas.Transcript
Provides services to record textual output to a file or display it in a window.
If println(Object) is called before setApplet(Object), a file
transcript.txt will be opened in the current directory. If setApplet()
called first, a new window will be created, and any subsequent printlns or prints
will not cause a file to be opened. Instead, output will be printed in the window.
| Constructor Summary | |
Transcript()
|
|
| Method Summary | |
static void |
print(Object o)
Prints, without a carriage return, the object passed in. |
static void |
println(Object o)
Prints, with a trailing carriage return, the object passed in. |
static void |
setApplet(Object o)
Call this with a non-null object to create a window to which the output is printed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Transcript()
| Method Detail |
public static void setApplet(Object o)
public static void print(Object o)
public static void println(Object o)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||