Package net.sf.jasperreports.engine.base

Examples of net.sf.jasperreports.engine.base.JRBasePrintGraphicElement


  /**
   *
   */
  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;
  }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.base.JRBasePrintGraphicElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.