Package org.pentaho.reporting.designer.core.editor.report.layouting

Examples of org.pentaho.reporting.designer.core.editor.report.layouting.ReportLayouter


  {
    MasterReport masterReport = new MasterReport();
    SubReport element = new SubReport();
    masterReport.getReportHeader().addSubReport(element);

    ReportLayouter l = new ReportLayouter(new ReportRenderContext(masterReport));
    LogicalPageBox layout = l.layout();
    ModelPrinter.INSTANCE.print(layout);

    MatchFactory.findElementsByAttribute
        (layout, AttributeNames.Core.NAMESPACE, AttributeNames.Core.ELEMENT_TYPE, element.getElementType());
  }
View Full Code Here


    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource resource = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) resource.getResource();

    final ReportLayouter l = new ReportLayouter
        (new ReportRenderContext(report, report, null, new GlobalAuthenticationStore()));
    final LogicalPageBox layout = l.layout();
  //  ModelPrinter.print(layout);

  }
View Full Code Here

    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();

    ReportRenderContext rcontext = new ReportRenderContext(report, report, null, new GlobalAuthenticationStore());
    final ReportLayouter layouter = new ReportLayouter(rcontext);
    final LogicalPageBox logicalPageBox = layouter.layout();

    assertEquals(2000000, logicalPageBox.getHeight());
  }
View Full Code Here

    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource resource = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) resource.getResource();

    final ReportLayouter l = new ReportLayouter
        (new ReportRenderContext(report, report, null, new GlobalAuthenticationStore()));
    final LogicalPageBox layout = l.layout();

    ModelPrinter.INSTANCE.print(layout);
    assertNotNull(MatchFactory.findElementsByElementType(layout, ItemBandType.INSTANCE));
    assertNotNull(MatchFactory.findElementsByElementType(layout, SubReportType.INSTANCE));
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.editor.report.layouting.ReportLayouter

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.