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

Method scroll

ij/src/main/java/ij/text/TextPanel.java:544–550  ·  view source on GitHub ↗
(int inc)

Source from the content-addressed store, hash-verified

542 public void mouseEntered (MouseEvent e) {}
543
544 private void scroll(int inc) {
545 synchronized(this) {
546 sbVert.setValue(sbVert.getValue()+inc);
547 iY=iRowHeight*sbVert.getValue();
548 tc.repaint();
549 }
550 }
551
552 /** Unused keyPressed and keyTyped events will be passed to 'listener'.*/
553 public void addKeyListener(KeyListener listener) {

Callers 1

keyPressedMethod · 0.95

Calls 3

setValueMethod · 0.45
getValueMethod · 0.45
repaintMethod · 0.45

Tested by

no test coverage detected