(double x1, double y1, double x2, double y2, ImagePlus imp)
| 662 | } |
| 663 | |
| 664 | void drawLine(double x1, double y1, double x2, double y2, ImagePlus imp) { |
| 665 | ImageCanvas ic = imp.getCanvas(); |
| 666 | if (ic==null) |
| 667 | return; |
| 668 | Graphics g = ic.getGraphics(); |
| 669 | ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); |
| 670 | g.setColor(lineColor); |
| 671 | g.drawLine(ic.screenX((int)(x1+0.5)), ic.screenY((int)(y1+0.5)), ic.screenX((int)(x2+0.5)), ic.screenY((int)(y2+0.5))); |
| 672 | } |
| 673 | |
| 674 | public void textValueChanged(TextEvent e) { |
| 675 | updateSize(); |
no test coverage detected