⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setting.java

📁 飞信的j2me源代码
💻 JAVA
字号:
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Font;

class Setting
{

    Setting()
    {
    }

    public static final Command cmd_Selected = new Command("选择", 4, 1);
    public static final boolean NeedColon = true;
    public static final boolean Read_Photograph = true;
    public static final boolean is160x128;
    public static final int PermitErrorTimes = 6;
    public static final char NEWLINE = 1;
    public static final char POUND = 2;
    public static final char AND = 3;
    public static final Command cmd_OK = new Command("确定", 4, 1);
    public static final Command cmd_Cancel = new Command("取消", 2, 1);
    public static final Command cmd_Back = new Command("返回", 2, 1);
    public static final Command cmd_Exit = new Command("退出", 7, 1);
    public static final Command cmd_Close = new Command("关闭", 7, 1);
    public static final Command cmd_WriteMessage = new Command("消息", "发送消息", 4, 1);
    public static final Command cmd_ReLogin = new Command("确定", 4, 1);
    public static final int MAX_CHAR = 400;
    public static final int HEIGHT;
    public static final int WIDTH;
    public static boolean is128;
    public static final int SMALL_ICON_SIZE;
    public static final int CHAR_HEIGHT;
    public static final int BUDDY_ICON_SIZE;
    public static final int ITEM_HEIGHT;
    public static final int NICKNAME_Y_Offset = 0;
    public static final int SPACE = 1;
    public static final int SELECT_ITEM_FILL_HEIGHT;
    public static final int DISPLAY_ITEM_NUM;
    public static final int HEAD_HEIGHT;
    public static final int FOOT_HEIGHT = 15;
    public static final int color_Border = 0x5b86bb;
    public static final int color_Title = 0x487ae9;
    public static final int color_BackBround = 0xe7ebff;
    public static final int X_DaGou = 58;
    public static final int Y_DaGou = 28;
    public static final int X_AppName = 10;
    public static final int Y_AppName;
    public static final int parameter;
    public static final int X_Oneself_Appearance;
    public static final int X_Sound_Appearance;
    public static final int X_Absence_Information;
    public static final int X_Information;
    public static final byte READ_METHOD = 2;
    public static int leftKeyCode = -6;
    public static int rightKeyCode = -7;

    static 
    {
        is160x128 = MMIDlet.canvas.getHeight() >= 160;
        HEIGHT = MCanvas.HEIGHT;
        WIDTH = MCanvas.WIDTH;
        is128 = MCanvas.WIDTH == 128;
        SMALL_ICON_SIZE = MCanvas.WIDTH <= 176 ? 7 : 9;
        CHAR_HEIGHT = Font.getDefaultFont().getHeight();
        BUDDY_ICON_SIZE = MCanvas.WIDTH <= 176 ? ((int) (MCanvas.WIDTH <= 128 ? 14 : 16)) : 19;
        ITEM_HEIGHT = MCanvas.WIDTH <= 128 ? CHAR_HEIGHT : 21;
        SELECT_ITEM_FILL_HEIGHT = ITEM_HEIGHT + 2;
        DISPLAY_ITEM_NUM = MCanvas.WIDTH <= 176 ? 4 : 7;
        HEAD_HEIGHT = MCanvas.WIDTH <= 128 ? 16 : 20;
        Y_AppName = MCanvas.WIDTH <= 176 ? ((int) (MCanvas.WIDTH <= 128 ? 80 : 120)) : 160;
        parameter = (WIDTH - 128) / 48;
        X_Oneself_Appearance = 30 + parameter * 20;
        X_Sound_Appearance = X_Oneself_Appearance + 1 + BUDDY_ICON_SIZE + parameter * 10;
        X_Absence_Information = X_Sound_Appearance + (is128 ? 15 : 30);
        X_Information = X_Absence_Information + 30;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -