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

Examples of org.pentaho.reporting.engine.classic.core.ItemBand


  {
    super.doneParsing();
    final AbstractReportDefinition report = (AbstractReportDefinition)
        getRootHandler().getHelperObject(ReportParserUtil.HELPER_OBJ_REPORT_NAME);

    final ItemBand itemBand = report.getItemBand();
    final NoDataBand noDataBand = report.getNoDataBand();
    final DetailsFooter detailsFooter = report.getDetailsFooter();
    final DetailsHeader detailsHeader = report.getDetailsHeader();

    if (groupReadHandler != null)
View Full Code Here


          noDataBandHandler = new BandTopLevelElementReadHandler(new NoDataBand(), bandtype);
          return noDataBandHandler;
        }
        if ("ITEM_BAND".equals(bandtype))
        {
          itemBandHandler = new BandTopLevelElementReadHandler(new ItemBand(), bandtype);
          return itemBandHandler;
        }
        if ("REPORT_FOOTER".equals(bandtype))
        {
          reportFooterHandler = new BandTopLevelElementReadHandler(new ReportFooter(), bandtype);
View Full Code Here

    factory.setBarHeight(new Integer(30));
    factory.setFontSize(new Integer(10));
    factory.setFontName("SansSerif");


    final ItemBand itemBand = report.getItemBand();
    itemBand.addElement(factory.createElement());

    report.setDataFactory(new TableDataFactory("default", data));
    return report;
  }
View Full Code Here

          noDataBandHandler = new BandTopLevelElementReadHandler(new NoDataBand(), bandtype);
          return noDataBandHandler;
        }
        if ("ITEM_BAND".equals(bandtype))
        {
          itemBandHandler = new BandTopLevelElementReadHandler(new ItemBand(), bandtype);
          return itemBandHandler;
        }
        if ("REPORT_FOOTER".equals(bandtype))
        {
          reportFooterHandler = new BandTopLevelElementReadHandler(new ReportFooter(), bandtype);
View Full Code Here

  }

  public void testAWTPrinting () throws Exception
  {
    final MasterReport report = new MasterReport();
    final ItemBand itemBand = report.getItemBand();
    final ContentFieldElementFactory cfef = new ContentFieldElementFactory();
    cfef.setFieldname("field");
    cfef.setMinimumWidth(new Float(500));
    cfef.setMinimumHeight(new Float(200));
    itemBand.addElement(cfef.createElement());

    final DefaultTableModel tableModel = new DefaultTableModel(new String[]{"field"}, 2000);
    for (int row = 0; row < tableModel.getRowCount(); row++)
    {
      tableModel.setValueAt(new JLabel("Value row = " + row), row, 0);
View Full Code Here

    report.setReportHeader(new ReportHeader());
    report.setReportFooter(new ReportFooter());
    report.setPageHeader(initPageHeader("SubReport " + columnsPerPage));
    report.setPageFooter(new PageFooter());

    ItemBand items = report.getItemBand();
    items.getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.lightGray);
    items.setName("Items");

    ContentFieldElementFactory tfFactory = new ContentFieldElementFactory();
    items.getStyle().setFontDefinitionProperty(HEADER_FONT);
    float[] columnPos =
        new float[]{0.0f, 60.0f, 120.0f, 184, 248, 313, 377, 442};
    float[] columnWidth = new float[]{60, 60, 64, 64, 64, 64, 64, 64};

    int cellHeight = 12;
    for (int i = 0; i < tm.getColumnCount(); i++)
    {
      tfFactory.setMinimumSize(new FloatDimension(columnWidth[i] - 4,
          cellHeight));
      tfFactory.setAbsolutePosition(new Point2D.Float(columnPos[i] + 2, 0));
      tfFactory.setFieldname(tm.getColumnName(i));
      items.addElement(tfFactory.createElement());
    }
    return report;
  }
View Full Code Here

    {
      return new GroupFooter();
    }
    if ("itemband".equals(elementType))
    {
      return new ItemBand();
    }
    if ("no-data-band".equals(elementType))
    {
      return new NoDataBand();
    }
View Full Code Here

    itemsSparkFactory.setAbsolutePosition(new Point2D.Float(0, 0));
    itemsSparkFactory.setMinimumSize(new Dimension(100, 10));
    itemsSparkFactory.setHighColor(Color.green);
    itemsSparkFactory.setLastColor(Color.blue);
    //itemsSparkFactory.setBackgroundColor(Color.yellow);
    final ItemBand itemBand = report.getItemBand();
    itemBand.addElement(itemsSparkFactory.createElement());

    itemBand.addElement(HorizontalLineElementFactory.createHorizontalLine
        (15, null, new BasicStroke(5)));

    report.setDataFactory(new TableDataFactory("default", data));
    return report;
  }
View Full Code Here

    if (element == null)
    {
      return;
    }

    final ItemBand itemBand = event.getReport().getItemBand();
    final Element[] e = FunctionUtilities.findAllElements(itemBand, getElement());
    if (e.length > 0)
    {
      for (int i = 0; i < e.length; i++)
      {
View Full Code Here

  {
    final PreparedCrosstabLayout preparedCrosstabLayout = outputFunction.getCurrentCrosstabLayout();

    final Renderer renderer = outputFunction.getRenderer();
    final LayoutBuilder builder = renderer.createBufferedLayoutBuilder();
    final ItemBand g = event.getReport().getItemBand();
    final int columnSlotNumber = event.getState().getCurrentDataItem() - beginOfGroup;

    final RenderBox dataBox = preparedCrosstabLayout.getCellDataBox();
    final RenderBox dataSlot = CrosstabLayoutUtil.getSlot(dataBox, columnSlotNumber);
    dataSlot.clear();
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.ItemBand

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.