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

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


    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

    {
      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;
  }

  public void testAndShowCustomReport() throws ReportDataFactoryException
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

    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

    final Band landScape = new Band();
    landScape.setName("landscape");
    landScape.addElement(noLate);

    final ItemBand band = new ItemBand();
    band.addElement(landScape);

    assertEquals(noLate, FunctionUtilities.findElement(band, "noLate"));
  }
}
View Full Code Here

    items.getStyle().setStyleProperty(TextStyleKeys.FONT, "Monospaced");
    items.getStyle().setStyleProperty(TextStyleKeys.FONTSIZE, new Integer(10));
    items.getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.decode("#dfdfdf"));


    items.addElement(HorizontalLineElementFactory.createHorizontalLine
        (0, Color.decode("#DFDFDF"), new BasicStroke(0.1f)));
    items.addElement(HorizontalLineElementFactory.createHorizontalLine
        (10, Color.decode("#DFDFDF"), new BasicStroke(0.1f)));

    TextFieldElementFactory factory = new TextFieldElementFactory();
View Full Code Here

    items.getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.decode("#dfdfdf"));


    items.addElement(HorizontalLineElementFactory.createHorizontalLine
        (0, Color.decode("#DFDFDF"), new BasicStroke(0.1f)));
    items.addElement(HorizontalLineElementFactory.createHorizontalLine
        (10, Color.decode("#DFDFDF"), new BasicStroke(0.1f)));

    TextFieldElementFactory factory = new TextFieldElementFactory();
    factory.setName("Country Element");
    factory.setAbsolutePosition(new Point2D.Float(0, 0));
View Full Code Here

    factory.setMinimumSize(new FloatDimension(176, 10));
    factory.setHorizontalAlignment(ElementAlignment.LEFT);
    factory.setVerticalAlignment(ElementAlignment.MIDDLE);
    factory.setNullString("<null>");
    factory.setFieldname("Country");
    items.addElement(factory.createElement());

    factory = new TextFieldElementFactory();
    factory.setName("Code Element");
    factory.setAbsolutePosition(new Point2D.Float(180, 0));
    factory.setMinimumSize(new FloatDimension(76, 10));
View Full Code Here

    factory.setMinimumSize(new FloatDimension(76, 10));
    factory.setHorizontalAlignment(ElementAlignment.LEFT);
    factory.setVerticalAlignment(ElementAlignment.MIDDLE);
    factory.setNullString("<null>");
    factory.setFieldname("ISO Code");
    items.addElement(factory.createElement());

    final NumberFieldElementFactory nfactory = new NumberFieldElementFactory();
    nfactory.setName("Population Element");
    nfactory.setAbsolutePosition(new Point2D.Float(260, 0));
    nfactory.setMinimumSize(new FloatDimension(76, 10));
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.