Package org.pentaho.reporting.engine.classic.core.layout.model

Examples of org.pentaho.reporting.engine.classic.core.layout.model.LogicalPageBox


    final MasterReport report = new MasterReport();
    final ReportHeader band = report.getReportHeader();
    band.addElement(tableBody);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    //ModelPrinter.INSTANCE.print(logicalPageBox);

    final NodeMatcher matcher = new ChildMatcher(new ElementMatcher("TableCellRenderBox"));
    final RenderNode[] all = MatchFactory.matchAll(logicalPageBox, matcher);
View Full Code Here


    final MasterReport report = new MasterReport();
    final ReportHeader band = report.getReportHeader();
    band.addElement(tableBody);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    //ModelPrinter.INSTANCE.print(logicalPageBox);

    final NodeMatcher matcher = new ChildMatcher(new ElementMatcher("TableCellRenderBox"));
    final RenderNode[] all = MatchFactory.matchAll(logicalPageBox, matcher);
View Full Code Here

    final MasterReport report = new MasterReport();
    final ReportHeader band = report.getReportHeader();
    band.addElement(tableCell);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    //ModelPrinter.print(logicalPageBox);

    final NodeMatcher matcher = new ChildMatcher(new ElementMatcher("TableCellRenderBox"));
    final RenderNode[] all = MatchFactory.matchAll(logicalPageBox, matcher);
View Full Code Here

    final MasterReport report = new MasterReport();
    final ReportHeader band = report.getReportHeader();
    band.addElement(table);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, band, false, false);
    //ModelPrinter.print(logicalPageBox);

    final NodeMatcher matcher = new ChildMatcher(new ElementMatcher("TableCellRenderBox"));
    final RenderNode[] all = MatchFactory.matchAll(logicalPageBox, matcher);
View Full Code Here

    final ResourceManager rm = new ResourceManager();
    rm.registerDefaults();
    final Resource directly = rm.createDirectly(target, MasterReport.class);
    final MasterReport report = (MasterReport) directly.getResource();

    final LogicalPageBox logicalPageBox =
        DebugReportRunner.layoutSingleBand(basereport, report.getReportHeader(), false, false);
    // simple test, we assert that all paragraph-poolboxes are on either 485000 or 400000
    // and that only two lines exist for each

    // This test works on some invalid assumptions and therefore cannot validate properly.
View Full Code Here

    report.getReportHeader().addElement(band);
    report.setCompatibilityLevel(null);
    report.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "true");
    report.getStyle().setStyleProperty(TextStyleKeys.WORDBREAK, true);

    LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, report.getReportHeader(), false, false);

    ParagraphRenderBox outerBox = (ParagraphRenderBox) MatchFactory.findElementByName(logicalPageBox, "outer-box");
    assertNotNull(outerBox);
    assertEquals(0, outerBox.getY());
    assertTrue(outerBox.getHeight() > StrictGeomUtility.toInternalValue(14));
View Full Code Here

    report.setPageDefinition(p);
    final Band table = TableTestUtil.createTable(2, 1, 1, new ElementCreator());
    table.setName("table");
    report.getReportHeader().addElement(table);

    final LogicalPageBox pageBox = DebugReportRunner.layoutPage(report, 0);
    final RenderNode[] elementsByNodeType = MatchFactory.findElementsByNodeType(pageBox, LayoutNodeTypes.TYPE_BOX_TABLE_CELL);
    assertEquals(4, elementsByNodeType.length);
    for (int i = 0; i < elementsByNodeType.length; i++)
    {
      final RenderNode renderNode = elementsByNodeType[i];
View Full Code Here

    report.setPageDefinition(p);
    final Band table = TableTestUtil.createTable(2, 2, 1, new RowSpanElementCreator());
    table.setName("table");
    report.getReportHeader().addElement(table);

    final LogicalPageBox pageBox = DebugReportRunner.layoutPage(report, 0);
    final RenderNode[] elementsByNodeType = MatchFactory.findElementsByNodeType(pageBox, LayoutNodeTypes.TYPE_BOX_TABLE_CELL);
    assertEquals(5, elementsByNodeType.length);

    for (int i = 0; i < elementsByNodeType.length; i++)
    {
View Full Code Here

  public void testLegacy() throws ReportProcessingException, ContentProcessingException
  {
    final MasterReport report = createReport(false);

    report.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "false");
    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, report.getPageHeader(), false, false);
    // simple test, we assert that all paragraph-poolboxes are on either 485000 or 400000
    // and that only two lines exist for each
    new ValidateRunner().startValidation(logicalPageBox, false, false);
  }
View Full Code Here

  public void testLegacyNoEffectOfWrap() throws ReportProcessingException, ContentProcessingException
  {
    final MasterReport report = createReport(true);

    report.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "false");
    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(report, report.getPageHeader(), false, false);
    // simple test, we assert that all paragraph-poolboxes are on either 485000 or 400000
    // and that only two lines exist for each
    new ValidateRunner().startValidation(logicalPageBox, false, false);
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.layout.model.LogicalPageBox

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.