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

📄 groupsection.java

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

public class GroupSection
{

    boolean isExpand;
    boolean isSelected;
    int y;
    String str;

    private GroupSection()
    {
        isExpand = false;
        isSelected = false;
        y = 0;
    }

    GroupSection(String s)
    {
        isExpand = false;
        isSelected = false;
        y = 0;
        str = s;
    }

    void paint(Graphics g)
    {
        if(isSelected)
        {
            g.setColor(0x899bff);
            g.fillRect(1, y, Setting.WIDTH - 2, Setting.SELECT_ITEM_FILL_HEIGHT);
        }
        g.setColor(0);
        if(isExpand)
            MCanvas.blt(MCanvas.img_BigIcon, 9 * Setting.BUDDY_ICON_SIZE, 0, Setting.BUDDY_ICON_SIZE, Setting.BUDDY_ICON_SIZE, 2, y + 2, g);
        if(!isExpand)
            MCanvas.blt(MCanvas.img_BigIcon, 8 * Setting.BUDDY_ICON_SIZE, 0, Setting.BUDDY_ICON_SIZE, Setting.BUDDY_ICON_SIZE, 2, y + 2, g);
        if(isSelected)
            g.setColor(0xffffff);
        else
            g.setColor(0);
        g.drawString(str, 4 + Setting.ITEM_HEIGHT, y + 2 + 0, 20);
    }
}

⌨️ 快捷键说明

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