in src/org/pushingpixels/lightbeam/panels/TablePanel.java [293:323]
public PerformanceScenario getLargeScrollScenario() {
return new PerformanceScenario() {
int[] perms;
@Override
public String getName() {
return "Scrolling large table";
}
@Override
public void setup() {
table.scrollRectToVisible(table.getCellRect(0, 0, true));
table.getSelectionModel().clearSelection();
table.getColumnModel().getSelectionModel().clearSelection();
this.perms = LightBeamUtils.getPermutation(table.getRowCount(),
this.getIterationCount());
}
@Override
public int getIterationCount() {
return 10;
}
@Override
public void runSingleIteration(int iterationNumber) {
table.scrollRectToVisible(table.getCellRect(
this.perms[iterationNumber], 0, true));
table.paintImmediately(table.getVisibleRect());
}
};
}