()
| 1207 | } |
| 1208 | |
| 1209 | void drawString() { |
| 1210 | interp.getLeftParen(); |
| 1211 | String str = getString(); |
| 1212 | interp.getComma(); |
| 1213 | int x = (int)(interp.getExpression()+0.5); |
| 1214 | interp.getComma(); |
| 1215 | int y = (int)(interp.getExpression()+0.5); |
| 1216 | Color background = null; |
| 1217 | if (interp.nextToken()==',') { |
| 1218 | interp.getComma(); |
| 1219 | background = getColor(); |
| 1220 | } |
| 1221 | interp.getRightParen(); |
| 1222 | ImageProcessor ip = getProcessor(); |
| 1223 | setFont(ip); |
| 1224 | ip.setJustification(justification); |
| 1225 | ip.setAntialiasedText(antialiasedText); |
| 1226 | if (background!=null) |
| 1227 | ip.drawString(str, x, y, background); |
| 1228 | else |
| 1229 | ip.drawString(str, x, y); |
| 1230 | updateAndDraw(); |
| 1231 | } |
| 1232 | |
| 1233 | void setFont(ImageProcessor ip) { |
| 1234 | if (font!=null && !fontSet) |
no test coverage detected