MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / mouseMoved

Method mouseMoved

ij/src/main/java/ij/ImagePlus.java:2898–2904  ·  view source on GitHub ↗

Displays the cursor coordinates and pixel value in the status bar. Called by ImageCanvas when the mouse moves.

(int x, int y)

Source from the content-addressed store, hash-verified

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

Callers 1

updateStatusbarValueMethod · 0.95

Calls 8

getRoiMethod · 0.95
statusBarProtectedMethod · 0.95
getStateMethod · 0.95
altKeyDownMethod · 0.95
getTitleMethod · 0.95
getLocationAsStringMethod · 0.95
getValueAsStringMethod · 0.95
showStatusMethod · 0.65

Tested by

no test coverage detected