Package org.pentaho.reporting.engine.classic.extensions.modules.sparklines.elementfactory

Examples of org.pentaho.reporting.engine.classic.extensions.modules.sparklines.elementfactory.BarSparklineElementFactory.createElement()


    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


    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));
View Full Code Here

    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

    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));
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.