(Graphics g, int ofs, boolean sel)
| 157 | } |
| 158 | |
| 159 | public void drawItem(Graphics g, int ofs, boolean sel) { |
| 160 | int xpgs = (g.getClipWidth() / 3) * 2; |
| 161 | int pgsz = g.getClipWidth() - xpgs - 4; |
| 162 | int filled = (fileSize == 0) ? 0 : (pgsz * filePos) / fileSize; |
| 163 | |
| 164 | int oldColor = g.getColor(); |
| 165 | g.setColor(0xffffff); |
| 166 | |
| 167 | g.fillRect(xpgs, 3, pgsz, getVHeight() - 6); |
| 168 | g.setColor(0x668866); |
| 169 | g.drawRect(xpgs, 3, pgsz, getVHeight() - 6); |
| 170 | g.fillRect(xpgs, 3, filled, getVHeight() - 6); |
| 171 | g.setColor(oldColor); |
| 172 | |
| 173 | super.drawItem(g, ofs, sel); |
| 174 | showEvent = false; |
| 175 | } |
| 176 | |
| 177 | public String toString() { |
| 178 | return fileName; |
nothing calls this directly
no test coverage detected