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

Method mouseMoved

ij/src/main/java/ij/text/TextPanel.java:472–496  ·  view source on GitHub ↗
(MouseEvent e)

Source from the content-addressed store, hash-verified

470 }
471
472 public void mouseMoved (MouseEvent e) {
473 int x=e.getX(), y=e.getY();
474 if(y<=iRowHeight) {
475 int xb=x;
476 x=x+iX-iGridWidth;
477 int i=iColCount-1;
478 for(;i>=0;i--) {
479 if(x>-7 && x<7) break;
480 x+=iColWidth[i];
481 }
482 if(i>=0) {
483 if(!bDrag) {
484 setCursor(resizeCursor);
485 bDrag=true;
486 iXDrag=xb-iColWidth[i];
487 iColDrag=i;
488 }
489 return;
490 }
491 }
492 if(bDrag) {
493 setCursor(defaultCursor);
494 bDrag=false;
495 }
496 }
497
498 public void mouseDragged (MouseEvent e) {
499 if (e.isPopupTrigger() || e.isMetaDown())

Callers

nothing calls this directly

Calls 3

getXMethod · 0.65
getYMethod · 0.65
setCursorMethod · 0.45

Tested by

no test coverage detected