com.buglabs.device
Interface IFramebufferDevice


public interface IFramebufferDevice

This interface defines the low-level calls to the base display.


Method Summary
 void clear()
          Clear the display.
 int getDepth()
          Number of colors the display supports.
 int getHeight()
           
 int getWidth()
           
 void redraw()
          Refresh the display from the internal buffer.
 void setBacklight(boolean light)
           
 void write(int x, int y, boolean[][] bitmap)
           
 void write(int x, int y, java.lang.String message, int charWidth, int charHeight)
           
 void write(int x, int y, java.lang.String message, java.lang.String fontFile, int charWidth, int charHeight)
          High-level method to write text to base LCD allowing a custom font.
 

Method Detail

clear

void clear()
Clear the display.


getDepth

int getDepth()
Number of colors the display supports.

Returns:

getHeight

int getHeight()
Returns:
the height of display in number of pixels.

getWidth

int getWidth()
Returns:
the width of display in number of pixels.

redraw

void redraw()
Refresh the display from the internal buffer.


setBacklight

void setBacklight(boolean light)
Parameters:
light - true for on, false for off.

write

void write(int x,
           int y,
           boolean[][] bitmap)
Parameters:
x -
y -
bitmap -

write

void write(int x,
           int y,
           java.lang.String message,
           int charWidth,
           int charHeight)
Parameters:
x -
y -
message -
charWidth -
charHeight -

write

void write(int x,
           int y,
           java.lang.String message,
           java.lang.String fontFile,
           int charWidth,
           int charHeight)
High-level method to write text to base LCD allowing a custom font.

Parameters:
message -