public class Display extends Object
Display
represents the primitive display device of the
system. It includes methods for showing Image
,
ImageBuffer
, Text
,
and other primitive operations of display device, such as flush
and clear
. There is exactly one default Display bound to one device; Or, user could get different Display devices by specifing user defined display adaptors. Usually, user defined display is the display device mounted on SPI or other kind of external I/O port.
Use getDisplay()
to get it.
Modifier and Type | Field and Description |
---|---|
static int |
COLOR_MODE_ARGB8888 |
static int |
COLOR_MODE_RGB565 |
static int |
COLOR_MODE_RGB666 |
static int |
COLOR_MODE_RGB888 |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
clear(int rgb) |
void |
flush() |
int |
getColorMode() |
static Display |
getDisplay()
Get the default display device.
|
static Display |
getDisplay(DisplayDeviceAdaptor device)
Get the user defined display device.
|
int |
getDisplayHeight() |
int |
getDisplayWidth() |
void |
showImage(int top_left_x,
int top_left_y,
Image image) |
void |
showImage(int top_left_x,
int top_left_y,
Image image,
boolean delayed) |
void |
showImageBuffer(int top_left_x,
int top_left_y,
ImageBuffer image) |
void |
showImageBuffer(int top_left_x,
int top_left_y,
ImageBuffer image,
boolean delayed) |
void |
showText(int top_left_x,
int top_left_y,
Text text) |
void |
showText(int top_left_x,
int top_left_y,
Text text,
boolean delayed) |
void |
turnOffBacklight() |
void |
turnOnBacklight() |
public static final int COLOR_MODE_RGB565
public static final int COLOR_MODE_RGB666
public static final int COLOR_MODE_RGB888
public static final int COLOR_MODE_ARGB8888
public static Display getDisplay() throws IOException
IOException
public static Display getDisplay(DisplayDeviceAdaptor device) throws IOException
IOException
org.joshvm.j2me.directUI.DisplayDeviceAdaptor DisplayDeviceAdaptor}
public int getDisplayWidth()
public int getDisplayHeight()
public int getColorMode()
public void clear()
public void clear(int rgb)
public void showImageBuffer(int top_left_x, int top_left_y, ImageBuffer image)
public void showImageBuffer(int top_left_x, int top_left_y, ImageBuffer image, boolean delayed)
public void showImage(int top_left_x, int top_left_y, Image image)
public void showImage(int top_left_x, int top_left_y, Image image, boolean delayed)
public void showText(int top_left_x, int top_left_y, Text text)
public void showText(int top_left_x, int top_left_y, Text text, boolean delayed)
public void flush()
public void turnOnBacklight()
public void turnOffBacklight()