|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iu.cnets.klatsch.Main
public class Main
This is the main class. It used to extend PApplet, but the GUI has been made strictly optional so that Klatsch can run headless.
Field Summary | |
---|---|
static KlatschGui |
gui
the GUI, if activated |
static Runtime |
rt
our current runtime environment |
static Main |
self
a link to ourselves |
private static long |
serialVersionUID
for serialization |
Constructor Summary | |
---|---|
Main()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
void |
process(java.lang.String buffer)
Processes a new line of input. |
void |
write_err(java.lang.String... text)
Like write(), but for standard error rather than standard output. |
void |
write(java.lang.String... text)
Prints text to either standard output or the graphical console, depending on whether the GUI is running. |
void |
writeln_err(java.lang.String... text)
Like writeln(), but for standard error rather than standard output. |
void |
writeln(java.lang.String... text)
Prints text followed by a line break to either standard output or the graphical console, depending on whether the GUI is running. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
public static Main self
public static Runtime rt
public static KlatschGui gui
Constructor Detail |
---|
public Main()
Method Detail |
---|
public static void main(java.lang.String[] args)
public void process(java.lang.String buffer)
public void write(java.lang.String... text)
text
- the text to printpublic void write_err(java.lang.String... text)
text
- the text to printpublic void writeln(java.lang.String... text)
text
- the text to printpublic void writeln_err(java.lang.String... text)
text
- the text to print
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |