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

Method handleMouseDown

ij/src/main/java/ij/gui/Roi.java:1625–1635  ·  view source on GitHub ↗
(int sx, int sy)

Source from the content-addressed store, hash-verified

1623 }
1624
1625 protected void handleMouseDown(int sx, int sy) {
1626 if (state==NORMAL && ic!=null) {
1627 state = MOVING;
1628 previousSX = sx;
1629 previousSY = sy;
1630 startX = offScreenX(sx);
1631 startY = offScreenY(sy);
1632 startXD = offScreenXD(sx);
1633 startYD = offScreenYD(sy);
1634 }
1635 }
1636
1637 protected void handleMouseUp(int screenX, int screenY) {
1638 state = NORMAL;

Callers 2

handleRoiMouseDownMethod · 0.95
activateOverlayRoiMethod · 0.95

Calls 4

offScreenXMethod · 0.95
offScreenYMethod · 0.95
offScreenXDMethod · 0.95
offScreenYDMethod · 0.95

Tested by

no test coverage detected