MIDP 2.0 增加的函數

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)

 

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值