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
Constructor and Description |
---|
RemoteTextLCD(RMITextLCD lcd) |
Modifier and Type | Method and Description |
---|---|
void |
bitBlt(byte[] src,
int sw,
int sh,
int sx,
int sy,
byte[] dst,
int dw,
int dh,
int dx,
int dy,
int w,
int h,
int rop)
Standard two input BitBlt function.
|
void |
bitBlt(byte[] src,
int sw,
int sh,
int sx,
int sy,
int dx,
int dy,
int w,
int h,
int rop)
Standard two input BitBlt function with the LCD display as the
destination.
|
void |
clear()
Clear the display.
|
void |
clear(int y)
Clear an LCD display row
|
void |
clear(int x,
int y,
int n)
Clear a contiguous set of characters
|
void |
drawChar(char c,
int x,
int y)
Draw a single char on the LCD at specified x,y co-ordinate.
|
void |
drawInt(int i,
int x,
int y)
Display an int on the LCD at specified x,y co-ordinate.
|
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.
|
void |
drawString(java.lang.String str,
int x,
int y)
Display a string on the LCD at specified x,y co-ordinate.
|
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.
|
byte[] |
getDisplay()
Provide access to the LCD display frame buffer.
|
Font |
getFont()
Get the current font
|
int |
getHeight()
Return the height of the associated drawing surface.
|
byte[] |
getHWDisplay()
Get access to hardware LCD display.
|
int |
getTextHeight()
Get the height of the screen in characters
|
int |
getTextWidth()
Get the width of the screen in characters
|
int |
getWidth()
Return the width of the associated drawing surface.
|
void |
refresh()
Refresh the display.
|
void |
scroll()
Scrolls the screen up one text line
|
void |
setAutoRefresh(boolean on)
Turn on/off the automatic refresh of the LCD display.
|
int |
setAutoRefreshPeriod(int period)
Set the period used to perform automatic refreshing of the display.
|
void |
setContrast(int contrast)
Set the LCD contrast.
|
public RemoteTextLCD(RMITextLCD lcd)
public void refresh()
CommonLCD
public void clear()
CommonLCD
public int getWidth()
CommonLCD
public int getHeight()
CommonLCD
public byte[] getDisplay()
CommonLCD
getDisplay
in interface CommonLCD
public byte[] getHWDisplay()
CommonLCD
getHWDisplay
in interface CommonLCD
public void setContrast(int contrast)
CommonLCD
setContrast
in interface CommonLCD
contrast
- 0 blank 0x60 full onpublic void bitBlt(byte[] src, int sw, int sh, int sx, int sy, int dx, int dy, int w, int h, int rop)
CommonLCD
bitBlt
in interface CommonLCD
src
- byte array containing the source imagesw
- Width of the source imagesh
- Height of the source imagesx
- X position to start the copy fromsy
- Y Position to start the copy fromdx
- X destinationdy
- Y destinationw
- width of the area to copyh
- height of the area to copyrop
- raster operation.public void bitBlt(byte[] src, int sw, int sh, int sx, int sy, byte[] dst, int dw, int dh, int dx, int dy, int w, int h, int rop)
CommonLCD
bitBlt
in interface CommonLCD
src
- byte array containing the source imagesw
- Width of the source imagesh
- Height of the source imagesx
- X position to start the copy fromsy
- Y Position to start the copy fromdst
- byte array containing the destination imagedw
- Width of the destination imagedh
- Height of the destination imagedx
- X destinationdy
- Y destinationw
- width of the area to copyh
- height of the area to copyrop
- raster operation.public void setAutoRefresh(boolean on)
CommonLCD
setAutoRefresh
in interface CommonLCD
on
- true to enable, false to disablepublic int setAutoRefreshPeriod(int period)
CommonLCD
setAutoRefreshPeriod
in interface CommonLCD
period
- time in mspublic void drawChar(char c, int x, int y)
TextLCD
public void drawString(java.lang.String str, int x, int y, boolean inverted)
TextLCD
drawString
in interface TextLCD
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.public void drawString(java.lang.String str, int x, int y)
TextLCD
drawString
in interface TextLCD
str
- The string to be displayedx
- The x character co-ordinate to display at.y
- The y character co-ordinate to display at.public void drawInt(int i, int x, int y)
TextLCD
public void drawInt(int i, int places, int x, int y)
TextLCD
public void clear(int x, int y, int n)
TextLCD
public void clear(int y)
TextLCD
public void scroll()
TextLCD
public int getTextWidth()
TextLCD
getTextWidth
in interface TextLCD
public int getTextHeight()
TextLCD
getTextHeight
in interface TextLCD