(Graphics g)
| 198 | } |
| 199 | |
| 200 | public void paint(Graphics g){ |
| 201 | scWidth = g.getClipWidth(); |
| 202 | scHeight = g.getClipHeight(); |
| 203 | |
| 204 | if((!leftCommand.equals("")) || (!rightCommand.equals(""))){ |
| 205 | drawFooter(g); |
| 206 | if(!leftCommand.equals("")) |
| 207 | drawLeftCommand(g, leftCommand); |
| 208 | |
| 209 | if(!centerCommand.equals("")) { |
| 210 | drawCenterCommand(g, centerCommand); |
| 211 | } else { |
| 212 | drawCenterCommand(g, Time.localTime()); |
| 213 | } |
| 214 | |
| 215 | if(!rightCommand.equals("")) |
| 216 | drawRightCommand(g, rightCommand); |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | public void draw (Graphics g) { |
| 221 | if (!initiated) |
no test coverage detected