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

Examples of org.pentaho.reporting.engine.classic.core.states.datarow.GlobalMasterRow


      throw new IllegalStateException("Expected Size of 4 but got " + specification.size());
    }

    // second run. Now with padding ..
    final ProcessingContext prc = new DefaultProcessingContext();
    final GlobalMasterRow gmr = GlobalMasterRow.createReportRow
        (prc, new DefaultDataSchemaDefinition(), new ParameterDataRow(), null, false);
    final TableModel data = createTableModel();
    MasterDataRow wdata = gmr.deriveWithQueryData(new ReportDataRow(data));
    int advanceCount = 0;
    wdata = wdata.startCrosstabMode(specification);
    logger.debug("Region:  " + wdata.getGlobalView().get("Region"));
    logger.debug("Product: " + wdata.getGlobalView().get("Product"));
    logger.debug("Year:    " + wdata.getGlobalView().get("Time"));
View Full Code Here


  }

  private static CrosstabSpecification buildCS()
  {
    final ProcessingContext prc = new DefaultProcessingContext();
    final GlobalMasterRow gmr = GlobalMasterRow.createReportRow
        (prc, new DefaultDataSchemaDefinition(), new ParameterDataRow(), null, false);
    final TableModel data = createTableModel();
    MasterDataRow wdata = gmr.deriveWithQueryData(new ReportDataRow(data));
    final CrosstabSpecification cs = new SortedMergeCrosstabSpecification
        (createDummyKey(), new String[]{"Product", "Time"});
    int advanceCount = 0;
    System.out.println(wdata.getReportDataRow().getCursor());
    cs.startRow();
View Full Code Here

                                    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;
    wdata = wdata.startCrosstabMode(specification);
    logger.debug("Rows:  " + wdata.getGlobalView().get("Rows"));
    logger.debug("Cols:  " + wdata.getGlobalView().get("Cols"));
    logger.debug("Data: " + wdata.getGlobalView().get("Data"));
View Full Code Here

                                    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;
    wdata = wdata.startCrosstabMode(specification);
    logger.debug("Region:  " + wdata.getGlobalView().get("Region"));
    logger.debug("Product: " + wdata.getGlobalView().get("Product"));
    logger.debug("Year:    " + wdata.getGlobalView().get("Time"));
View Full Code Here

  }

  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
        (new ReportStateKey(), new String[]{"Product", "Time"}, new String[] {"Region"});

    int advanceCount = 0;
    logger.debug("Building Crosstab: Cursor: " + String.valueOf(masterDataRow.getReportDataRow().getCursor()));
View Full Code Here

                                    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;
    wdata = wdata.startCrosstabMode(specification);
    logger.debug("Rows:  " + wdata.getGlobalView().get("Rows"));
    logger.debug("Cols:  " + wdata.getGlobalView().get("Cols"));
    logger.debug("Data: " + wdata.getGlobalView().get("Data"));
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.states.datarow.GlobalMasterRow

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.