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

Method handleMouseUp

ij/src/main/java/ij/gui/Line.java:100–113  ·  view source on GitHub ↗
(int screenX, int screenY)

Source from the content-addressed store, hash-verified

98 }
99
100 protected void handleMouseUp(int screenX, int screenY) {
101 mouseUpCount++;
102 if (Prefs.enhancedLineTool && mouseUpCount==1 && !dragged)
103 return;
104 state = NORMAL;
105 if (imp==null) return;
106 imp.draw(clipX-5, clipY-5, clipWidth+10, clipHeight+10);
107 if (IJ.recording()) {
108 String method = (this instanceof Arrow)?"makeArrow":"makeLine";
109 Recorder.record(method, x1, y1, x2, y2);
110 }
111 if (getLength()==0.0)
112 imp.deleteRoi();
113 }
114
115 protected void drawLine(int sx, int sy) {
116 double xend = offScreenXD(sx);

Callers

nothing calls this directly

Calls 5

recordingMethod · 0.95
recordMethod · 0.95
getLengthMethod · 0.95
deleteRoiMethod · 0.80
drawMethod · 0.45

Tested by

no test coverage detected