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

Method adjustVScroll

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

Source from the content-addressed store, hash-verified

333 }
334
335 synchronized void adjustVScroll() {
336 if(iRowHeight==0) return;
337 Dimension d = tc.getSize();
338 int value = iY/iRowHeight;
339 int visible = d.height/iRowHeight;
340 int maximum = iRowCount+1;
341 if (visible<0) visible=0;
342 if (visible>maximum) visible=maximum;
343 if (value>(maximum-visible)) value=maximum-visible;
344 sbVert.setValues(value,visible,0,maximum);
345 iY=iRowHeight*value;
346 }
347
348 synchronized void adjustHScroll() {
349 if (iRowHeight==0) return;

Callers 5

updateDisplayMethod · 0.95
clearSelectionMethod · 0.95
clearMethod · 0.95
setBoundsMethod · 0.80
paintMethod · 0.80

Calls 2

getSizeMethod · 0.65
setValuesMethod · 0.45

Tested by

no test coverage detected