public static interface ListBox.CustomDrawingItem
class ItemSeek implements ListBox.CustomDrawingItem {
int tpsinc;
boolean admin;
String plat, date;
ItemSeek(String s) {
// 21Wi2014/12/05
tpsinc = s.charAt(0) - '0';
admin = s.charAt(1) == '1';
plat = s.substring(2, 4);
date = s.substring(4);
}
public void onItemPaint(Graphics g, int dx, int dy, int w, int h) {
g.drawText(data, dx, dy);
// and also other items
}
}
| Modifier and Type | Method and Description |
|---|---|
void |
onItemPaint(Graphics g,
int dx,
int dy,
int w,
int h) |
void onItemPaint(Graphics g, int dx, int dy, int w, int h)