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

Examples of org.pentaho.reporting.engine.classic.core.util.PageSize


    final SequenceDataFactory sdf = new SequenceDataFactory();
    sdf.addSequence("query", sequence);

    // use HTML export for test
    final MasterReport report = new MasterReport();
    report.setPageDefinition(new SimplePageDefinition(new PageSize(800, 300)));
    report.setDataFactory(sdf);
    report.setQuery("query");

    final DesignTimeDataSchemaModel dataSchemaModel = new DesignTimeDataSchemaModel(report);
    final RelationalReportBuilder builder = new RelationalReportBuilder(dataSchemaModel);
View Full Code Here


    ClassicEngineBoot.getInstance().getEditableConfig().setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.layout.process.EnableCountBoxesStep", "false");
    ClassicEngineBoot.getInstance().getEditableConfig().setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.layout.ParanoidChecks", "false");
    MasterReport report = DebugReportRunner.parseGoldenSampleReport("Prd-4606-0003.prpt");
    report.setPageDefinition(new SimplePageDefinition(new PageSize(500, 100)));

    CompoundDataFactory dataFactory = (CompoundDataFactory) report.getDataFactory();
    SequenceDataFactory sequenceDf = (SequenceDataFactory) dataFactory.getReference(0);
    PerformanceTestSequence sequence = (PerformanceTestSequence) sequenceDf.getSequence("Query 1");
    sequence.setParameter("limit", 10);
View Full Code Here

  }

  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


  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

   * @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

   * @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

   * @throws Exception
   */
  public void testKeepTogetherEffectPagebreak2() 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

   * @throws Exception
   */
  public void testKeepTogetherEffectPagebreak3() 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

  }

  public void testKeepTogetherEffectPagebreakLarger() 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


  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-1");
    detailBody.addElement(createBand("ib1"));
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.util.PageSize

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.