Examples of PhysicalPageBox


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

    {
      SheetPropertyCollector collector = new SheetPropertyCollector();
      String sheetName = collector.compute(band);
      sheet = openSheet(sheetName);
      configureSheetColumnWidths(sheet, sheetLayout, sheetLayout.getColumnCount());
      configureSheetPaperSize(sheet, new PhysicalPageBox(pageDefinition.getPageFormat(0), 0, 0));
      configureSheetProperties(sheet, collector);
    }

    for (int r = 0; r < cellHeights.length; r += 1)
    {
View Full Code Here

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

                                  final int row,
                                  final int col,
                                  final PhysicalPageKey pageKey)
      throws DocumentException
  {
    final PhysicalPageBox page = pageGrid.getPage(row, col);
    if (page == null)
    {
      return;
    }

    final float width = (float) StrictGeomUtility.toExternalValue(page.getWidth());
    final float height = (float) StrictGeomUtility.toExternalValue(page.getHeight());

    final Rectangle pageSize = new Rectangle(width, height);

    final float marginLeft = (float) StrictGeomUtility.toExternalValue(page.getImageableX());
    final float marginRight = (float) StrictGeomUtility.toExternalValue
        (page.getWidth() - page.getImageableWidth() - page.getImageableX());
    final float marginTop = (float) StrictGeomUtility.toExternalValue(page.getImageableY());
    final float marginBottom = (float) StrictGeomUtility.toExternalValue
        (page.getHeight() - page.getImageableHeight() - page.getImageableY());

    final Document document = getDocument();
    document.setPageSize(pageSize);
    document.setMargins(marginLeft, marginRight, marginTop, marginBottom);
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.