GridData componentGridData = new GridData();
componentGridData.verticalAlignment = SWT.BEGINNING;
componentPanel.setLayoutData(componentGridData);
final ImageViewer theComponent = new ImageViewer(componentPanel, SWT.NONE);
theComponent.setLayoutData(new RowData(275, 480));
int imageHeight = 1000;
int imageWidth = 1200;
double[] t2 = new double[imageHeight * imageWidth];
for (int i = 0; i < t2.length; i++) {
t2[i] = i * i;
}
// double[] t1 = new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
// theComponent.setFlatNumberMatrix(t1, 3, 5);
// System.out.println(Arrays.toString(t2));
theComponent.setFlatNumberMatrix(t2, imageWidth, imageHeight);
// ----------
Group testPanelIComponent = IComponentTestPanel.getTestPanel(mainComposite, theComponent);
Group testPanelINumberMatrixViewerComponent = INumberMatrixTargetTestPanel.getTestPanel(