Examples of ReportData


Examples of com.google.speedtracer.client.visualizations.model.ReportDataCollector.ReportData

    this.report = new HintletReport(hintReportContainer,
        new HintletReportModel(), resources, HintletReport.REPORT_TYPE_SEVERITY);
  }

  private void gatherDataWithinWindow() {
    ReportData data = dataCollector.gatherDataWithinWindow(
        timelineModel.getLeftBound(), timelineModel.getRightBound());

    // Update the report views.
    updateSummaryTitle();
    populatePieChart(data.getAggregatedTypeDurations());
    report.refresh(data.getHints());
  }
View Full Code Here

Examples of com.google.speedtracer.client.visualizations.model.ReportDataCollector.ReportData

    MockDataDispatcher mockDispatcher = new MockDataDispatcher();
    dispatchTestUiEvents(mockDispatcher);

    // Test aggregating with window bounds around the entire data set.
    ReportDataCollector dataCollector = new ReportDataCollector(mockDispatcher);
    ReportData data = dataCollector.gatherDataWithinWindow(0, 22);
    JsIntegerDoubleMap typeDurations = data.getAggregatedTypeDurations();
    // Available time should be 4ms;
    assertEquals(4.0, typeDurations.get(-1), ERROR_MARGIN);
    assertEquals(6.0, typeDurations.get(4), ERROR_MARGIN);
    assertEquals(3.0, typeDurations.get(3), ERROR_MARGIN);
    assertEquals(6.0, typeDurations.get(2), ERROR_MARGIN);
    assertEquals(3.0, typeDurations.get(1), ERROR_MARGIN);

    // Tests that aggregating works even when events fall on both window
    // boundaries.
    data = dataCollector.gatherDataWithinWindow(1.5, 20.7);
    typeDurations = data.getAggregatedTypeDurations();
    // Available time should still be 4ms;
    assertEquals(4.0, typeDurations.get(-1), ERROR_MARGIN);
    assertEquals(4.7, typeDurations.get(4), ERROR_MARGIN);
    assertEquals(2.5, typeDurations.get(3), ERROR_MARGIN);
    assertEquals(5.0, typeDurations.get(2), ERROR_MARGIN);
    assertEquals(3.0, typeDurations.get(1), ERROR_MARGIN);
   
    // Tests gathering data with a window completely to the right of everything.
    data = dataCollector.gatherDataWithinWindow(100, 120);
    typeDurations = data.getAggregatedTypeDurations();
    assertEquals(20.0, typeDurations.get(-1), ERROR_MARGIN);
  }
View Full Code Here

Examples of com.google.speedtracer.client.visualizations.model.ReportDataCollector.ReportData

  public void testCollectingHints() {
    MockDataDispatcher mockDispatcher = new MockDataDispatcher();
    dispatchTestUiEvents(mockDispatcher);

    ReportDataCollector dataCollector = new ReportDataCollector(mockDispatcher);
    ReportData data = dataCollector.gatherDataWithinWindow(0, 22);

    List<HintRecord> hints = data.getHints();

    assertEquals(3, hints.size());
  }
View Full Code Here

Examples of com.google.speedtracer.client.visualizations.model.ReportDataCollector.ReportData

  public void testCollectingNetworkHints() {
    MockDataDispatcher mockDispatcher = new MockDataDispatcher();
    dispatchTestNetworkEvents(mockDispatcher);

    ReportDataCollector dataCollector = new ReportDataCollector(mockDispatcher);
    ReportData data = dataCollector.gatherDataWithinWindow(0, 22);

    List<HintRecord> hints = data.getHints();

    assertEquals(1, hints.size());
  }
View Full Code Here

Examples of org.g4studio.core.web.report.jasper.ReportData

    List subList = catalogList.subList(0, toIndex);
    for (int i = 0; i < subList.size(); i++) {
      Dto dto2 = (BaseDto)subList.get(i);
      dto2.put("zfbl", dto2.getAsBigDecimal("zfbl"));
    }
    ReportData reportData = new ReportData();
    reportData.setParametersDto(dto);
    reportData.setFieldsList(subList);
    reportData.setReportFilePath("/report/jasper/demo/hisCatalogReport.jasper");
    getSessionContainer(request).setReportData("hisCatalogReport", reportData);
    return mapping.findForward(null);
  }
View Full Code Here

Examples of org.g4studio.core.web.report.jasper.ReportData

    dto.put("reportTitle", "北京市第一人民医院收费项目明细报表(演示)");
    //制表人
    dto.put("jbr", getSessionContainer(request).getUserInfo().getUsername());
    //制表时间
    dto.put("jbsj", G4Utils.getCurrentTime());
    ReportData reportData = new ReportData();
    reportData.setParametersDto(dto);
    reportData.setFieldsList(catalogList);
    reportData.setReportFilePath("/report/jasper/demo/hisCatalogReport.jasper");
    getSessionContainer(request).setReportData("hisCatalogReport4App", reportData);
    return mapping.findForward(null);
  }
View Full Code Here

Examples of org.jfree.report.ReportData

      throws DataSourceException, ReportProcessingException, ReportDataFactoryException
  {
    final FlowController fc = getFlowController();
    final GlobalMasterRow masterRow = fc.getMasterRow();
    final ReportDataRow reportDataRow = masterRow.getReportDataRow();
    final ReportData reportData = reportDataRow.getReportData();
    if (!reportData.isReadable())
    {
      reportData.isReadable();
      // If this report has no data, then do not print the detail section. The detail section
      // is the only section that behaves this way, and for now this is only done in the OO-implementation
      final SectionLayoutController derived = (SectionLayoutController) clone();
      derived.setProcessingState(ElementLayoutController.FINISHED);
      derived.setFlowController(fc);
View Full Code Here

Examples of org.jfree.report.ReportData

            throws DataSourceException, ReportProcessingException, ReportDataFactoryException
    {
        final FlowController fc = getFlowController();
        final GlobalMasterRow masterRow = fc.getMasterRow();
        final ReportDataRow reportDataRow = masterRow.getReportDataRow();
        final ReportData reportData = reportDataRow.getReportData();
        if (!reportData.isReadable())
        {
            reportData.isReadable();
            // If this report has no data, then do not print the detail section. The detail section
            // is the only section that behaves this way, and for now this is only done in the OO-implementation
            final SectionLayoutController derived = (SectionLayoutController) clone();
            derived.setProcessingState(ElementLayoutController.FINISHED);
            derived.setFlowController(fc);
View Full Code Here

Examples of org.jfree.report.ReportData

    if (runtime == null)
    {
      return null;
    }

    final ReportData data = runtime.getData();
    if (data == null)
    {
      return null;
    }
    synchronized(data)
    {
      if (data.getCursorPosition() > 0)
      {
        return Boolean.FALSE;
      }
      if (data.isAdvanceable() == false)
      {
        return Boolean.TRUE;
      }
      return Boolean.FALSE;
    }
View Full Code Here

Examples of org.jfree.report.ReportData

   *
   * @return the value of the function.
   */
  public Object computeValue() throws DataSourceException
  {
    ReportData data = getRuntime().getData();
    synchronized(data)
    {
      if (data.isAdvanceable())
      {
        return Boolean.TRUE;
      }
      return Boolean.FALSE;
    }
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.