Package net.sf.jasperreports.engine.design

Examples of net.sf.jasperreports.engine.design.JRDesignGraphicElement


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

TOP

Related Classes of net.sf.jasperreports.engine.design.JRDesignGraphicElement

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.