Examples of SimplePageDefinition


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

  }

  public void testLayout() throws ResourceException, ContentProcessingException, ReportProcessingException
  {
    final MasterReport basereport = new MasterReport();
    basereport.setPageDefinition(new SimplePageDefinition(new PageFormat()));

    final URL target = WeirdLayoutTest.class.getResource("weird-layouting.xml");
    final ResourceManager rm = new ResourceManager();
    rm.registerDefaults();
    final Resource directly = rm.createDirectly(target, MasterReport.class);
View Full Code Here

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

  }

  public void testNestedRows() throws Exception
  {
    final MasterReport basereport = new MasterReport();
    basereport.setPageDefinition(new SimplePageDefinition(new PageFormat()));

    final URL target = LayoutTest.class.getResource("watermark-size.xml");
    final ResourceManager rm = new ResourceManager();
    rm.registerDefaults();
    final Resource directly = rm.createDirectly(target, MasterReport.class);
View Full Code Here

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

  }

  public void testNestedRows() throws Exception
  {
    final MasterReport basereport = new MasterReport();
    basereport.setPageDefinition(new SimplePageDefinition(new PageFormat()));
    basereport.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "false");

    final URL target = LayoutTest.class.getResource("layout-matrix.xml");
    final ResourceManager rm = new ResourceManager();
    rm.registerDefaults();
View Full Code Here

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

  }

  public void testNestedRowsComplex() throws Exception
  {
    final MasterReport basereport = new MasterReport();
    basereport.setPageDefinition(new SimplePageDefinition(new PageFormat()));
    basereport.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "true");

    final URL target = LayoutTest.class.getResource("layout-matrix.xml");
    final ResourceManager rm = new ResourceManager();
    rm.registerDefaults();
View Full Code Here

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

  }

  public void testLayoutMatrix() throws Exception
  {
    final MasterReport basereport = new MasterReport();
    basereport.setPageDefinition(new SimplePageDefinition(new PageFormat()));
    basereport.setCompatibilityLevel(null);
    basereport.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "false");

    final URL target = LayoutTest.class.getResource("layout-matrix.xml");
    final ResourceManager rm = new ResourceManager();
View Full Code Here

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

  }

  public void testLayoutMatrixLegacy() throws Exception
  {
    final MasterReport basereport = new MasterReport();
    basereport.setPageDefinition(new SimplePageDefinition(new PageFormat()));
    basereport.setCompatibilityLevel(ClassicEngineBoot.computeVersionId(3, 8, 0));
    basereport.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "false");

    final URL target = LayoutTest.class.getResource("layout-matrix.xml");
    final ResourceManager rm = new ResourceManager();
View Full Code Here

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

  }

  public void testStandardLayout() throws ReportProcessingException, ContentProcessingException
  {
    final MasterReport report = new MasterReport();
    report.setPageDefinition(new SimplePageDefinition(new PageSize(500, 100)));

    final Band detailBody = new Band();
    detailBody.setLayout(BandStyleKeys.LAYOUT_BLOCK);
    detailBody.setName("detail-body");
    detailBody.addElement(createBand("ib1"));
View Full Code Here

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


  public void testStandardLayoutPageBreak() throws Exception
  {
    final MasterReport report = new MasterReport();
    report.setPageDefinition(new SimplePageDefinition(new PageSize(500, 100)));

    final Band detailBody = new Band();
    detailBody.setLayout(BandStyleKeys.LAYOUT_BLOCK);
    detailBody.setName("detail-body");
    detailBody.addElement(createBand("ib1"));
View Full Code Here

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

   * @throws ContentProcessingException
   */
  public void testKeepTogetherEffect() throws ReportProcessingException, ContentProcessingException
  {
    final MasterReport report = new MasterReport();
    report.setPageDefinition(new SimplePageDefinition(new PageSize(500, 100)));

    final Band detailBody = new Band();
    detailBody.setLayout(BandStyleKeys.LAYOUT_BLOCK);
    detailBody.setName("detail-body");
    detailBody.getStyle().setStyleProperty(ElementStyleKeys.AVOID_PAGEBREAK_INSIDE, true);
View Full Code Here

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

   * @throws Exception
   */
  public void testKeepTogetherEffectPagebreak() throws Exception
  {
    final MasterReport report = new MasterReport();
    report.setPageDefinition(new SimplePageDefinition(new PageSize(500, 100)));

    final Band detailBody = new Band();
    detailBody.setLayout(BandStyleKeys.LAYOUT_BLOCK);
    detailBody.setName("detail-body");
    detailBody.getStyle().setStyleProperty(ElementStyleKeys.AVOID_PAGEBREAK_INSIDE, true);
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.