Sets the default line width. Use setStrokeWidth() to set the width of a Line instance. @see #setStrokeWidth
(int w)
| 625 | * @see #setStrokeWidth |
| 626 | */ |
| 627 | public static void setWidth(int w) { |
| 628 | if (w<1) w = 1; |
| 629 | int max = 500; |
| 630 | if (w>max) { |
| 631 | ImagePlus imp2 = WindowManager.getCurrentImage(); |
| 632 | if (imp2!=null) { |
| 633 | max = Math.max(max, imp2.getWidth()); |
| 634 | max = Math.max(max, imp2.getHeight()); |
| 635 | } |
| 636 | if (w>max) w = max; |
| 637 | } |
| 638 | lineWidth = w; |
| 639 | widthChanged = true; |
| 640 | } |
| 641 | |
| 642 | /* Sets the width of this line. */ |
| 643 | public void setStrokeWidth(float width) { |
no test coverage detected