(int type)
| 3971 | } |
| 3972 | |
| 3973 | void drawOrFill(int type) { |
| 3974 | int x = (int)getFirstArg(); |
| 3975 | int y = (int)getNextArg(); |
| 3976 | int width = (int)getNextArg(); |
| 3977 | int height = (int)getLastArg(); |
| 3978 | ImageProcessor ip = getProcessor(); |
| 3979 | switch (type) { |
| 3980 | case DRAW_RECT: ip.drawRect(x, y, width, height); break; |
| 3981 | case FILL_RECT: ip.setRoi(x, y, width, height); ip.fill(); break; |
| 3982 | case DRAW_OVAL: ip.drawOval(x, y, width, height); break; |
| 3983 | case FILL_OVAL: ip.fillOval(x, y, width, height); break; |
| 3984 | } |
| 3985 | updateAndDraw(); |
| 3986 | } |
| 3987 | |
| 3988 | double getScreenDimension(int type) { |
| 3989 | interp.getParens(); |
no test coverage detected