Examples of JRBasePrintGraphicElement


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
Copyright © 2018 www.massapi.com. 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.