Examples of Band


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

    if (FunctionUtilities.isLayoutLevel(event) == false)
    {
      // dont do anything if there is no printing done ...
      return;
    }
    final Band b = event.getReport().getReportFooter();
    processRootBand(b);

    processFooterBands(event.getState());
  }
View Full Code Here

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

    if (FunctionUtilities.isLayoutLevel(event) == false)
    {
      // dont do anything if there is no printing done ...
      return;
    }
    final Band b = event.getReport().getReportHeader();
    processRootBand(b);

    processFooterBands(event.getState());
  }
View Full Code Here

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

    processFooterBands(event.getState());
  }

  protected void processGroup(final Group group)
  {
    final Band b = group.getHeader();
    processRootBand(b);
  }
View Full Code Here

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

    if (FunctionUtilities.isLayoutLevel(event) == false)
    {
      // dont do anything if there is no printing done ...
      return;
    }
    final Band b = FunctionUtilities.getCurrentGroup(event).getFooter();
    processRootBand(b);

    processFooterBands(event.getState());
  }
View Full Code Here

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

    if (FunctionUtilities.isLayoutLevel(event) == false)
    {
      // dont do anything if there is no printing done ...
      return;
    }
    final Band b = event.getReport().getPageFooter();
    processRootBand(b);
  }
View Full Code Here

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

    if (FunctionUtilities.isLayoutLevel(event) == false)
    {
      // dont do anything if there is no printing done ...
      return;
    }
    final Band b = event.getReport().getPageHeader();
    processRootBand(b);

    final Band w = event.getReport().getWatermark();
    processRootBand(w);

    processFooterBands(event.getState());
  }
View Full Code Here

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

   * @return the created band
   */
  private Band createBand(final String name, final Color color,
                          final int x, final int y, final int width, final int height)
  {
    final Band band = new Band();
    band.setName("Band-" + name);
    band.getStyle().setStyleProperty(ElementStyleKeys.MIN_WIDTH, new Float(width));
    band.getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, new Float(height));
    band.getStyle().setStyleProperty(ElementStyleKeys.MAX_WIDTH, new Float(width));
    band.getStyle().setStyleProperty(ElementStyleKeys.MAX_HEIGHT, new Float(height));

    band.getStyle().setStyleProperty(ElementStyleKeys.POS_X, new Float(x));
    band.getStyle().setStyleProperty(ElementStyleKeys.POS_Y, new Float(y));

    // create the marker shape, the shape fills the generated band and paints the colored background
    // all coordinates or dimensions are within the band, and not affected by the bands placement in
    // the outer report bands
    band.getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, color);
    return band;
  }
View Full Code Here

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

   *
   * @return the created report.
   */
  public MasterReport createReport()
  {
    final Band levelA1 = createBand("A1", Color.magenta, 0, 0, 100, 100);
    levelA1.addElement(createBand("A1-B1", Color.blue, 0, 50, 50, 50));
    levelA1.addElement(createBand("A1-B2", Color.yellow, 50, 0, 150, 50));
    // x=55%, y=5%, width=40%, height=100%
    final Band levelA2 = createBand("A2", Color.green, -50, 0, -50, -100);
    // x=5%, y=55%, width=40%, height=40%
    levelA2.addElement(createBand("A2-B1", Color.red, 0, -50, -50, -50));
    // x=55%, y=5%, width=40%, height=40%
    levelA2.addElement(createBand("A2-B2", Color.darkGray, -55, -5, -40, -40));

    final ReportHeader header = new ReportHeader();
    header.setName("Report-Header");
    header.getStyle().setStyleProperty(ElementStyleKeys.MIN_WIDTH, new Float(-100));
    header.getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, new Float(100));
View Full Code Here

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

    super(s);
  }

  public void testBandCreate()
  {
    final Band b = new Band();
    assertNotNull(b.getDataSource());
    assertNotNull(b.getStyle());
    assertNotNull(b.getName());
    assertTrue(b.isVisible());
    assertNull(b.getParent());
    assertNotNull(b.getElementArray());
    assertTrue(b.getElementCount() == 0);
//    assertNotNull(b.getElements());
  }
View Full Code Here

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

//    assertNotNull(b.getElements());
  }

  public void testBandMethods()
  {
    final Band b = new Band();
    assertTrue(b.isVisible());
    b.setVisible(false);
    assertTrue(b.isVisible() == false);
    b.setVisible(true);
    assertTrue(b.isVisible());

    try
    {
      b.setDataSource(null);
      fail();
    }
    catch (NullPointerException npe)
    {
      // expected, ignored
    }

    b.toString();
  }
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.