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

Examples of org.pentaho.reporting.engine.classic.core.RelationalGroup.addField()


    final String numberFormat = "$#,##0.00";
    jfreeReport.getPageHeader().addElement(messageField("Sample Group Report",//
        true, 14, ElementAlignment.CENTER, new Rectangle(0, 0, width, 16)));
    RelationalGroup group = new RelationalGroup();
    group.setName("group");
    group.addField("type");
    // group.getHeader().setRepeat(true);
    group.getHeader().addElement(label("Column 0", true, ElementAlignment.CENTER, new Rectangle(0, 0, 120, 14)));
    group.getHeader().addElement(label("Column 1", true, ElementAlignment.CENTER, new Rectangle(130, 0, 120, 14)));
    group.getHeader().addElement(label("Column 2", true, ElementAlignment.CENTER, new Rectangle(260, 0, 120, 14)));
    group.getHeader().addElement(label("Column 3", true, ElementAlignment.CENTER, new Rectangle(390, 0, 70, 14)));
View Full Code Here


    report.setDataFactory(new TableDataFactory
        ("default", tableModel));

    final RelationalGroup group = new RelationalGroup();
    group.setName("Run");
    group.addField("run");

    LabelElementFactory labelFactory = new LabelElementFactory();
    labelFactory.setAbsolutePosition(new Point2D.Float(0, 0));
    labelFactory.setMinimumSize(new FloatDimension(160, 12));
    labelFactory.setText("Crew:");
View Full Code Here

     *
     * <items height="95" fontname="Serif" fontstyle="plain" fontsize="10">
     */
    final MasterReport report = new MasterReport();
    final RelationalGroup cmr = new RelationalGroup();
    cmr.addField("CMR");
    cmr.getHeader().addElement(LabelElementFactory.createLabelElement
        (null, new Rectangle2D.Float(0, 0, 150, 20), null,
            ElementAlignment.LEFT, null, "CMR header"));
    cmr.getHeader().getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.ORANGE);

View Full Code Here

    cmr.getHeader().getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.ORANGE);

    report.addGroup(cmr);

    final RelationalGroup oc = new RelationalGroup();
    oc.addField("CMR");
    oc.addField("OC");
    oc.getHeader().getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.YELLOW);
    oc.getHeader().addElement(LabelElementFactory.createLabelElement
        (null, new Rectangle2D.Float(0, 0, 150, 20), null,
            ElementAlignment.LEFT, null, "CMR-OC header"));
View Full Code Here

    report.addGroup(cmr);

    final RelationalGroup oc = new RelationalGroup();
    oc.addField("CMR");
    oc.addField("OC");
    oc.getHeader().getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.YELLOW);
    oc.getHeader().addElement(LabelElementFactory.createLabelElement
        (null, new Rectangle2D.Float(0, 0, 150, 20), null,
            ElementAlignment.LEFT, null, "CMR-OC header"));
    oc.getHeader().getStyle().setBooleanStyleProperty(BandStyleKeys.REPEAT_HEADER, true);
View Full Code Here

    {
      // expected, ignored
    }
    try
    {
      g.addField(null);
      fail();
    }
    catch (NullPointerException npe)
    {
      // expected, ignored
View Full Code Here

  private void setupGroup(final MasterReport report)
  {
    final RelationalGroup group = new RelationalGroup();
    group.setName("Category Group");
    group.addField("Category");

    final GroupHeader gh = group.getHeader();
    gh.setRepeat(true);
    gh.getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, new Float(26));
View Full Code Here

  private void configurePeopleGroup()
  {
    final RelationalGroup group = new RelationalGroup();
    group.setName("person-group");
    group.addField("person.name");

    LabelElementFactory labelFactory = new LabelElementFactory();
    labelFactory.setAbsolutePosition(new Point2D.Float(0, 0));
    labelFactory.setMinimumSize(new FloatDimension(160, 12));
    labelFactory.setText("Name:");
View Full Code Here

  private void configureRecordGroup()
  {
    final RelationalGroup group = new RelationalGroup();
    group.setName("record-group");
    group.addField("person.name");
    group.addField("recordType");

    report.addGroup(group);
  }
View Full Code Here

  private void configureRecordGroup()
  {
    final RelationalGroup group = new RelationalGroup();
    group.setName("record-group");
    group.addField("person.name");
    group.addField("recordType");

    report.addGroup(group);
  }

  private void configurePageHeader()
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.