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

Examples of org.pentaho.reporting.engine.classic.core.Band.addElement()


        wrapInCanvas(TableTestUtil.createDataItem("Text2", -100, -100)));

    final Band tableRow = new Band();
    tableRow.setLayout(BandStyleKeys.LAYOUT_TABLE_ROW);
    tableRow.addElement(tableCell1);
    tableRow.addElement(tableCell2);

    final Band tableCell3 = TableTestUtil.createCell(1, 1, 100, 10,
        wrapInCanvas(TableTestUtil.createDataItem("Text3", -100, -100)));
    final Band tableRow2 = new Band();
    tableRow2.setLayout(BandStyleKeys.LAYOUT_TABLE_ROW);
View Full Code Here


    final Band tableCell3 = TableTestUtil.createCell(1, 1, 100, 10,
        wrapInCanvas(TableTestUtil.createDataItem("Text3", -100, -100)));
    final Band tableRow2 = new Band();
    tableRow2.setLayout(BandStyleKeys.LAYOUT_TABLE_ROW);
    tableRow2.addElement(tableCell3);

    final Band tableSection = new Band();
    tableSection.setLayout(BandStyleKeys.LAYOUT_TABLE_BODY);
    tableSection.addElement(tableRow);
    tableSection.addElement(tableRow2);
View Full Code Here

    tableRow2.setLayout(BandStyleKeys.LAYOUT_TABLE_ROW);
    tableRow2.addElement(tableCell3);

    final Band tableSection = new Band();
    tableSection.setLayout(BandStyleKeys.LAYOUT_TABLE_BODY);
    tableSection.addElement(tableRow);
    tableSection.addElement(tableRow2);

    final MasterReport report = new MasterReport();
    report.getStyle().setStyleProperty(TextStyleKeys.WORDBREAK, true);
    report.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "true");
View Full Code Here

    tableRow2.addElement(tableCell3);

    final Band tableSection = new Band();
    tableSection.setLayout(BandStyleKeys.LAYOUT_TABLE_BODY);
    tableSection.addElement(tableRow);
    tableSection.addElement(tableRow2);

    final MasterReport report = new MasterReport();
    report.getStyle().setStyleProperty(TextStyleKeys.WORDBREAK, true);
    report.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "true");
    report.getReportHeader().setLayout(BandStyleKeys.LAYOUT_TABLE);
View Full Code Here

    tableRow.getStyle().setStyleProperty(BandStyleKeys.LAYOUT, BandStyleKeys.LAYOUT_TABLE_ROW);
    tableRow.getStyle().setStyleProperty(ElementStyleKeys.MIN_WIDTH, 100f);
    tableRow.getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, 200f);
    for (int i = 0; i < boxes.length; i++)
    {
      tableRow.addElement(boxes[i]);
    }
    return tableRow;
  }

  public static Band createAutoBox(final Element... boxes)
View Full Code Here

  {
    final Band tableRow = new Band();
    tableRow.getStyle().setStyleProperty(BandStyleKeys.LAYOUT, BandStyleKeys.LAYOUT_AUTO);
    for (int i = 0; i < boxes.length; i++)
    {
      tableRow.addElement(boxes[i]);
    }
    return tableRow;
  }

  public static Band createCell(final Element dataItem)
View Full Code Here

    tableCell.getStyle().setStyleProperty(BandStyleKeys.LAYOUT, BandStyleKeys.LAYOUT_TABLE_CELL);
    tableCell.getStyle().setStyleProperty(ElementStyleKeys.MIN_WIDTH, 150f);
    tableCell.getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, 200f);
    tableCell.setAttribute(AttributeNames.Table.NAMESPACE, AttributeNames.Table.ROWSPAN, rowSpan);
    tableCell.setAttribute(AttributeNames.Table.NAMESPACE, AttributeNames.Table.COLSPAN, colSpan);
    tableCell.addElement(dataItem);
    return tableCell;
  }

  public static Band createCell(final int rowNumber, final int colNumber,
                                final float cellWidth, final float cellHeight,
View Full Code Here

    cell.setName("c-" + rowNumber + "-" + colNumber);

    for (int i = 0; i < elements.length; i++)
    {
      final Element element = elements[i];
      cell.addElement(element);
    }
    return cell;
  }

  public static Element createDataItem(final String text)
View Full Code Here

          cell.setName("hr-" + r + "-" + cellNumber);
          final Element dataItem = producer.createDataItem("Head-" + r + "-" + cellNumber, r, cellNumber);
          if (dataItem != null)
          {
            cell.addElement(dataItem);
          }
          row.addElement(cell);
        }
        tableHeader.addElement(row);
      }
View Full Code Here

        cell.setName("dr-" + r + "-" + cellNumber);

        Element dataItem = producer.createDataItem("Data-" + r + "-" + cellNumber, r + headerRows, cellNumber);
        if (dataItem != null)
        {
          cell.addElement(dataItem);
        }
        row.addElement(cell);
      }
      tableBody.addElement(row);
    }
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.