org.jcsp.nxt.util
Class Display

java.lang.Object
  extended by org.jcsp.nxt.util.Display

public class Display
extends java.lang.Object


Constructor Summary
Display()
           
 
Method Summary
static void clear()
          Queue up a command to clear the screen
static boolean isReady()
          Check whether there is currently text waiting to be displayed or not.
static void print(int i)
          Print an integer to the screen, turning it into a String first
static void print(java.lang.Object o)
          Print a object to the screen, turning it into a String first
static void print(java.lang.String s)
          Print a string to the screen, automatically wrapping it to fit the width of the display.
static void println()
          Print a newline character
static void println(int i)
          Print an integer to the screen, turning it into a String first, and following it by a newline character
static void println(java.lang.Object o)
          Print a object to the screen, turning it into a String first, and following it by a newline character
static void println(java.lang.String s)
          Print a string to the screen, automatically wrapping it to fit the width of the display, and follow it by a newline character
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Display

public Display()
Method Detail

clear

public static void clear()
Queue up a command to clear the screen


print

public static void print(java.lang.String s)
Print a string to the screen, automatically wrapping it to fit the width of the display. If the text goes past the end of the screen, pause and wait for the user to hit the "right" button before continuing from the top of the screen.

Parameters:
The - String to print to the screen

print

public static void print(java.lang.Object o)
Print a object to the screen, turning it into a String first

Parameters:
The - Object to print to the screen

println

public static void println()
Print a newline character


println

public static void println(java.lang.String s)
Print a string to the screen, automatically wrapping it to fit the width of the display, and follow it by a newline character

Parameters:
The - String to print to the screen

println

public static void println(java.lang.Object o)
Print a object to the screen, turning it into a String first, and following it by a newline character

Parameters:
The - Object to print to the screen

print

public static void print(int i)
Print an integer to the screen, turning it into a String first


println

public static void println(int i)
Print an integer to the screen, turning it into a String first, and following it by a newline character


isReady

public static boolean isReady()
Check whether there is currently text waiting to be displayed or not. This should be used where possible in order to keep the string buffer small. Notably used by ActiveDisplay