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

Examples of org.pentaho.reporting.engine.classic.core.testsupport.graphics.TestGraphics2D


    final GlobalAuthenticationStore globalAuthenticationStore = new GlobalAuthenticationStore();
    final ReportRenderContext reportContext =
        new ReportRenderContext(report, report, null, globalAuthenticationStore);
    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();
View Full Code Here


        new ReportRenderContext(report, subReport, masterContext, globalAuthenticationStore);
    final TestRootBandRenderer r = new TestRootBandRenderer(subReport.getReportHeader(), subContext);
    final Rectangle2D bounds = r.getBounds();
    assertEquals(new Rectangle2D.Double(0, 21, 468, 108), bounds);

    final TestGraphics2D graphics2D = new ValidateTextGraphics(468, 108);
    assertTrue(graphics2D.hitClip(10, 10, 1, 1));
    r.draw(graphics2D);
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.testsupport.graphics.TestGraphics2D

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.