Examples of ItemBand


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

      final CrosstabCellBody crosstabCellBody = event.getReport().getCrosstabCellBody();
      processRootBand(crosstabCellBody.findElement(null, null));
    }
    else
    {
      final ItemBand itemBand = event.getReport().getItemBand();
      processRootBand(itemBand);
    }
    processFooterBands(event.getState());
  }
View Full Code Here

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

    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

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

    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

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

    super("itemband", false);
  }

  public ReportElement create()
  {
    return new ItemBand();
  }
View Full Code Here

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

    final MasterReport report = new MasterReport();
    report.setQuery("test");
    report.setDataFactory(new TableDataFactory(report.getQuery(), model));
    report.addExpression(itemSumFunction);
    final ItemBand itemBand = report.getItemBand();
    itemBand.addElement(createNumberElement(0, "value", "I1"));
    itemBand.addElement(createNumberElement(100, "fn", "I2"));

    final PageFooter pageFooter = report.getPageFooter();
    pageFooter.addElement(createNumberElement(0, "value", "P1"));
    pageFooter.addElement(createNumberElement(100, "fn", "P2"));
    return report;
View Full Code Here

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

      group.setBody(cellBodyReadHandler.getElement());
    }
    else
    {
      final GroupDataBody element = groupBodyReadHandler.getElement();
      final ItemBand itemBand = element.getItemBand();
      final CrosstabCell cell = new CrosstabCell();
      itemBand.copyInto(cell);
      cell.addElements(Arrays.asList(itemBand.getElementArray()));

      final CrosstabCellBody body = new CrosstabCellBody();
      body.addElement(cell);
      group.setBody(body);
    }
View Full Code Here

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

  {
    MasterReport report = new MasterReport();
    report.setQuery("query");
    report.setDataFactory(new TableDataFactory(report.getQuery(), createData()));

    ItemBand itemBand = report.getItemBand();
    itemBand.setLayout(BandStyleKeys.LAYOUT_ROW);
    itemBand.addElement(createField("f1", 100, 20));
    itemBand.addElement(createField("f2", 100, 20));
    itemBand.addElement(createField("f3", 100, 20));
    return report;
  }
View Full Code Here

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

    {
      trigger = (!trigger);
    }
    count += 1;

    final ItemBand itemBand = event.getReport().getItemBand();
    if (itemBand == null)
    {
      return;
    }

    if (element == null)
    {
      if (trigger)
      {
        itemBand.getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, visibleBackground);
      }
      else
      {
        itemBand.getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, invisibleBackground);
      }
    }
    else
    {
      final Element[] e = FunctionUtilities.findAllElements(itemBand, getElement());
View Full Code Here

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

    applyVisible(event);
  }

  private void applyVisible(final ReportEvent event)
  {
    final ItemBand itemBand = event.getReport().getItemBand();
    if (itemBand == null)
    {
      return;
    }
View Full Code Here

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

  private void handleRowBanding(final AbstractReportDefinition report, final RowBandingFunction rb)
  {
    String element = rb.getElement();
    if (element == null)
    {
      ItemBand itemBand = report.getItemBand();
      if (itemBand != null)
      {
        styleById.add(itemBand.getObjectID(), ElementStyleKeys.BACKGROUND_COLOR);
      }
    }
    else
    {
      styleByElementName.add(element, ElementStyleKeys.BACKGROUND_COLOR);
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.