📄 groupsection.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 + -