/**
*
*/
public Object createObject(Attributes atts)
{
JRDesignGraphicElement graphicElement = (JRDesignGraphicElement)digester.peek();
StretchTypeEnum stretchType = StretchTypeEnum.getByName(atts.getValue(JRXmlConstants.ATTRIBUTE_stretchType));
if (stretchType != null)
{
graphicElement.setStretchType(stretchType);
}
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;
}