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

Method adjustHScroll

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

Source from the content-addressed store, hash-verified

346 }
347
348 synchronized void adjustHScroll() {
349 if (iRowHeight==0) return;
350 Dimension d = tc.getSize();
351 int w=0;
352 for (int i=0; i<iColCount; i++)
353 w+=iColWidth[i];
354 iGridWidth=w;
355 sbHoriz.setValues(iX,d.width,0,iGridWidth);
356 iX=sbHoriz.getValue();
357 }
358
359 public void adjustmentValueChanged (AdjustmentEvent e) {
360 iX=sbHoriz.getValue();

Callers 6

setColumnHeadingsMethod · 0.95
appendLineMethod · 0.95
mouseDraggedMethod · 0.95
scrollToTopMethod · 0.95
setBoundsMethod · 0.80
paintMethod · 0.80

Calls 3

getSizeMethod · 0.65
setValuesMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected