()
| 3676 | } |
| 3677 | |
| 3678 | void setLocation() { |
| 3679 | int x = (int)getFirstArg(); |
| 3680 | int y = (int)getNextArg(); |
| 3681 | int width=0, height=0; |
| 3682 | if (interp.nextToken()==',') { |
| 3683 | width = (int)getNextArg(); |
| 3684 | height = (int)getNextArg(); |
| 3685 | } |
| 3686 | interp.getRightParen(); |
| 3687 | if (width==0 && height==0) { |
| 3688 | Window win = WindowManager.getActiveWindow(); |
| 3689 | if (win!=null) |
| 3690 | win.setLocation(x, y); |
| 3691 | } else { |
| 3692 | ImagePlus imp = getImage(); |
| 3693 | ImageWindow win = imp.getWindow(); |
| 3694 | if (win!=null) |
| 3695 | win.setLocationAndSize(x, y, width, height); |
| 3696 | } |
| 3697 | } |
| 3698 | |
| 3699 | void setSlice() { |
| 3700 | int n = (int)getArg(); |
no test coverage detected