- 博客(0)
- 资源 (1)
空空如也
j2me+api+中文版
int getGameAction(int keyCode) 返回按键编码值对应用的游戏操作;
int getKeyCode(int gameAction) 返回游戏操作常量的案件编码值;
String
getKeyName(int keyCode) 返回按键编码值对应的按键的名称,这个名称不是游戏操作的名称,而是实际按键的名称;
boolean hasPointerEvents() 响应指针拖动事件;
boolean hasPointerMotionEvents() 判断设备是否探测指针设备的按下,拖动和释放行为;
boolean hasRepeatEvents() 判断设备是否支持重复按键;
protected void hideNotify() 在应用程序管理器从屏幕删除画布后调用;
boolean isDoubleBuffered() 判断设备是否支持双缓冲器;
protected void keyPressed(int keyCode) 当按下按键时调用,通常处理按键的案件编码;
protected void keyReleased(int keyCode) 当释放按键时调用,通常处理按键的案件编码;
protected void keyRepeated(int keyCode) 当持续按下按键时调用,通常处理案件的按键编码; (不是所有设备都支持)
protected abstract void paint(Graphics g) 把Graphics类的实例作为参数,在画布上绘制一幅图像;
protected void pointerDragged(int x, int y) 响应指针拖动事件;
protected void pointerPressed(int x, int y) 响应指针按下事件;
protected void pointerReleased(int x, int y) 响应指针释放事件;
void repaint() 重新绘制整个画布;
void repaint(int x, int y, int width, int height) 重新绘制画布的指定区域;
void serviceRepaints() 在其他优先需求之前必须处理的画笔需求;
void setFullScreenMode(boolean mode)
Controls whether the Canvas is in full-screen mode or in normal mode.
protected void showNotify() 在应用程序管理显示画布之前调用;
protected void sizeChanged(int w, int h)
Called when the drawable area of the Canvas has been changed.
2010-11-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人