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

Examples of org.pentaho.reporting.engine.classic.core.layout.output.DefaultProcessingContext


  public static int advanceCrosstab(final CrosstabSpecification specification,
                                    final TableModel data,
                                    final String[][] valData)
  {
    // second run. Now with padding ..
    final ProcessingContext prc = new DefaultProcessingContext();
    final GlobalMasterRow gmr = GlobalMasterRow.createReportRow
        (prc, new DefaultDataSchemaDefinition(), new ParameterDataRow());
    gmr.requireStructuralProcessing();
    MasterDataRow wdata = gmr.deriveWithQueryData(data);
    int advanceCount = 1;
View Full Code Here


    return advanceCount;
  }

  private static CrosstabSpecification buildCS(final TableModel data) throws ReportProcessingException
  {
    final ProcessingContext prc = new DefaultProcessingContext();
    final GlobalMasterRow gmr = GlobalMasterRow.createReportRow
        (prc, new DefaultDataSchemaDefinition(), new ParameterDataRow());
    gmr.requireStructuralProcessing();
    MasterDataRow masterDataRow = gmr.deriveWithQueryData(data);
    final CrosstabSpecification crosstabSpecification = new SortedMergeCrosstabSpecification
View Full Code Here

    final LayoutBuilderStrategy builderStrategy = new DefaultLayoutBuilderStrategy();
    final DefaultRenderNodeFactory renderNodeFactory = new DefaultRenderNodeFactory();
    renderNodeFactory.initialize(new DebugOutputProcessorMetaData());

    final RenderBox parentBox = new BlockRenderBox();
    builder.initialize(new DefaultProcessingContext(), parentBox, renderNodeFactory);
    builder.startSection();

    ReportFooter reportFooter = new ReportFooter();
    reportFooter.setComputedStyle(new SimpleStyleSheet(reportFooter.getDefaultStyleSheet()));
    builderStrategy.add(new DebugExpressionRuntime(), builder, reportFooter, new ArrayList<InlineSubreportMarker>());
View Full Code Here

    final DefaultRenderNodeFactory renderNodeFactory = new DefaultRenderNodeFactory();
    renderNodeFactory.initialize(new DebugOutputProcessorMetaData());

    final RenderBox parentBox = new BlockRenderBox();
    builder.initialize(new DefaultProcessingContext(), parentBox, renderNodeFactory);
    builder.startSection();

    builder.addProgressMarkerBox();
    builder.addProgressMarkerBox();
    builder.addProgressMarkerBox();
View Full Code Here

  {
    assertTrue(DataRow.class.isAssignableFrom(DataRowConnector.class));
    final BSHExpression ex = new BSHExpression();
    ex.setExpression("");

    final DefaultProcessingContext processingContext = new DefaultProcessingContext();

    ex.setRuntime(new DebugExpressionRuntime
        (new DefaultTableModel(), 0, processingContext));
    assertNull(ex.getValue());
    // must not crash
View Full Code Here

  public static int advanceCrosstab(final CrosstabSpecification specification,
                                    final TableModel data,
                                    final String[][] valData)
  {
    // second run. Now with padding ..
    final ProcessingContext prc = new DefaultProcessingContext();
    final GlobalMasterRow gmr = GlobalMasterRow.createReportRow
        (prc, new DefaultDataSchemaDefinition(), new ParameterDataRow());
    gmr.requireStructuralProcessing();
    MasterDataRow wdata = gmr.deriveWithQueryData(data);
    int advanceCount = 1;
View Full Code Here

    final PageFormatFactory fmFactory = PageFormatFactory.getInstance();
    final PageFormat pageFormat = new PageFormat();
    pageFormat.setPaper(fmFactory.createPaper((double) sequence.getPageWidth(), 1000));

    final SimplePageDefinition pageDefinition = new SimplePageDefinition(pageFormat);
    final ProcessingContext processingContext = new DefaultProcessingContext();
    final DebugExpressionRuntime runtime = new DebugExpressionRuntime(new DefaultTableModel(), 0, processingContext);

    final TableDebugOutputProcessor outputProcessor = new TableDebugOutputProcessor(metaData);
    final TableDebugRenderer flowRenderer = new TableDebugRenderer(outputProcessor);
    final MasterReport report = new MasterReport();
View Full Code Here

    resolveStyle(report);
    resolveStyle(reportHeader);

    metaData.initialize(wrapForCompatibility(report));

    final ProcessingContext processingContext = new DefaultProcessingContext(report, metaData);
    final DebugExpressionRuntime runtime = new DebugExpressionRuntime
        (new DefaultTableModel(), 0, processingContext);

    final DebugRenderer debugLayoutSystem = new DebugRenderer(metaData);
    debugLayoutSystem.setStateKey(stateKey);
View Full Code Here

    this.dataFactory = parameterContext.getDataFactory();
    this.model = new EmptyTableModel();
    this.dataSchema = new DefaultDataSchema();
    this.dataRow = dataRow;
    this.processingContext = new DefaultProcessingContext
        (new GenericOutputProcessorMetaData(),
            parameterContext.getResourceBundleFactory(),
            parameterContext.getConfiguration(),
            parameterContext.getResourceManager(),
            parameterContext.getContentBase(),
View Full Code Here

  }

  protected void setUp() throws Exception
  {
    final ExpressionRuntime runtime = new GenericExpressionRuntime
        (new StaticDataRow(), new DefaultTableModel(), 0, new DefaultProcessingContext());
    context = new ReportFormulaContext(new TestFormulaContext(TestFormulaContext.testCaseDataset), runtime);
    ClassicEngineBoot.getInstance().start();
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.layout.output.DefaultProcessingContext

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.