drawFrame.setSvgXAttribute(new Integer(rect.x).toString());
drawFrame.setSvgYAttribute(new Integer(rect.y).toString());
drawFrame.setSvgWidthAttribute(new Integer(rect.width).toString());
drawFrame.setSvgHeightAttribute(new Integer(rect.height).toString());
}
DrawObjectElement drawObject = OdfElement.findFirstChildNode(DrawObjectElement.class, drawFrame);
if(drawObject == null){
drawObject = drawFrame.newDrawObjectElement();
}
if (dataset.getCellRangeAddress() != null){
drawObject.setDrawNotifyOnUpdateOfRangesAttribute(dataset.getCellRangeAddress().toString());
}
drawObject.setXlinkHrefAttribute(ROOT_STRING + sName);
drawObject.setXlinkTypeAttribute("simple");
drawObject.setXlinkShowAttribute("embed");
drawObject.setXlinkActuateAttribute("onLoad");
mCharts.put(sName, chart);
return chart;
} catch (Exception ex) {
Logger.getLogger(AbstractChartContainer.class.getName()).log(Level.SEVERE, null, ex);
return null;