()
| 6014 | } |
| 6015 | |
| 6016 | void makePoint() { |
| 6017 | double x = getFirstArg(); |
| 6018 | double y = getNextArg(); |
| 6019 | String options = null; |
| 6020 | if (interp.nextToken()==',') |
| 6021 | options = getNextString(); |
| 6022 | interp.getRightParen(); |
| 6023 | if (options==null) { |
| 6024 | if ((int)x==x && (int)y==y) |
| 6025 | IJ.makePoint((int)x, (int)y); |
| 6026 | else |
| 6027 | IJ.makePoint(x, y); |
| 6028 | } else { |
| 6029 | if (options!=null && options.equals("add")) { //add point to multi-point selection |
| 6030 | IJ.setKeyDown(KeyEvent.VK_SHIFT); |
| 6031 | if ((int)x==x && (int)y==y) |
| 6032 | IJ.makePoint((int)x, (int)y); |
| 6033 | else |
| 6034 | IJ.makePoint(x, y); |
| 6035 | } else |
| 6036 | getImage().setRoi(new PointRoi(x, y, options)); |
| 6037 | } |
| 6038 | resetImage(); |
| 6039 | shiftKeyDown = altKeyDown = false; |
| 6040 | } |
| 6041 | |
| 6042 | void makeText() { |
| 6043 | String text = getFirstString(); |
no test coverage detected