edu.iu.cnets.klatsch
Class Main

java.lang.Object
  extended by edu.iu.cnets.klatsch.Main

public class Main
extends java.lang.Object

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

serialVersionUID

private static final long serialVersionUID
for serialization

See Also:
Constant Field Values

self

public static Main self
a link to ourselves


rt

public static Runtime rt
our current runtime environment


gui

public static KlatschGui gui
the GUI, if activated

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String[] args)

process

public void process(java.lang.String buffer)
Processes a new line of input.


write

public void write(java.lang.String... text)
Prints text to either standard output or the graphical console, depending on whether the GUI is running. This is named "write" rather than "print" to avoid overloading routines in the Processing core library.

Parameters:
text - the text to print

write_err

public void write_err(java.lang.String... text)
Like write(), but for standard error rather than standard output.

Parameters:
text - the text to print

writeln

public 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. This is named "writeln" rather than "println" to avoid overloading routines in the Processing core library.

Parameters:
text - the text to print

writeln_err

public void writeln_err(java.lang.String... text)
Like writeln(), but for standard error rather than standard output.

Parameters:
text - the text to print