/**
*
*/
public Object createObject(Attributes atts)
{
JRBasePrintGraphicElement graphicElement = (JRBasePrintGraphicElement)digester.peek();
PenEnum pen = PenEnum.getByName(atts.getValue(JRXmlConstants.ATTRIBUTE_pen));
if (pen != null)
{
if (log.isWarnEnabled())
{
log.warn("The 'pen' attribute is deprecated. Use the <pen> tag instead.");
}
JRPenUtil.setLinePenFromPen(pen, graphicElement.getLinePen());
}
FillEnum fill = FillEnum.getByName(atts.getValue(JRXmlConstants.ATTRIBUTE_fill));
if (fill != null)
{
graphicElement.setFill(fill);
}
return graphicElement;
}