(Graphics g, int ofs, boolean selected)
| 161 | } |
| 162 | |
| 163 | public void drawItem(Graphics g, int ofs, boolean selected) { |
| 164 | setAbsOrg(g, 0, 0); |
| 165 | g.setColor(ColorTheme.getColor(ColorTheme.BLK_BGND)); |
| 166 | g.fillRect(0, 0, width, height); |
| 167 | |
| 168 | if (splashimg != null) { |
| 169 | g.drawImage(splashimg, width >> 1, height >> 1, Graphics.VCENTER | Graphics.HCENTER); |
| 170 | } |
| 171 | |
| 172 | if (pos == -1) { |
| 173 | if (status != null) { |
| 174 | status.drawItem(g, 0, false); |
| 175 | } |
| 176 | |
| 177 | g.setColor(ColorTheme.getColor(ColorTheme.BLK_INK)); |
| 178 | g.setFont(clockFont); |
| 179 | int h = clockFont.getHeight() + 1; |
| 180 | |
| 181 | String time = Time.localTime(); |
| 182 | int tw = clockFont.stringWidth(time); |
| 183 | |
| 184 | FontCache.drawString(g, time, width / 2, height, Graphics.BOTTOM | Graphics.HCENTER); |
| 185 | } else { |
| 186 | int filled = pos * width / 100; |
| 187 | if (pb == null) { |
| 188 | pb = new Progress(0, height, width); |
| 189 | } |
| 190 | pb.draw(g, filled, capt); |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | public String getTipString() { |
| 195 | return null; |
nothing calls this directly
no test coverage detected