}
}
}
private void connectAttribute(String deviceName, String attribute, int axis, TangoKey xTangoKey) {
IKey dataKey = null;
TangoKey yTangoKey = new TangoKey();
TangoKeyTool.registerAttribute(yTangoKey, deviceName, attribute);
if (xTangoKey != null) {
// Connect Widget to the source in dual
String attributeName = TangoKeyTool.getAttributeName(xTangoKey);
boolean column = (attributeName.indexOf("actuator_2") > -1);
dataKey = ChartViewerBox.createDualKey(xTangoKey, yTangoKey);
chartBox.setSplitMatrixThroughColumns(dataKey, column);
// System.out.println("connectWidget dual x=" +
// xTangoKey.getInformationKey());
// System.out.println("connectWidget dual y=" +
// yTangoKey.getInformationKey());
// System.out.println("connectWidget dual=" +
// dataKey.getInformationKey());
} else {
// Connect Widget to the source
// System.out.println("connectWidget=" +
// yTangoKey.getInformationKey());
dataKey = yTangoKey;
}
// Set on the desired axis information Key is equal to the dataView id
setRefreshingPeriod(yTangoKey);
String dataViewId = yTangoKey.getInformationKey();
// System.out.println("Attribute Key = " +
// tangoKey.getInformationKey());
setDataViewConfiguration(dataViewId, axis, deviceName, attribute, -1);
// Bug 0024053 set configuration axis before add data
if (dataKey != null && !connectedDataList.contains(dataKey.getInformationKey())) {
// System.out.println("connectWidget=" +
// dataKey.getInformationKey());
connectedDataList.add(dataKey.getInformationKey());
chartBox.connectWidget(chartViewer, dataKey);
}
}