Examples of CellBackground


Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.base.CellBackground

          }

          if (gridCell.getInstanceId() == null)
          {
            // background cell
            CellBackground background = gridCell.getLayoutInfo().getBackground();
            writeBackgroundCell(background, xmlWriter);
            continue;
          }

View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.base.CellBackground

    StyleBuilder styleBuilder = getStyleBuilder();
    DefaultStyleBuilderFactory styleBuilderFactory = getStyleBuilderFactory();
    FastHtmlStyleCache.CellStyle cellStyleCache = styleCache.getCellAttributes(row, col);
    if (cellStyleCache == null)
    {
      final CellBackground realBackground = gridCell.getLayoutInfo().getBackground();
      final int colSpan = gridCell.getLayoutInfo().getColumnSpan();
      final int rowSpan = gridCell.getLayoutInfo().getRowSpan();

      if (content == null)
      {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.base.CellBackground

    TableRectangle rect = new TableRectangle();
    rect.setRect(tableRectangle.getX1(), tableRectangle.getY1() + rowOffset,
        tableRectangle.getX2(), tableRectangle.getY2() + rowOffset);

    Cell cellAt = getCellAt(rect.getX1(), rect.getY1());
    CellBackground bg = tableRectangle.getBackground();
    CellStyle cellStyle = getCellStyleProducer().createCellStyle(element.getObjectID(), element.getComputedStyle(), bg);
    if (cellStyle != null)
    {
      cellAt.setCellStyle(cellStyle);
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.base.CellBackground

      {
        // spanned cell
        continue;
      }

      CellBackground backgroundAt = gridCell.getLayoutInfo().getBackground();
      if (backgroundAt == null)
      {
        bg.fail();
        return bg;
      }

      boolean fail = false;
      if (col == 0)
      {
        color = backgroundAt.getBackgroundColor();
        topEdge = backgroundAt.getTop();
        bottomEdge = backgroundAt.getBottom();
      }
      else
      {
        if (ObjectUtilities.equal(color, backgroundAt.getBackgroundColor()) == false)
        {
          fail = true;
        }
        if (ObjectUtilities.equal(topEdge, backgroundAt.getTop()) == false)
        {
          fail = true;
        }
        if (ObjectUtilities.equal(bottomEdge, backgroundAt.getBottom()) == false)
        {
          fail = true;
        }
      }

      if (BorderCorner.EMPTY.equals(backgroundAt.getBottomLeft()) == false)
      {
        fail = true;
      }
      if (BorderCorner.EMPTY.equals(backgroundAt.getBottomRight()) == false)
      {
        fail = true;
      }
      if (BorderCorner.EMPTY.equals(backgroundAt.getTopLeft()) == false)
      {
        fail = true;
      }
      if (BorderCorner.EMPTY.equals(backgroundAt.getTopRight()) == false)
      {
        fail = true;
      }
      if (fail)
      {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.base.CellBackground

        final CellMarker.SectionType sectionType = contentProducer.getSectionType(row, col);
        final RenderBox content = contentProducer.getContent(row, col);
        if (content == null)
        {
          final RenderBox backgroundBox = contentProducer.getBackground(row, col);
          final CellBackground background;
          if (backgroundBox != null)
          {
            background = cellBackgroundProducer.getBackgroundForBox
                (pageBox, sheetLayout, col, row, 1, 1, true, sectionType, backgroundBox);
          }
          else
          {
            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));
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.