Package net.sf.jasperreports.engine.fill

Examples of net.sf.jasperreports.engine.fill.JRTemplatePrintFrame


    datasetRun.evaluate(evaluation);
  }

  protected void createPrintFrame()
  {
    printFrame = new JRTemplatePrintFrame(getFrameTemplate());
    printFrame.setX(fillContext.getComponentElement().getX());
    printFrame.setWidth(fillContext.getComponentElement().getWidth());
  }
View Full Code Here


    }
  }

  public JRPrintElement fill()
  {
    JRTemplatePrintFrame printFrame = new JRTemplatePrintFrame(getFrameTemplate());
    printFrame.setX(fillContext.getComponentElement().getX());
    printFrame.setY(fillContext.getElementPrintY());
    printFrame.setWidth(fillWidth);
    printFrame.setHeight(fillSubreport.getContentsStretchHeight());
   
    List styles = fillSubreport.getSubreportStyles();
    for (Iterator it = styles.iterator(); it.hasNext();)
    {
      JRStyle style = (JRStyle) it.next();
      try
      {
        fillContext.getFiller().addPrintStyle(style);
      }
      catch (JRException e)
      {
        throw new JRRuntimeException(e);
      }
    }
   
    List origins = fillSubreport.getSubreportOrigins();
    for (Iterator it = origins.iterator(); it.hasNext();)
    {
      JROrigin origin = (JROrigin) it.next();
      fillContext.getFiller().getJasperPrint().addOrigin(origin);
    }
   
    Collection elements = fillSubreport.getPrintElements();
    if (elements != null)
    {
      for (Iterator it = elements.iterator(); it.hasNext();)
      {
        JRPrintElement element = (JRPrintElement) it.next();
        printFrame.addElement(element);
      }
    }
   
    return printFrame;
  }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.fill.JRTemplatePrintFrame

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.