Examples of LogicalPageBox


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

        {200, 400},
        {400, 800}
    };

    final Band table = createTable(layout, 1);
    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(new MasterReport(), table);

    // TESTBUG: Test disabled for a few days, until we can deal with it properly
//    ModelPrinter.print(logicalPageBox);
//    assertWidth(layout, logicalPageBox);
  }
View Full Code Here

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

        {300, 600},
        {200, 100}
    };

    final Band table = createTable(layout, 1);
    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutSingleBand(new MasterReport(), table);

    // TESTBUG: Test disabled for a few days, until we can deal with it properly
//    ModelPrinter.INSTANCE.print(logicalPageBox);
//    assertWidth(layout, logicalPageBox);
  }
View Full Code Here

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

    final MasterReport report = new MasterReport();
    report.getReportHeader().setLayout(BandStyleKeys.LAYOUT_TABLE);
    report.getReportHeader().addElement(tableSection);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutPage(report, 0);
    //ModelPrinter.print(logicalPageBox);

    final RenderNode renderedCell1 = MatchFactory.findElementByName(logicalPageBox, "c-0-0");
    assertNotNull(renderedCell1);
    assertEquals(StrictGeomUtility.toInternalValue(0), renderedCell1.getY());
View Full Code Here

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

    report.getStyle().setStyleProperty(TextStyleKeys.WORDBREAK, true);
    report.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "true");
    report.getReportHeader().setLayout(BandStyleKeys.LAYOUT_TABLE);
    report.getReportHeader().addElement(tableSection);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutPage(report, 0);
    //ModelPrinter.print(logicalPageBox);

    final RenderNode renderedCell1 = MatchFactory.findElementByName(logicalPageBox, "c-0-0");
    assertNotNull(renderedCell1);
    long heightCell00 = renderedCell1.getHeight();
View Full Code Here

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

    final MasterReport report = new MasterReport();
    report.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "false");
    report.getReportHeader().setLayout(BandStyleKeys.LAYOUT_TABLE);
    report.getReportHeader().addElement(tableSection);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutPage(report, 0);
    //ModelPrinter.print(logicalPageBox);

    final RenderNode renderedCell1 = MatchFactory.findElementByName(logicalPageBox, "c-0-0");
    assertNotNull(renderedCell1);
    assertEquals(StrictGeomUtility.toInternalValue(0), renderedCell1.getY());
View Full Code Here

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

    final MasterReport report = new MasterReport();
    report.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "false");
    report.getReportHeader().setLayout(BandStyleKeys.LAYOUT_TABLE);
    report.getReportHeader().addElement(tableSection);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutPage(report, 0);
    //ModelPrinter.print(logicalPageBox);

    final RenderBox renderedCell1 = (RenderBox) MatchFactory.findElementByName(logicalPageBox, "c-0-0");
    assertNotNull(renderedCell1);
    assertEquals(StrictGeomUtility.toInternalValue(0), renderedCell1.getY());
View Full Code Here

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

    report.getStyle().setStyleProperty(TextStyleKeys.WORDBREAK, true);
    report.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "true");
    report.getReportHeader().setLayout(BandStyleKeys.LAYOUT_TABLE);
    report.getReportHeader().addElement(tableSection);

    final LogicalPageBox logicalPageBox = DebugReportRunner.layoutPage(report, 0);
    //ModelPrinter.print(logicalPageBox);

    final RenderBox renderedCell1 = (RenderBox) MatchFactory.findElementByName(logicalPageBox, "c-0-0");
    assertNotNull(renderedCell1);
    long heightCell00 = renderedCell1.getHeight();
View Full Code Here

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

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

    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

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

    final MasterReport report = new MasterReport();
    final Band table = TableTestUtil.createTable(1, 1, 1);
    table.setName("table");
    report.getReportHeader().addElement(table);

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

    final RenderNode table1 = MatchFactory.findElementByName(logicalPageBox, "table");
    assertEquals(StrictGeomUtility.toInternalValue(150), table1.getWidth());
    assertEquals(StrictGeomUtility.toInternalValue(40), table1.getHeight());
View Full Code Here

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

    final Band table = TableTestUtil.createTable(2, 1, 1);
    table.setName("table");
    table.getStyle().setStyleProperty(ElementStyleKeys.POS_X, 50f);
    report.getReportHeader().addElement(table);

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

    final RenderNode table1 = MatchFactory.findElementByName(logicalPageBox, "table");
    assertEquals(StrictGeomUtility.toInternalValue(300), table1.getWidth());
    assertEquals(StrictGeomUtility.toInternalValue(40), table1.getHeight());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.