MIDP 2.0 增加的函數

王朝java/jsp·作者佚名  2006-01-30
窄屏简体版  字體: |||超大  

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)

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航