*
*/
public Object createObject(Attributes atts)
{
JRChart chart = (JRChart) digester.peek();
JRDesignPie3DPlot pie3DPlot = (JRDesignPie3DPlot)chart.getPlot();
String depthFactor = atts.getValue(ATTRIBUTE_depthFactor);
if (depthFactor != null && depthFactor.length() > 0)
{
pie3DPlot.setDepthFactor(Double.valueOf(depthFactor));
}
String isCircular = atts.getValue(JRXmlConstants.ATTRIBUTE_isCircular);
if (isCircular != null && isCircular.length() > 0) {
pie3DPlot.setCircular(Boolean.valueOf(isCircular));
}
pie3DPlot.setLabelFormat(atts.getValue(JRXmlConstants.ATTRIBUTE_labelFormat));
pie3DPlot.setLegendLabelFormat(atts.getValue(JRXmlConstants.ATTRIBUTE_legendLabelFormat));
String isShowLabels = atts.getValue( ATTRIBUTE_isShowLabels );
if( isShowLabels != null && isShowLabels.length() > 0 ){
pie3DPlot.setShowLabels(Boolean.valueOf(isShowLabels));
}
return pie3DPlot;
}