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

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


    if (logicalPageBox == null)
    {
      throw new IllegalStateException("LogicalPageBox being null? You messed it up again!");
    }

    final PageBreakPositionList breakPositionList = logicalPageBox.getAllVerticalBreaks();
    final long masterBreak = breakPositionList.getLastMasterBreak();
    final boolean nextPageContainsContent = (logicalPageBox.getHeight() > masterBreak);
    return nextPageContainsContent == false;
  }
View Full Code Here


  private ReportStateKey finalVisibleState;
  private long pageEnd;

  public FlowPaginationStep()
  {
    breakUtility = new PageBreakPositionList();
  }
View Full Code Here

    this.breakPending = false;
    this.breakAdded = false;
    this.finalVisibleState = null;
    this.pageEnd = pageBox.getHeight();

    final PageBreakPositionList allPreviousBreak = pageBox.getAllVerticalBreaks();

    // Note: For now, we limit both the header and footer to a single physical
    // page. This safes me a lot of trouble for now.
    breakUtility.copyFrom(allPreviousBreak);
View Full Code Here

    super(string);
  }

  protected void setUp() throws Exception
  {
    tester = new PageBreakPositionList();
    tester.addMajorBreak(0, 0);
    tester.addMinorBreak(5000);
    tester.addMajorBreak(10000, 0);
    tester.addMinorBreak(15000);
    tester.addMajorBreak(20000, 0);
View Full Code Here

    super(string);
  }

  protected void setUp() throws Exception
  {
    tester = new PageBreakPositionList();
    tester.addMajorBreak(0, 0);
    tester.addMinorBreak(5000);
    tester.addMajorBreak(10000, 0);
    tester.addMinorBreak(15000);
    tester.addMajorBreak(20000, 0);
View Full Code Here

  private BreakMarkerRenderBox breakIndicatorEncountered;
  private long pageStart;

  public PaginationStep()
  {
    breakUtility = new PageBreakPositionList();
  }
View Full Code Here

      {
        // This is also bad. There will be no space left to print a single element.
        throw new IllegalStateException("Header and footer consume the whole page. No space left for normal-flow.");
      }

      final PageBreakPositionList allPreviousBreak = pageBox.getAllVerticalBreaks();
      breakUtility.copyFrom(allPreviousBreak);

      // Then add all new breaks (but take the header and footer-size into account) ..
      if (allCurrentBreaks.length == 1)
      {
View Full Code Here

  public boolean isCurrentPageEmpty()
  {
    // todo: Invent a test that checks whether the page is currently empty.
    final LogicalPageBox logicalPageBox = getPageBox();
    final PageBreakPositionList breakPositionList = logicalPageBox.getAllVerticalBreaks();
    final long masterBreak = breakPositionList.getLastMasterBreak();
    final boolean nextPageContainsContent = (logicalPageBox.getHeight() > masterBreak);
    return nextPageContainsContent == false;
  }
View Full Code Here

                                           final LogicalPageBox pageBox,
                                           final long[] allCurrentBreaks,
                                           final long reservedHeight,
                                           final long lastBreakLocal)
  {
    final PageBreakPositionList allPreviousBreak = pageBox.getAllVerticalBreaks();
    breakUtility.copyFrom(allPreviousBreak);

    final long pageOffset = pageBox.getPageOffset();
    final long headerHeight = pageBox.getHeaderArea().getHeight();
    // Then add all new breaks (but take the header and footer-size into account) ..
View Full Code Here

  public boolean isCurrentPageEmpty()
  {
    // todo: Invent a test that checks whether the page is currently empty.
    final LogicalPageBox logicalPageBox = getPageBox();
    final PageBreakPositionList breakPositionList = logicalPageBox.getAllVerticalBreaks();
    final long masterBreak = breakPositionList.getLastMasterBreak();
    final boolean nextPageContainsContent = (logicalPageBox.getHeight() > masterBreak);
    return nextPageContainsContent == false;
  }
View Full Code Here

TOP

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

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.