Examples of addElement()


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

    {
      final CrosstabCellBody body = (CrosstabCellBody) rawLeadSelection;
      if (insert instanceof CrosstabCell)
      {
        final CrosstabCell crosstabCell = (CrosstabCell) insert.derive();
        body.addElement(crosstabCell);
        return crosstabCell;
      }
    }

    return null;
View Full Code Here

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

    {
      final CrosstabCellBody body = (CrosstabCellBody) rawLeadSelection;
      if (insert instanceof CrosstabCell)
      {
        final CrosstabCell crosstabCell = (CrosstabCell) insert.derive();
        body.addElement(crosstabCell);
        return crosstabCell;
      }
    }

    return null;
View Full Code Here

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

    factory.setAbsolutePosition(new Point2D.Float(0, 0));
    factory.setMinimumSize(new FloatDimension(100, 12));
    factory.setHorizontalAlignment(ElementAlignment.LEFT);
    factory.setVerticalAlignment(ElementAlignment.MIDDLE);
    factory.setText("Population:");
    footer.addElement(factory.createElement());

    final NumberFieldElementFactory nfactory = new NumberFieldElementFactory();
    nfactory.setName("Continent-Group-Footer Sum");
    nfactory.setAbsolutePosition(new Point2D.Float(260, 0));
    nfactory.setMinimumSize(new FloatDimension(76, 12));
View Full Code Here

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

    factory1.setFontName("SansSerif");
    factory1.setFontSize(new Integer(12));
    factory1.setBold(Boolean.TRUE);
    factory1.setDynamicHeight(Boolean.TRUE);
    factory1.setTrimTextContent(Boolean.TRUE);
    gh.addElement(factory1.createElement());

    factory1.setFieldname("Category Description");
    factory1.setBold(Boolean.FALSE);
    factory1.setAbsolutePosition(new Point2D.Double(X1, 26));
    factory1.setFontName("Serif");
View Full Code Here

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

    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.PageFooter.addElement()

    final PageFooter pageFooter = report.getPageFooter();
    final ElementStyleSheet style = pageFooter.getStyle();
    style.setStyleProperty(BandStyleKeys.DISPLAY_ON_FIRSTPAGE, Boolean.TRUE);
    style.setStyleProperty(ElementStyleKeys.MIN_HEIGHT, new Float(24));
    style.setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, new Color(0xAFAFAF));
    pageFooter.addElement
        (HorizontalLineElementFactory.createHorizontalLine
            (0, null, new BasicStroke(1)));

    final TextFieldElementFactory elementFactory = new TextFieldElementFactory();
    elementFactory.setAbsolutePosition(new Point2D.Float(0, 4));
View Full Code Here

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

    pHeader.setName("Page-Header");
    pHeader.getStyle().setStyleProperty(ElementStyleSheet.MINIMUMSIZE, new FloatDimension(0, 91));
    pHeader.getStyle().setFontDefinitionProperty(HEADER_FONT);
    pHeader.setDisplayOnFirstPage(true);

    pHeader.addElement(LabelElementFactory.createLabelElement(null, new Rectangle2D.Double(0,0,400, 20),null, null, null, label));
    return pHeader;
  }

  /**
   * Creates a new SubReport.
View Full Code Here

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

    elementFactory.setHighColor(Color.red);
    elementFactory.setLastColor(Color.blue);
    elementFactory.setBackgroundColor(Color.orange);

    final ReportFooter footer = report.getReportFooter();
    footer.addElement(elementFactory.createElement());

    // using a formula
    final BarSparklineElementFactory itemsSparkFactory = new BarSparklineElementFactory();
    itemsSparkFactory.setFormula
        ("={[January]|[February]|[March]|[April]|[May]|[June]|" +
View Full Code Here

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

    header.getStyle().setStyleProperty(ElementStyleKeys.MAX_WIDTH, new Float(Short.MAX_VALUE));
    header.getStyle().setStyleProperty(ElementStyleKeys.MAX_HEIGHT, new Float(100));

    header.getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.ORANGE);

    header.addElement(levelA1);
    header.addElement(levelA2);

    final ContentFieldElementFactory cfef = new ContentFieldElementFactory();
    cfef.setFieldname("CreateComponent");
    cfef.setMinimumSize(new FloatDimension(400, 400));
View Full Code Here

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

    {
      final CrosstabCellBody body = (CrosstabCellBody) rawLeadSelection;
      if (insert instanceof CrosstabCell)
      {
        final CrosstabCell crosstabCell = (CrosstabCell) insert.derive();
        body.addElement(crosstabCell);
        return crosstabCell;
      }
    }

    return null;
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.