nanovm.nibo.drivers
Class TextDisplay

java.lang.Object
  extended by nanovm.nibo.drivers.TextDisplay

public class TextDisplay
extends java.lang.Object

Gives access to a connected text display.


Field Summary
static int BLINKBLOCK
           
static int BLOCK
           
static int HIDDEN
           
static int LINE
           
static int MAX_X
          Maximum value for X coordinate
static int MAX_Y
          Maximum value for Y coordinate
static int MIN_X
          Minimum value for X coordinate
static int MIN_Y
          Minimum value for Y coordinate
 
Constructor Summary
TextDisplay()
           
 
Method Summary
static void clear()
          Clear the entire display
static void gotoXY(int x, int y)
          Set (invisible) cursor to given coordinate
static void print(java.lang.String s)
          Print text on display
static void setCursorMode(int mode)
          Set the visibility of the cursor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_X

public static final int MIN_X
Minimum value for X coordinate

See Also:
Constant Field Values

MAX_X

public static final int MAX_X
Maximum value for X coordinate

See Also:
Constant Field Values

MIN_Y

public static final int MIN_Y
Minimum value for Y coordinate

See Also:
Constant Field Values

MAX_Y

public static final int MAX_Y
Maximum value for Y coordinate

See Also:
Constant Field Values

HIDDEN

public static final int HIDDEN
See Also:
Constant Field Values

BLOCK

public static final int BLOCK
See Also:
Constant Field Values

BLINKBLOCK

public static final int BLINKBLOCK
See Also:
Constant Field Values

LINE

public static final int LINE
See Also:
Constant Field Values
Constructor Detail

TextDisplay

public TextDisplay()
Method Detail

clear

public static void clear()
Clear the entire display


gotoXY

public static void gotoXY(int x,
                          int y)
Set (invisible) cursor to given coordinate

Parameters:
x - X-coordinate
y - Y-coordinate

print

public static void print(java.lang.String s)
Print text on display


setCursorMode

public static void setCursorMode(int mode)
Set the visibility of the cursor.

Parameters:
mode - new cursor mode. Possible values are HIDDEN BLOCK BLINKBLOCK LINE