// loop because of autoboxing
for (int i = 0; i < storage2.length; i++) {
dataArray[i] = storage2[i];
}
NumberMatrix matrix = new NumberMatrix();
matrix.setFlatValues(dataArray, dimY, dimX);
imageViewer.setData(matrix);
viewer = (JComponent) imageViewer.getComponent();
}
else if (data.getElementType().equals(short.class)
|| data.getElementType().equals(int.class)) {
// TODO sysout SMA
// System.out.println("case short");
int[] storage2 = (int[]) storage;
Number[] dataArray = new Number[storage2.length];
// loop because of autoboxing
for (int i = 0; i < storage2.length; i++) {
dataArray[i] = Integer.valueOf(storage2[i]);
}
NumberMatrix matrix = new NumberMatrix();
matrix.setFlatValues(dataArray, dimY, dimX);
imageViewer.setData(matrix);
viewer = (JComponent) imageViewer.getComponent();
}
else {