Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRElementGroup


        {
          scaleCellElement(element, originalWidth, width);
         
          if (element instanceof JRElementGroup)//i.e. frame
          {
            JRElementGroup elementGroup = (JRElementGroup) element;
            for (JRElement subelement : elementGroup.getElements())
            {
              scaleCellElement(subelement, originalWidth, width);
            }
          }
        }
        frame.addElement(element);
      }
      else if (child instanceof JRElementGroup)
      {
        JRElementGroup elementGroup = (JRElementGroup) child;
        // clone the elements in order to set the frame as group
        elementGroup = (JRElementGroup) elementGroup.clone(frame);
        frame.addElementGroup(elementGroup);
       
        if (width != originalWidth)
        {
          for (JRElement element : elementGroup.getElements())
          {
            scaleCellElement(element, originalWidth, width);
          }
        }
      }
View Full Code Here


  /**
   *
   */
  public void visitElementGroup(JRElementGroup elementGroup)
  {
    JRElementGroup baseElementGroup = null;

    if (elementGroup != null)
    {
      baseElementGroup = (JRElementGroup)get(elementGroup);
      if (baseElementGroup == null)
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.JRElementGroup

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.