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

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


          pageFooterHandler = new BandTopLevelElementReadHandler(new PageFooter(), bandtype);
          return pageFooterHandler;
        }
        if ("WATERMARK".equals(bandtype))
        {
          watermarkHandler = new BandTopLevelElementReadHandler(new Watermark(), bandtype);
          return watermarkHandler;
        }
        if ("NO_DATA_BAND".equals(bandtype))
        {
          noDataBandHandler = new BandTopLevelElementReadHandler(new NoDataBand(), bandtype);
View Full Code Here


          pageFooterHandler = new BandTopLevelElementReadHandler(new PageFooter(), bandtype);
          return pageFooterHandler;
        }
        if ("WATERMARK".equals(bandtype))
        {
          watermarkHandler = new BandTopLevelElementReadHandler(new Watermark(), bandtype);
          return watermarkHandler;
        }
        if ("NO_DATA_BAND".equals(bandtype))
        {
          noDataBandHandler = new BandTopLevelElementReadHandler(new NoDataBand(), bandtype);
View Full Code Here

      for (int i = levels.length - 1; i >= 0; i -= 1)
      {
        final LayouterLevel level = levels[i];
        final ReportDefinition def = level.getReportDefinition();
        final Watermark watermark = def.getWatermark();
        if (watermark.isSticky())
        {
          if (isPageHeaderPrinting(watermark, state))
          {
            print(level.getRuntime(), watermark);
          }
View Full Code Here

      ExpressionWriterUtility.writeGlobalLayoutExpressions(bundle, styleFileState, writer);
      writer.writeCloseTag();
    }

    // write watermark
    final Watermark watermark = report.getWatermark();
    final BundleElementWriteHandler watermarkHandler = BundleElementWriterFactory.createHandler(watermark);
    watermarkHandler.writeElement(bundle, styleFileState, writer, watermark);

    // write page-header
    final PageHeader pageHeader = report.getPageHeader();
View Full Code Here

    super("watermark");
  }

  protected Element createElement(final String elementType)
  {
    return new Watermark();
  }
View Full Code Here

    if (watermarkDefinition.getSource() == null)
    {
      return;
    }

    final Watermark watermark = definition.getWatermark();
    final Band content = AutoGeneratorUtility.findGeneratedContent(watermark);
    if (content == null)
    {
      // there is already some content, and we are not allowed to override it.
      return;
View Full Code Here

        ("default", data));


    try
    {
      Watermark watermark = report.getWatermark();
      watermark.setName("WaterMark");

      final URL resource = getClass().getResource("earth.png");
      final ContentElementFactory img1 = new ContentElementFactory();
      img1.setContent(resource);
      img1.setMinimumSize(new FloatDimension(500, 500));
      img1.setAbsolutePosition(new Point2D.Float(0, 0));
      img1.setScale(Boolean.TRUE);
      watermark.addElement(img1.createElement());
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
View Full Code Here

    final TestRootBandRenderer r = new TestRootBandRenderer(report.getPageFooter(), reportContext);
    r.draw(new TestGraphics2D());

    final Map<InstanceID,Set<InstanceID>> conflicts = reportContext.getSharedRenderer().getConflicts();
    assertEquals(1, conflicts.size());
    final Watermark watermark = report.getWatermark();
    final InstanceID watermarkE1 = watermark.getElement(0).getObjectID();
    final InstanceID watermarkE2 = watermark.getElement(1).getObjectID();
    assertFalse(conflicts.containsKey(watermarkE1));
    assertTrue(conflicts.containsKey(watermarkE2));
  }
View Full Code Here

        ("default", data));


    try
    {
      Watermark watermark = report.getWatermark();
      watermark.setName("WaterMark");

      final URL resource = getClass().getResource("earth.png");
      final ContentElementFactory img1 = new ContentElementFactory();
      img1.setContent(resource);
      img1.setMinimumSize(new FloatDimension(500, 500));
      img1.setAbsolutePosition(new Point2D.Float(0, 0));
      img1.setScale(Boolean.TRUE);
      watermark.addElement(img1.createElement());
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
View Full Code Here

    super("watermark", false);
  }

  public ReportElement create()
  {
    return new Watermark();
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.Watermark

Copyright © 2018 www.massapicom. 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.