return panel;
}
private static IImageViewer createImageViewer() {
IImageViewer viewer = new ImageViewer();
viewer.setAlwaysFitMaxSize(true);
NumberMatrixBox imageBox = new NumberMatrixBox();
TangoKey imagekey = new TangoKey();
TangoKeyTool.registerAttribute(imagekey, deviceName, imageName);
imageBox.connectWidget(viewer, imagekey);
// IMAGE ON X
ArrayPositionConvertor xConvertor = new ArrayPositionConvertor();
TangoKey xkey = new TangoKey();
TangoKeyTool.registerAttribute(xkey, deviceName, xAttributeName);
imageBox.connectWidget(xConvertor, xkey);
// SPECTRUM ON Y
ArrayPositionConvertor yConvertor = new ArrayPositionConvertor();
TangoKey ykey = new TangoKey();
TangoKeyTool.registerAttribute(ykey, deviceName, yAttributeName);
imageBox.connectWidget(yConvertor, ykey);
viewer.setXAxisConvertor(xConvertor);
viewer.setYAxisConvertor(yConvertor);
return viewer;
}