Examples of TableRowRenderBox


Examples of org.jfree.layouting.renderer.model.table.TableRowRenderBox

          continue;
        }

        expectedRows -= 1;

        TableRowRenderBox row = (TableRowRenderBox) node;
        final TableRowInfoStructure rowInfoStructure = row.getRowInfoStructure();
        if (rowInfoStructure.isValidationDone())
        {
          // ok, we can take the shortcut ..
          final int cellCount = rowInfoStructure.getCellCount();
          for (int i = 0; i < cellCount; i++)
          {
            final TableCell cellAt = rowInfoStructure.getCellAt(i);
            expectedRows = Math.max (expectedRows, cellAt.getRowSpan() - 1);
          }
        }
        else
        {
          // the slow-lane: Look at the already declared cells ..
          RenderNode nodeCell = row.getFirstChild();
          while (nodeCell != null)
          {
            if (nodeCell instanceof TableCellRenderBox)
            {
              TableCellRenderBox cellBox = (TableCellRenderBox) nodeCell;
View Full Code Here

Examples of org.jfree.layouting.renderer.model.table.TableRowRenderBox

        return false;
      }
    }
    else if (box instanceof TableRowRenderBox)
    {
      TableRowRenderBox row = (TableRowRenderBox) box;
      final TableSectionRenderBox section = (TableSectionRenderBox) row.getParent();
      if (DisplayRole.TABLE_ROW_GROUP.equals(section.getDisplayRole()))
      {
        // we need to have at least one complete row of data (not counting header
        // and footer sections. The first row has no prev-element, so we simply
        // test whether there is one ..
        if (row.getVisiblePrev() == null)
        {
          layoutFailureNodeId = box.getInstanceId();
          layoutFailureResolution = BOX_MUST_BE_CLOSED;
          return false;
        }
View Full Code Here

Examples of org.jfree.layouting.renderer.model.table.TableRowRenderBox

      finishTable(table);
      return;
    }
    else if (box instanceof TableRowRenderBox)
    {
      final TableRowRenderBox row = (TableRowRenderBox) box;
      finishTableRow(row);
      return;
    }

    // do something ..
View Full Code Here

Examples of org.jfree.layouting.renderer.model.table.TableRowRenderBox

      finishTable(table);
      return;
    }
    else if (box instanceof TableRowRenderBox)
    {
      final TableRowRenderBox row = (TableRowRenderBox) box;
      finishTableRow(row);
      return;
    }

    // do something ..
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.table.TableRowRenderBox

        }
        finishTableSectionBox(box);
      }
      else if (nodeType == LayoutNodeTypes.TYPE_BOX_TABLE_ROW)
      {
        final TableRowRenderBox box = (TableRowRenderBox) node;
        if (startTableRowBox(box))
        {
          processBoxChilds(box);
        }
        finishTableRowBox(box);
      }
      else if (nodeType == LayoutNodeTypes.TYPE_BOX_TABLE_CELL)
      {
        final TableCellRenderBox box = (TableCellRenderBox) node;
        if (startTableCellBox(box))
        {
          processBoxChilds(box);
        }
        finishTableCellBox(box);
      }
      else if ((nodeType & LayoutNodeTypes.MASK_BOX_BLOCK) == LayoutNodeTypes.MASK_BOX_BLOCK)
      {
        if (nodeType == LayoutNodeTypes.TYPE_BOX_PARAGRAPH)
        {
          final ParagraphRenderBox box = (ParagraphRenderBox) node;
          if (startBlockBox(box))
          {
            processParagraphChilds(box);
          }
          finishBlockBox(box);
        }
        else if (nodeType == LayoutNodeTypes.TYPE_BOX_LOGICALPAGE)
        {
          final LogicalPageBox box = (LogicalPageBox) node;
          if (startBlockBox(box))
          {
            startProcessing(box.getWatermarkArea());
            startProcessing(box.getHeaderArea());
            processBoxChilds(box);
            startProcessing(box.getRepeatFooterArea());
            startProcessing(box.getFooterArea());
          }
          finishBlockBox(box);
        }
        else
        {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.table.TableRowRenderBox

    }
    if (BandStyleKeys.LAYOUT_TABLE_ROW.equals(layoutType))
    {
      final SimpleStyleSheet styleSheet = bandCache.getStyleSheet(elementStyleSheet);
      final BoxDefinition boxDefinition = boxDefinitionFactory.getBoxDefinition(styleSheet);
      return new TableRowRenderBox(styleSheet, objectID, boxDefinition, elementType, attributes, stateKey);
    }
    if (BandStyleKeys.LAYOUT_TABLE_CELL.equals(layoutType))
    {
      final SimpleStyleSheet styleSheet = bandCache.getStyleSheet(elementStyleSheet);
      final BoxDefinition boxDefinition = boxDefinitionFactory.getBoxDefinition(styleSheet);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.model.table.TableRowRenderBox

      print(b.toString());
    }

    if (box instanceof TableRowRenderBox)
    {
      final TableRowRenderBox pageBox = (TableRowRenderBox) box;
      b = new StringBuilder();
      for (int i = 0; i < level; i++)
      {
        b.append("   ");
      }
      b.append("- Row: ");
      b.append(pageBox.getRowIndex());
      print(b.toString());
    }

    if (box instanceof TableCellRenderBox)
    {
      final TableCellRenderBox pageBox = (TableCellRenderBox) box;
      b = new StringBuilder();
      for (int i = 0; i < level; i++)
      {
        b.append("   ");
      }
      b.append("- Column-Index=");
      b.append(pageBox.getColumnIndex());
      b.append(", ColSpan=");
      b.append(pageBox.getColSpan());
      b.append(", RowSpan=");
      b.append(pageBox.getRowSpan());
      print(b.toString());
    }

    if (box instanceof BreakMarkerRenderBox)
    {
      final BreakMarkerRenderBox pageBox = (BreakMarkerRenderBox) box;
      b = new StringBuilder();
      for (int i = 0; i < level; i++)
      {
        b.append("   ");
      }
      b.append("- InstanceID=");
      b.append(pageBox.getInstanceId());
      b.append(", validity-range=");
      b.append(pageBox.getValidityRange());
      print(b.toString());
    }


    if (box.isOpen())
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.