public Object createObject(Attributes atts) { StandardChartSettings chartSettings = new StandardChartSettings(); String isShowLegend = atts.getValue(JRXmlConstants.ATTRIBUTE_isShowLegend); if (isShowLegend != null && isShowLegend.length() > 0) { chartSettings.setShowLegend(Boolean.valueOf(isShowLegend)); } Color backcolor = JRColorUtil.getColor(atts.getValue(JRXmlConstants.ATTRIBUTE_backcolor), null); if (backcolor != null) { chartSettings.setBackcolor(backcolor); } chartSettings.setLinkType(atts.getValue(JRXmlConstants.ATTRIBUTE_hyperlinkType)); chartSettings.setLinkTarget(atts.getValue(JRXmlConstants.ATTRIBUTE_hyperlinkTarget)); String bookmarkLevelAttr = atts.getValue(JRXmlConstants.ATTRIBUTE_bookmarkLevel); if (bookmarkLevelAttr != null) { chartSettings.setBookmarkLevel(Integer.parseInt(bookmarkLevelAttr)); } chartSettings.setCustomizerClass(atts.getValue(JRXmlConstants.ATTRIBUTE_customizerClass)); chartSettings.setRenderType(atts.getValue(JRXmlConstants.ATTRIBUTE_renderType)); return chartSettings; }