Examples of validateActualSizes()


Examples of org.jfree.layouting.renderer.model.table.rows.TableRowModel.validateActualSizes()

  protected void finishSection(final TableSectionRenderBox section)
  {
    // OK; a complete section is a coolness factor. Lets compute something.
    // Grab the model of all available rows ..
    final TableRowModel rowModel = section.getRowModel();
    rowModel.validateActualSizes();
    long position = currentTable.getPosition();

    // Second step: Apply the row heights to all cells.
    // + Align all cells.
    final TableRow[] rows = rowModel.getRows();
View Full Code Here

Examples of org.jfree.layouting.renderer.model.table.rows.TableRowModel.validateActualSizes()

  protected void finishSection(final TableSectionRenderBox section)
  {
    // OK; a complete section is a coolness factor. Lets compute something.
    // Grab the model of all available rows ..
    final TableRowModel rowModel = section.getRowModel();
    rowModel.validateActualSizes();
    long position = currentTable.getPosition();

    // Second step: Apply the row heights to all cells.
    // + Align all cells.
    final TableRow[] rows = rowModel.getRows();
View Full Code Here

Examples of org.jfree.layouting.renderer.model.table.rows.TableRowModel.validateActualSizes()

  protected void finishSection(TableSectionRenderBox section)
  {
    // OK; a complete section is a coolness factor. Lets compute something.
    // Grab the model of all available rows ..
    final TableRowModel rowModel = section.getRowModel();
    rowModel.validateActualSizes();
    long position = currentTable.getPosition();

    // Second step: Apply the row heights to all cells.
    // + Align all cells.
    final TableRow[] rows = rowModel.getRows();
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.table.rows.SeparateRowModel.validateActualSizes()

    updateTableRow(rowModel, 1, 1000, 2000);
    updateTableRow(rowModel, 2, 1000, 0, 2000);
    updateTableRow(rowModel, 3, 1000);
    updateTableRow(rowModel, 4, 1000);
   
    rowModel.validateActualSizes();
    rowModel.prune(5);

    assertEquals(1, rowModel.getRowCount());
    assertEquals(1, rowModel.getRow(0).getMaximumRowSpan());
    assertEquals(5000, rowModel.getRow(0).getPreferredSize(1));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.table.rows.SeparateRowModel.validateActualSizes()

    updateTableRow(rowModel, 2, 1000);
    updateTableRow(rowModel, 3, 1000, 0, 2000);
    updateTableRow(rowModel, 4, 1000);
    updateTableRow(rowModel, 5, 1000);

    rowModel.validateActualSizes();

    assertEquals(3, rowModel.getRow(3).getMaximumRowSpan());
    assertEquals(1000, rowModel.getRow(3).getPreferredSize(1));
    assertEquals(1000, rowModel.getRow(3).getValidatedTrailingSize(1));
    assertEquals(0, rowModel.getRow(3).getPreferredSize(2));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.table.rows.SeparateRowModel.validateActualSizes()

    updateTableRow(rowModel, 0, 1000);
    updateTableRow(rowModel, 1, 1000, 2000);
    updateTableRow(rowModel, 2, 1000, 0, 2000);
    updateTableRow(rowModel, 3, 1000);
    updateTableRow(rowModel, 4, 1000);
    rowModel.validateActualSizes();
    rowModel.prune(2);

    // assert that nothing has been done. This model is actually not breakable.
    assertEquals(5, rowModel.getRowCount());
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.table.rows.TableRowModel.validateActualSizes()

  public void finishTableSection(final TableSectionRenderBox section)
  {
    final TableRowModel rowModel = section.getRowModel();
    if (section.getRowModelAge() != section.getChangeTracker())
    {
      rowModel.validateActualSizes();
      section.setRowModelAge(section.getChangeTracker());
    }

    final long usedTableBodyHeight = applyStep.start(section);
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.