Package lejos.hardware.lcd
Interface TextLCD
-
- All Superinterfaces:
CommonLCD
- All Known Implementing Classes:
RemoteRequestTextLCD,RemoteTextLCD
public interface TextLCD extends CommonLCD
-
-
Field Summary
-
Fields inherited from interface lejos.hardware.lcd.CommonLCD
ROP_AND, ROP_ANDINVERTED, ROP_ANDREVERSE, ROP_CLEAR, ROP_COPY, ROP_COPYINVERTED, ROP_EQUIV, ROP_INVERT, ROP_NAND, ROP_NOOP, ROP_NOR, ROP_OR, ROP_ORINVERTED, ROP_ORREVERSE, ROP_SET, ROP_XOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear(int y)Clear an LCD display rowvoidclear(int x, int y, int n)Clear a contiguous set of charactersvoiddrawChar(char c, int x, int y)Draw a single char on the LCD at specified x,y co-ordinate.voiddrawInt(int i, int x, int y)Display an int on the LCD at specified x,y co-ordinate.voiddrawInt(int i, int places, int x, int y)Display an in on the LCD at x,y with leading spaces to occupy at least the number of characters specified by the places parameter.voiddrawString(java.lang.String str, int x, int y)Display a string on the LCD at specified x,y co-ordinate.voiddrawString(java.lang.String str, int x, int y, boolean inverted)Display an optionally inverted string on the LCD at specified x,y co-ordinate.FontgetFont()Get the current fontintgetTextHeight()Get the height of the screen in charactersintgetTextWidth()Get the width of the screen in charactersvoidscroll()Scrolls the screen up one text line-
Methods inherited from interface lejos.hardware.lcd.CommonLCD
bitBlt, bitBlt, clear, getDisplay, getHeight, getHWDisplay, getWidth, refresh, setAutoRefresh, setAutoRefreshPeriod, setContrast
-
-
-
-
Method Detail
-
drawChar
void drawChar(char c, int x, int y)Draw a single char on the LCD at specified x,y co-ordinate.- Parameters:
c- Character to displayx- X locationy- Y location
-
drawString
void drawString(java.lang.String str, int x, int y, boolean inverted)Display an optionally inverted string on the LCD at specified x,y co-ordinate.- Parameters:
str- The string to be displayedx- The x character co-ordinate to display at.y- The y character co-ordinate to display at.inverted- if true the string is displayed inverted.
-
drawString
void drawString(java.lang.String str, int x, int y)Display a string on the LCD at specified x,y co-ordinate.- Parameters:
str- The string to be displayedx- The x character co-ordinate to display at.y- The y character co-ordinate to display at.
-
drawInt
void drawInt(int i, int x, int y)Display an int on the LCD at specified x,y co-ordinate.- Parameters:
i- The value to display.x- The x character co-ordinate to display at.y- The y character co-ordinate to display at.
-
drawInt
void drawInt(int i, int places, int x, int y)Display an in on the LCD at x,y with leading spaces to occupy at least the number of characters specified by the places parameter.- Parameters:
i- The value to displayplaces- number of places to use to display the valuex- The x character co-ordinate to display at.y- The y character co-ordinate to display at.
-
clear
void clear(int x, int y, int n)Clear a contiguous set of characters- Parameters:
x- the x character coordinatey- the y character coordinaten- the number of characters
-
clear
void clear(int y)
Clear an LCD display row- Parameters:
y- the row to clear
-
scroll
void scroll()
Scrolls the screen up one text line
-
getFont
Font getFont()
Get the current font
-
getTextWidth
int getTextWidth()
Get the width of the screen in characters
-
getTextHeight
int getTextHeight()
Get the height of the screen in characters
-
-