/**
*
*/
public Object createObject(Attributes atts)
{
JRChartPlot plot = (JRChartPlot) digester.peek();
Color color = JRColorUtil.getColor(atts.getValue(JRXmlConstants.ATTRIBUTE_backcolor), Color.black);
if (color != null)
{
plot.setBackcolor(color);
}
PlotOrientationEnum orientation = PlotOrientationEnum.getByName(atts.getValue(JRXmlConstants.ATTRIBUTE_orientation));
if (orientation != null)
{
plot.setOrientation(orientation.getOrientation());
}
String foregroundAlpha = atts.getValue(JRXmlConstants.ATTRIBUTE_foregroundAlpha);
if (foregroundAlpha != null && foregroundAlpha.length() > 0)
{
plot.setForegroundAlpha(Float.valueOf(foregroundAlpha));
}
String backgroundAlpha = atts.getValue(JRXmlConstants.ATTRIBUTE_backgroundAlpha);
if (backgroundAlpha != null && backgroundAlpha.length() > 0)
{
plot.setBackgroundAlpha(Float.valueOf(backgroundAlpha));
}
String labelRotation = atts.getValue(JRXmlConstants.ATTRIBUTE_labelRotation);
if (labelRotation != null && labelRotation.length() > 0)
{
plot.setLabelRotation(Double.valueOf(labelRotation));
}
return plot;
}