MIDP 2.0 增加的函數
增加的包:
javax.microedition.media
javax.microedition.media.control
javax.microedition.lcdui.game
javax.microedition.pki
| 类名称 | 增加的函数 |
1 | Canvas | public void setFullScreenMode(boolean mode) protected void sizeChanged(int w, int h) |
2 | Command | public Command(String shortLabel, String longLabel, int commandType, int priority) public String getLongLabel() |
3 | Displayable | public String getTitle() public void setTitle(String s) public Ticker getTicker() public void setTicker(Ticker ticker) public int getWidth() public int getHeight() protected void sizeChanged(int w, int h) |
4 | Font | public static final int FONT_STATIC_TEXT public static final int FONT_INPUT_TEXT public static Font getFont(int fontSpecifier) |
5 | Form | public void deleteAll() public int getWidth() public int getHeight() |
6 | Graphics | public void drawRegion(Image src, int x_src, int y_src, int width, int height, int transform, int x_dest, int y_dest, int anchor) public void copyArea(int x_src, int y_src, int width, int height, int x_dest, int y_dest, int anchor) public void fillTriangle(int x1, int y1, int x2, int y2, int x3, int y3) public void drawRGB(int[] rgbData, int offset, int scanlength, int x, int y, int width, int height, boolean processAlpha) public int getDisplayColor(int color) |
7 | Image | public static Image createImage(Image image, int x, int y, int width, int height, int transform) public static Image createImage(InputStream stream) throws IOException public static Image createRGBImage(int[] rgb, int width, int height, boolean processAlpha) public void getRGB(int[] rgbData, int offset, int scanlength, int x, int y, int width, int height) |
8 | Layer | All |
9 | MIDlet | public final boolean platformRequest(String URL) throws ConnectionNotFoundException public final int checkPermission(String permission) |