Displays the cursor coordinates and pixel value in the status bar. Called by ImageCanvas when the mouse moves.
(int x, int y)
| 2896 | * Called by ImageCanvas when the mouse moves. |
| 2897 | */ |
| 2898 | public void mouseMoved(int x, int y) { |
| 2899 | Roi roi2 = getRoi(); |
| 2900 | if (ij!=null && !IJ.statusBarProtected() && (roi2==null || roi2.getState()==Roi.NORMAL)) { |
| 2901 | String title = IJ.altKeyDown()?" ("+getTitle()+")":""; |
| 2902 | ij.showStatus(getLocationAsString(x,y) + getValueAsString(x,y)+title); |
| 2903 | } |
| 2904 | } |
| 2905 | |
| 2906 | /** Redisplays the (x,y) coordinates and pixel value (which may |
| 2907 | * have changed) in the status bar. Called by the Next Slice and |
no test coverage detected