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

Method showLinePos

ij/src/main/java/ij/text/TextPanel.java:365–374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

363 }
364
365 private void showLinePos() { // show line numbers in status bar (Norbert Visher)
366 int startLine = getSelectionStart() +1;
367 int endLine = getSelectionEnd() + 1;
368 String msg = "Line " + startLine;
369 if (startLine != endLine) {
370 msg += "-" + endLine;
371 }
372 if (!msg.equals("Line 0"))
373 IJ.showStatus(msg);
374 }
375
376 public void mousePressed (MouseEvent e) {
377 int x=e.getX(), y=e.getY();

Callers 3

mouseReleasedMethod · 0.95
keyReleasedMethod · 0.95
selectAllMethod · 0.95

Calls 4

getSelectionStartMethod · 0.95
getSelectionEndMethod · 0.95
showStatusMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected