RoboJDETM v2.0

com.ridgesoft.io
Class Display

java.lang.Object
  extended by com.ridgesoft.io.Display

public abstract class Display
extends Object

Abstract class for character output displays.


Constructor Summary
protected Display(int width, int height)
          Initializes a Display object.
 
Method Summary
 int getHeight()
          Gets the height of the display in characters.
 int getWidth()
          Gets the width of the display in characters.
 void print(int line, byte[] bytes)
          Prints ASCII bytes to the specified line on the display screen.
 void print(int line, String string)
          Prints a string to the specified line on the display screen.
abstract  boolean printChar(int line, int column, byte character)
          Prints a character on the display.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

Display

protected Display(int width,
                  int height)
Initializes a Display object.

Parameters:
width - number of characters wide
height - number of characters high
Method Detail

getHeight

public int getHeight()
Gets the height of the display in characters.

Returns:
display height in characters

getWidth

public int getWidth()
Gets the width of the display in characters.

Returns:
display width in characters

print

public void print(int line,
                  byte[] bytes)
Prints ASCII bytes to the specified line on the display screen.

Parameters:
line - line to print to
bytes - ASCII bytes to print

print

public void print(int line,
                  String string)
Prints a string to the specified line on the display screen.

Parameters:
line - line to print on
string - string to print

printChar

public abstract boolean printChar(int line,
                                  int column,
                                  byte character)
Prints a character on the display.

This method should normally not be called directly.

Parameters:
line - line to print on
column - column to print in, starting at 0
character - ASCII character to print
Returns:
true if the character was printed, false if the display was busy

RoboJDETM v2.0

Copyright (c) 2003-2009 RidgeSoft, LLC. All rights reserved.
www.ridgesoft.com