/**
* Main class, so you can have an example. You can put your own attribute names in parameter
*/
public static void main(final String[] args) {
final IFrame frame = new Frame();// CometeWidgetFactory.createFrame();
String tmpDeviceName = null;
String tmpAttributeName = null;
if (args != null && args.length > 1) {
tmpDeviceName = args[0];
tmpAttributeName = args[1];
}
else {
// tmpDeviceName = "tango/tangotest/spjz_01.01";
// tmpAttributeName = "double_image_ro";
tmpDeviceName = "test/scanserver/titan";
tmpAttributeName = "data_01";
}
final NumberImageViewerCometeV2 f = new NumberImageViewerCometeV2();
f.setDeviceName(tmpDeviceName);
f.setEntityName(tmpAttributeName);
f.setUserEnabled(false);
// f.setRefreshingPeriod(500);
// f.setAxisRangeX(50, 200);
// f.setAxisRangeY(100, 200);
f.setShowRoiInformationTable(true);
// f.addRoi("MyRoi1,RecTANGLE, 3, 10, 10, 80, 50,BLACK");
// f.addRoi("MyRoi2,RECTANGLE, 4, 100, 100, 90, 60,GREEN");
//
// //f.addRoi("MyRoi4,point, 2, 90, 90, 90, 60,red");
// f.addRoi("MyRoi2,RECTANGLE, 4, 120, 130, 90, 60,GREEN");
//
// f.setRoiList(new String[] { "MyRoiList,80,80,105,110" });
f.setShowImageTransformationActions(true);
f.initDAO();
frame.setContentPane(f);
frame.setSize(640, 480);
frame.setTitle(f.getClass().getName());
frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
// new Thread() {
// @Override
// public void run() {
// try {