📄 canvas.java
字号:
/*
* Created on 2004-12-21 by Tianlei
* version 1.0.0.3
* since MIDP1.0
* ģ��j2me�е�Canvas��
*
*/
package javax.microedition.lcdui;
import a.a.a.midp.lcdui.*;
/**
* @author Tianlei
* @version 1.0.0.3
* @since MIDP1.0
*
* ģ��j2me�е�Canvas��
*/
public abstract class Canvas extends Displayable {
/**
* ��Ϸ�������ϵļ�ֵ
* @since MIDP1.0
*/
public static final int UP = 1;
/**
* ��Ϸ�������µļ�ֵ
* @since MIDP1.0
*/
public static final int DOWN = 6;
/**
* ��Ϸ��������ļ�ֵ
* @since MIDP1.0
*/
public static final int LEFT = 2;
/**
* ��Ϸ�������µļ�ֵ
* @since MIDP1.0
*/
public static final int RIGHT = 5;
/**
* ��Ϸ����ȷ���ļ�ֵ
* @since MIDP1.0
*/
public static final int FIRE = 8;
/**
* ��Ϸ����A��(�����ֱ��A)�ļ�ֵ
* @since MIDP1.0
*/
public static final int GAME_A = 9;
/**
* ��Ϸ����B��(�����ֱ��B)�ļ�ֵ
* @since MIDP1.0
*/
public static final int GAME_B = 10;
/**
* ��Ϸ����C��(�����ֱ��C)�ļ�ֵ
* @since MIDP1.0
*/
public static final int GAME_C = 11;
/**
* ��Ϸ����D��(�����ֱ��D)�ļ�ֵ
* @since MIDP1.0
*/
public static final int GAME_D = 12;
/**
* �ֻ������0��ļ�ֵ
* @since MIDP1.0
*/
public static final int KEY_NUM0 = 48;
/**
* �ֻ������1��ļ�ֵ
* @since MIDP1.0
*/
public static final int KEY_NUM1 = 49;
/**
* �ֻ������2��ļ�ֵ
* @since MIDP1.0
*/
public static final int KEY_NUM2 = 50;
/**
* �ֻ������3��ļ�ֵ
* @since MIDP1.0
*/
public static final int KEY_NUM3 = 51;
/**
* �ֻ������4��ļ�ֵ
* @since MIDP1.0
*/
public static final int KEY_NUM4 = 52;
/**
* �ֻ������5��ļ�ֵ
* @since MIDP1.0
*/
public static final int KEY_NUM5 = 53;
/**
* �ֻ������6��ļ�ֵ
* @since MIDP1.0
*/
public static final int KEY_NUM6 = 54;
/**
* �ֻ������7��ļ�ֵ
* @since MIDP1.0
*/
public static final int KEY_NUM7 = 55;
/**
* �ֻ������8��ļ�ֵ
* @since MIDP1.0
*/
public static final int KEY_NUM8 = 56;
/**
* �ֻ������9��ļ�ֵ
* @since MIDP1.0
*/
public static final int KEY_NUM9 = 57;
/**
* �ֻ������*��ļ�ֵ
* @since MIDP1.0
*/
public static final int KEY_STAR = 42;
/**
* �ֻ������#��ļ�ֵ
* @since MIDP1.0
*/
public static final int KEY_POUND = 35;
/**
* ���캯��
* @since MIDP1.0
*/
protected Canvas() {
super();
this.instance=new BQCanvas();
instance.setShell(this);
}
/**
* �ж��Ƿ�˫����
*
* @return ģ������ʼ�շ���true
* @since MIDP1.0
*/
public boolean isDoubleBuffered() {
return instance.isDoubleBuffered();
}
public int getWidth(){
return super.getWidth();
}
public int getHeight(){
return super.getHeight();
}
/**
* �õ�ÿ���ֵ��Ӧ��GameAction �����û��������Ϸ��,Ĭ�Ϸ���0
*
* @param keyCode ��ֵ
* @return ���ڵ���Ϸ��ֵ,���û�ж���,�
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -