Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JROrigin


  {
    this.fillContext = fillContext;
    this.parentReport = fillContext.getFiller().getJasperReport();
    this.mainDataset = mainDataset;
   
    this.detail = wrapBand(createDetailBand(fillColumns), new JROrigin(BandTypeEnum.DETAIL));
    this.title = createTitle(fillColumns);
    this.summary = createSummary(fillColumns);
    this.columnHeader = createColumnHeader(fillColumns);
    this.pageFooter = createPageFooter(fillColumns);
   
View Full Code Here


   
    groupHeaderSection = factory.getSection(group.getGroupHeaderSection());
    if (groupHeaderSection != factory.getFiller().missingFillSection)
    {
      groupHeaderSection.setOrigin(
        new JROrigin(
          reportName,
          group.getName(),
          BandTypeEnum.GROUP_HEADER
          )
        );
    }

    groupFooterSection = factory.getSection(group.getGroupFooterSection());
    if (groupFooterSection != factory.getFiller().missingFillSection)
    {
      groupFooterSection.setOrigin(
        new JROrigin(
          reportName,
          group.getName(),
          BandTypeEnum.GROUP_FOOTER
          )
        );
View Full Code Here

    xmlWriter.addAttribute(JRXmlConstants.ATTRIBUTE_y, element.getY() + getOffsetY());
    xmlWriter.addAttribute(JRXmlConstants.ATTRIBUTE_width, element.getWidth());
    xmlWriter.addAttribute(JRXmlConstants.ATTRIBUTE_height, element.getHeight());
    xmlWriter.addAttribute(JRXmlConstants.ATTRIBUTE_forecolor, element.getOwnForecolor());
    xmlWriter.addAttribute(JRXmlConstants.ATTRIBUTE_backcolor, element.getOwnBackcolor());
    JROrigin origin = element.getOrigin();
    if (origin != null)
    {
      xmlWriter.addAttribute(JRXmlConstants.ATTRIBUTE_origin, jasperPrint.getOriginsMap().get(origin));
    }
   
View Full Code Here

  /**
   *
   */
  public JRDesignGroup()
  {
    groupHeaderSection = new JRDesignSection(new JROrigin(null, getName(), BandTypeEnum.GROUP_HEADER));
    groupFooterSection = new JRDesignSection(new JROrigin(null, getName(), BandTypeEnum.GROUP_FOOTER));
  }
View Full Code Here

 
  protected void setSectionOrigin(JRSection section, BandTypeEnum type)
  {
    if (section instanceof JRDesignSection)
    {
      JROrigin origin = new JROrigin(null, getName(), type);
      ((JRDesignSection) section).setOrigin(origin);
    }
  }
View Full Code Here

 
  protected void setBandOrigin(JRBand band, BandTypeEnum type)
  {
    if (band instanceof JRDesignBand)
    {
      JROrigin origin = new JROrigin(null, getName(), type);
      ((JRDesignBand) band).setOrigin(origin);
    }
  }
View Full Code Here

   */
  public JasperDesign()
  {
    setMainDataset(new JRDesignDataset(true));
   
    detailSection = new JRDesignSection(new JROrigin(BandTypeEnum.DETAIL));
  }
View Full Code Here

 
  protected void setBandOrigin(JRBand band, BandTypeEnum type)
  {
    if (band instanceof JRDesignBand)
    {
      JROrigin origin = new JROrigin(type);
      ((JRDesignBand) band).setOrigin(origin);
    }
  }
View Full Code Here

 
  protected void setSectionOrigin(JRSection section, BandTypeEnum type)
  {
    if (section instanceof JRDesignSection)
    {
      JROrigin origin = new JROrigin(type);
      ((JRDesignSection) section).setOrigin(origin);
    }
  }
View Full Code Here

    }
   
    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)
View Full Code Here

TOP

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

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.