Package org.pentaho.reporting.engine.classic.core.modules.output.fast.template

Examples of org.pentaho.reporting.engine.classic.core.modules.output.fast.template.CellLayoutInfo


          {
            background = cellBackgroundProducer.getBackgroundAt(pageBox, sheetLayout, col, row, true, sectionType);
          }
          if (background != null)
          {
            backgroundCells.add(new CellLayoutInfo(col, row, background));
          }
          continue;
        }

        if (content.isCommited() == false)
        {
          throw new InvalidReportStateException("Uncommited content encountered");
        }

        final long contentOffset = contentProducer.getContentOffset(row, col);
        final TableRectangle rect = sheetLayout.getTableBounds
            (content.getX(), content.getY() + contentOffset,
                content.getWidth(), content.getHeight(), null);
        if (rect.isOrigin(col, row) == false)
        {
          // A spanned cell ..
          continue;
        }

        final CellBackground bg = cellBackgroundProducer.getBackgroundForBox(pageBox, sheetLayout,
            rect.getX1(), rect.getY1(), rect.getColumnSpan(), rect.getRowSpan(), false, sectionType, content);
        layout.put(content.getInstanceId(), new CellLayoutInfo(rect, bg));
        content.setFinishedTable(true);
      }
    }
  }
View Full Code Here


    inspectElement(reportDefinition);
  }

  protected void inspectElement(final ReportElement element)
  {
    CellLayoutInfo tableRectangle = layout.get(element.getObjectID());
    if (tableRectangle != null)
    {
      try
      {
        this.excelPrinter.print(tableRectangle, element, getRuntime());
View Full Code Here

          {
            background = cellBackgroundProducer.getBackgroundAt(pageBox, sheetLayout, col, row, true, sectionType);
          }
          if (background != null)
          {
            gridLayout.addBackground(new CellLayoutInfo(col, row, background));
          }
          else
          {
            gridLayout.addBackground(new CellLayoutInfo(col, row, null));
          }
          continue;
        }

        if (content.isCommited() == false)
        {
          throw new InvalidReportStateException("Uncommited content encountered");
        }

        final long contentOffset = contentProducer.getContentOffset(row, col);
        final TableRectangle rect = sheetLayout.getTableBounds
            (content.getX(), content.getY() + contentOffset,
                content.getWidth(), content.getHeight(), null);
        if (rect.isOrigin(col, row) == false)
        {
          // A spanned cell ..
          continue;
        }

        final CellBackground bg = cellBackgroundProducer.getBackgroundForBox(pageBox, sheetLayout,
            rect.getX1(), rect.getY1(), rect.getColumnSpan(), rect.getRowSpan(), false, sectionType, content);

        recordInlineImageDimensions(content);

        gridLayout.addContent(content.getInstanceId(), new CellLayoutInfo(rect, bg));
        content.setFinishedTable(true);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.output.fast.template.CellLayoutInfo

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.