Package org.pentaho.reporting.engine.classic.core.layout.process.CleanTableRowsPreparationStep

Examples of org.pentaho.reporting.engine.classic.core.layout.process.CleanTableRowsPreparationStep.Cell


  }

  public void testNonSpan()
  {
    GenericObjectTable<Cell> cells = new GenericObjectTable<Cell>();
    cells.setObject(0, 0, new Cell(0, 0, 1, 0));
    cells.setObject(1, 0, new Cell(1, 0, 1, 10));
    cells.setObject(2, 0, new Cell(2, 0, 1, 20));
    cells.setObject(3, 0, new Cell(3, 0, 1, 30));

    int pageOffset = 0;
    assertEquals(0, CleanTableRowsPreparationStep.computeSafeCut(pageOffset, cells, 4));
  }
View Full Code Here


  }

  public void testNonSpan2()
  {
    GenericObjectTable<Cell> cells = new GenericObjectTable<Cell>();
    cells.setObject(0, 0, new Cell(0, 0, 1, 0));
    cells.setObject(1, 0, new Cell(1, 0, 1, 10));
    cells.setObject(2, 0, new Cell(2, 0, 1, 20));
    cells.setObject(3, 0, new Cell(3, 0, 1, 30));

    int pageOffset = 20;
    assertEquals(2, CleanTableRowsPreparationStep.computeSafeCut(pageOffset, cells, 4));
  }
View Full Code Here

  }

  public void testNonSpan3()
  {
    GenericObjectTable<Cell> cells = new GenericObjectTable<Cell>();
    cells.setObject(0, 0, new Cell(0, 0, 1, 0));
    cells.setObject(1, 0, new Cell(1, 0, 2, 10));
    cells.setObject(3, 0, new Cell(3, 0, 1, 30));
    cells.setObject(4, 0, new Cell(4, 0, 1, 40));

    int pageOffset = 20;
    assertEquals(1, CleanTableRowsPreparationStep.computeSafeCut(pageOffset, cells, 4));
  }
View Full Code Here

  }

  public void testInterleavedSpan()
  {
    GenericObjectTable<Cell> cells = new GenericObjectTable<Cell>();
    addCell(cells, new Cell(0, 0, 2, 0));
    addCell(cells, new Cell(0, 1, 1, 0));
    addCell(cells, new Cell(1, 1, 2, 10));
    addCell(cells, new Cell(2, 0, 2, 20));
    addCell(cells, new Cell(3, 1, 2, 30));
    addCell(cells, new Cell(4, 0, 1, 40));

    int pageOffset = 35;
    assertEquals(2, CleanTableRowsPreparationStep.computeSafeCut(pageOffset, cells, 5));

    pageOffset = 25;
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.layout.process.CleanTableRowsPreparationStep.Cell

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.