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

Method mouseDragged

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

Source from the content-addressed store, hash-verified

496 }
497
498 public void mouseDragged (MouseEvent e) {
499 if (e.isPopupTrigger() || e.isMetaDown())
500 return;
501 int x=e.getX(), y=e.getY();
502 if(bDrag && x<tc.getSize().width) {
503 int w=x-iXDrag;
504 if(w<0) w=0;
505 iColWidth[iColDrag]=w;
506 columnsManuallyAdjusted = true;
507 adjustHScroll();
508 tc.repaint();
509 } else {
510 extendSelection(x, y);
511 }
512 }
513
514 public void mouseReleased (MouseEvent e) {
515 showLinePos();

Callers

nothing calls this directly

Calls 6

adjustHScrollMethod · 0.95
extendSelectionMethod · 0.95
getXMethod · 0.65
getYMethod · 0.65
getSizeMethod · 0.65
repaintMethod · 0.45

Tested by

no test coverage detected