当前位置: 首页>>代码示例>>Java>>正文


Java StatisticalBarRenderer.setErrorIndicatorPaint方法代码示例

本文整理汇总了Java中org.jfree.chart.renderer.category.StatisticalBarRenderer.setErrorIndicatorPaint方法的典型用法代码示例。如果您正苦于以下问题:Java StatisticalBarRenderer.setErrorIndicatorPaint方法的具体用法?Java StatisticalBarRenderer.setErrorIndicatorPaint怎么用?Java StatisticalBarRenderer.setErrorIndicatorPaint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jfree.chart.renderer.category.StatisticalBarRenderer的用法示例。


在下文中一共展示了StatisticalBarRenderer.setErrorIndicatorPaint方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createLegend

import org.jfree.chart.renderer.category.StatisticalBarRenderer; //导入方法依赖的package包/类
protected JFreeChart createLegend(CategoryDataset dataset) {
      
//  JFreeChart chart = ChartFactory.createAreaChart(
       JFreeChart chart = ChartFactory.createLineChart(
           chartTitle,             // chart title
           domainLabel,               // domain axis label
           rangeLabel,                  // range axis label
           dataset,                  // data
           PlotOrientation.VERTICAL, // orientation
           true,                     // include legend
           true,                     // tooltips
           false                     // urls
       );

       // NOW DO SOME OPTIONAL CUSTOMISATION OF THE CHART...
       chart.setBackgroundPaint(Color.white);
       CategoryPlot plot = chart.getCategoryPlot();

       StatisticalBarRenderer renderer = new StatisticalBarRenderer();
       renderer.setErrorIndicatorPaint(Color.black);
	renderer.setLegendItemLabelGenerator(new SOCRCategoryCellLabelGenerator(dataset, values_storage, SERIES_COUNT, CATEGORY_COUNT));
       plot.setRenderer(renderer);
       return chart;
       
   }
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:26,代码来源:SuperCategoryChart_Stat_Raw.java

示例2: testEquals

import org.jfree.chart.renderer.category.StatisticalBarRenderer; //导入方法依赖的package包/类
/**
 * Check that the equals() method distinguishes all fields.
 */
public void testEquals() {
    StatisticalBarRenderer r1 = new StatisticalBarRenderer();
    StatisticalBarRenderer r2 = new StatisticalBarRenderer();
    assertEquals(r1, r2);

    r1.setErrorIndicatorPaint(Color.red);
    assertFalse(r1.equals(r2));
    r2.setErrorIndicatorPaint(Color.red);
    assertTrue(r2.equals(r1));

    r1.setErrorIndicatorStroke(new BasicStroke(1.5f));
    assertFalse(r1.equals(r2));
    r2.setErrorIndicatorStroke(new BasicStroke(1.5f));
    assertTrue(r2.equals(r1));
}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:19,代码来源:StatisticalBarRendererTests.java

示例3: testEquals

import org.jfree.chart.renderer.category.StatisticalBarRenderer; //导入方法依赖的package包/类
/**
 * Check that the equals() method distinguishes all fields.
 */
public void testEquals() {
    StatisticalBarRenderer r1 = new StatisticalBarRenderer();
    StatisticalBarRenderer r2 = new StatisticalBarRenderer();
    assertEquals(r1, r2);
    
    r1.setErrorIndicatorPaint(Color.red);
    assertFalse(r1.equals(r2));
    r2.setErrorIndicatorPaint(Color.red);
    assertTrue(r2.equals(r1));
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:14,代码来源:StatisticalBarRendererTests.java

示例4: applyToCategoryItemRenderer

import org.jfree.chart.renderer.category.StatisticalBarRenderer; //导入方法依赖的package包/类
/**
 * Applies the settings of this theme to the specified renderer.
 *
 * @param renderer  the renderer ({@code null} not permitted).
 */
protected void applyToCategoryItemRenderer(CategoryItemRenderer renderer) {
    Args.nullNotPermitted(renderer, "renderer");

    if (renderer instanceof AbstractRenderer) {
        applyToAbstractRenderer((AbstractRenderer) renderer);
    }

    renderer.setDefaultItemLabelFont(this.regularFont);
    renderer.setDefaultItemLabelPaint(this.itemLabelPaint);

    // now we handle some special cases - yes, UGLY code alert!

    // BarRenderer
    if (renderer instanceof BarRenderer) {
        BarRenderer br = (BarRenderer) renderer;
        br.setBarPainter(this.barPainter);
        br.setShadowVisible(this.shadowVisible);
        br.setShadowPaint(this.shadowPaint);
    }


    //  StatisticalBarRenderer
    if (renderer instanceof StatisticalBarRenderer) {
        StatisticalBarRenderer sbr = (StatisticalBarRenderer) renderer;
        sbr.setErrorIndicatorPaint(this.errorIndicatorPaint);
    }

    // MinMaxCategoryRenderer
    if (renderer instanceof MinMaxCategoryRenderer) {
        MinMaxCategoryRenderer mmcr = (MinMaxCategoryRenderer) renderer;
        mmcr.setGroupPaint(this.errorIndicatorPaint);
    }
}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:39,代码来源:StandardChartTheme.java

示例5: createLegend

import org.jfree.chart.renderer.category.StatisticalBarRenderer; //导入方法依赖的package包/类
protected JFreeChart createLegend(CategoryDataset dataset) {
    
//  JFreeChart chart = ChartFactory.createAreaChart(
       JFreeChart chart = ChartFactory.createLineChart(
           chartTitle,             // chart title
           domainLabel,               // domain axis label
           rangeLabel,                  // range axis label
           dataset,                  // data
           PlotOrientation.VERTICAL, // orientation
           true,                     // include legend
           true,                     // tooltips
           false                     // urls
       );

       // NOW DO SOME OPTIONAL CUSTOMISATION OF THE CHART...
       chart.setBackgroundPaint(Color.white);
       CategoryPlot plot = chart.getCategoryPlot();

       StatisticalBarRenderer renderer = new StatisticalBarRenderer();
       renderer.setErrorIndicatorPaint(Color.black);
	//	renderer.setLegendItemLabelGenerator(new SOCRCategorySeriesLabelGenerator());
       plot.setRenderer(renderer);
      // renderer.setDrawOutlines(true);
      // renderer.setUseFillPaint(true);
      // renderer.setFillPaint(Color.white);
	
       return chart;
       
   }
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:30,代码来源:SuperCategoryChart_StatA.java

示例6: createChart

import org.jfree.chart.renderer.category.StatisticalBarRenderer; //导入方法依赖的package包/类
/**
   * Creates a sample chart.
   * 
   * @param dataset  a dataset.
   * 
   * @return The chart.
   */
  protected JFreeChart createChart(CategoryDataset dataset) {
      
      // create the chart...
      JFreeChart chart = ChartFactory.createLineChart(
          chartTitle, // chart title
          domainLabel,                         // domain axis label
          rangeLabel,                        // range axis label
          dataset,                        // data
          PlotOrientation.VERTICAL,       // orientation
          !legendPanelOn,                           // include legend
          true,                           // tooltips
          false                           // urls
      );

      chart.setBackgroundPaint(Color.white);

      CategoryPlot plot = (CategoryPlot) chart.getPlot();
      plot.setBackgroundPaint(Color.lightGray);
      plot.setRangeGridlinePaint(Color.white);

      // customise the range axis...
      NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
      rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
      rangeAxis.setAutoRangeIncludesZero(true);

      // customise the renderer...
      StatisticalBarRenderer renderer = new StatisticalBarRenderer();
      renderer.setErrorIndicatorPaint(Color.black);
//	renderer.setLegendItemLabelGenerator(new SOCRCategorySeriesLabelGenerator());
      plot.setRenderer(renderer);

      // OPTIONAL CUSTOMISATION COMPLETED.
     return chart;
  }
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:42,代码来源:StatisticalBarChartDemo1a.java

示例7: createChart

import org.jfree.chart.renderer.category.StatisticalBarRenderer; //导入方法依赖的package包/类
/**
   * Creates a sample chart.
   * 
   * @param dataset  a dataset.
   * 
   * @return The chart.
   */
  protected JFreeChart createChart(CategoryDataset dataset) {
      
      // create the chart...
      JFreeChart chart = ChartFactory.createLineChart(
          chartTitle, // chart title
          domainLabel,                         // domain axis label
          rangeLabel,                        // range axis label
          dataset,                        // data
          PlotOrientation.VERTICAL,       // orientation
          !legendPanelOn,                           // include legend
          true,                           // tooltips
          false                           // urls
      );

      chart.setBackgroundPaint(Color.white);

      CategoryPlot plot = (CategoryPlot) chart.getPlot();
      plot.setBackgroundPaint(Color.lightGray);
      plot.setRangeGridlinePaint(Color.white);

      // customise the range axis...
      NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
      rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
      rangeAxis.setAutoRangeIncludesZero(true);

      // customise the renderer...
      StatisticalBarRenderer renderer = new StatisticalBarRenderer();
      renderer.setErrorIndicatorPaint(Color.black);
renderer.setLegendItemLabelGenerator(new SOCRCategoryCellLabelGenerator(dataset, values_storage, SERIES_COUNT, CATEGORY_COUNT));
      plot.setRenderer(renderer);


      // OPTIONAL CUSTOMISATION COMPLETED.
     return chart;
  }
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:43,代码来源:StatisticalBarChartDemo3.java

示例8: createChart

import org.jfree.chart.renderer.category.StatisticalBarRenderer; //导入方法依赖的package包/类
/**
    * Creates a chart.
    * 
    * @param dataset  the dataset.
    * 
    * @return a chart.
    */
   protected JFreeChart createChart(CategoryDataset dataset) {
         // create the chart...
         
             // create the chart...
       JFreeChart chart
		= ChartFactory.createLineChart(
           chartTitle, // chart title
           domainLabel,                         // domain axis label
           rangeLabel,                        // range axis label
           dataset,                        // data
           PlotOrientation.VERTICAL,       // orientation
           !legendPanelOn,                           // include legend
           true,                           // tooltips
           false                           // urls
       );

       chart.setBackgroundPaint(Color.white);

       CategoryPlot plot = (CategoryPlot) chart.getPlot();
       plot.setBackgroundPaint(Color.lightGray);
       plot.setRangeGridlinePaint(Color.white);

       // customise the range axis...
       NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
       rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
       rangeAxis.setAutoRangeIncludesZero(true);

       // customise the renderer...
       StatisticalBarRenderer renderer = new StatisticalBarRenderer();
       renderer.setErrorIndicatorPaint(Color.black);
       plot.setRenderer(renderer);

       // OPTIONAL CUSTOMISATION COMPLETED.
      return chart;
 
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:44,代码来源:SuperCategoryChart_Stat_Raw.java

示例9: createCategoryBarStatChart

import org.jfree.chart.renderer.category.StatisticalBarRenderer; //导入方法依赖的package包/类
private JFreeChart createCategoryBarStatChart(String title, String xLabel, String yLabel, CategoryDataset dataset) {

      // create the chart...
      JFreeChart chart = ChartFactory.createLineChart(
          title, // chart title
          xLabel,                         // domain axis label
          yLabel,                        // range axis label
          dataset,                        // data
          orientation,       // orientation
          true,                           // include legend
          true,                           // tooltips
          false                           // urls
      );

      chart.setBackgroundPaint(Color.white);

      CategoryPlot plot = (CategoryPlot) chart.getPlot();
      plot.setBackgroundPaint(Color.lightGray);
      plot.setRangeGridlinePaint(Color.white);

      // customise the range axis...
      NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
      rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
      rangeAxis.setAutoRangeIncludesZero(true);

      // customise the renderer...
      StatisticalBarRenderer renderer = new StatisticalBarRenderer();
      renderer.setErrorIndicatorPaint(Color.black);
		//	renderer.setLegendItemLabelGenerator(new SOCRCategorySeriesLabelGenerator());
      plot.setRenderer(renderer);

      // OPTIONAL CUSTOMISATION COMPLETED.
     return chart;
  }
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:35,代码来源:ChartGenerator_JTable.java

示例10: applyToCategoryItemRenderer

import org.jfree.chart.renderer.category.StatisticalBarRenderer; //导入方法依赖的package包/类
/**
 * Applies the settings of this theme to the specified renderer.
 *
 * @param renderer  the renderer (<code>null</code> not permitted).
 */
protected void applyToCategoryItemRenderer(CategoryItemRenderer renderer) {
    ParamChecks.nullNotPermitted(renderer, "renderer");

    if (renderer instanceof AbstractRenderer) {
        applyToAbstractRenderer((AbstractRenderer) renderer);
    }

    renderer.setBaseItemLabelFont(this.regularFont);
    renderer.setBaseItemLabelPaint(this.itemLabelPaint);

    // now we handle some special cases - yes, UGLY code alert!

    // BarRenderer
    if (renderer instanceof BarRenderer) {
        BarRenderer br = (BarRenderer) renderer;
        br.setBarPainter(this.barPainter);
        br.setShadowVisible(this.shadowVisible);
        br.setShadowPaint(this.shadowPaint);
    }

    // BarRenderer3D
    if (renderer instanceof BarRenderer3D) {
        BarRenderer3D br3d = (BarRenderer3D) renderer;
        br3d.setWallPaint(this.wallPaint);
    }

    // LineRenderer3D
    if (renderer instanceof LineRenderer3D) {
        LineRenderer3D lr3d = (LineRenderer3D) renderer;
        lr3d.setWallPaint(this.wallPaint);
    }

    //  StatisticalBarRenderer
    if (renderer instanceof StatisticalBarRenderer) {
        StatisticalBarRenderer sbr = (StatisticalBarRenderer) renderer;
        sbr.setErrorIndicatorPaint(this.errorIndicatorPaint);
    }

    // MinMaxCategoryRenderer
    if (renderer instanceof MinMaxCategoryRenderer) {
        MinMaxCategoryRenderer mmcr = (MinMaxCategoryRenderer) renderer;
        mmcr.setGroupPaint(this.errorIndicatorPaint);
    }
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:50,代码来源:StandardChartTheme.java

示例11: applyToCategoryItemRenderer

import org.jfree.chart.renderer.category.StatisticalBarRenderer; //导入方法依赖的package包/类
/**
 * Applies the settings of this theme to the specified renderer.
 *
 * @param renderer  the renderer (<code>null</code> not permitted).
 */
protected void applyToCategoryItemRenderer(CategoryItemRenderer renderer) {
    if (renderer == null) {
        throw new IllegalArgumentException("Null 'renderer' argument.");
    }

    if (renderer instanceof AbstractRenderer) {
        applyToAbstractRenderer((AbstractRenderer) renderer);
    }

    renderer.setBaseItemLabelFont(this.regularFont);
    renderer.setBaseItemLabelPaint(this.itemLabelPaint);

    // now we handle some special cases - yes, UGLY code alert!

    // BarRenderer
    if (renderer instanceof BarRenderer) {
        BarRenderer br = (BarRenderer) renderer;
        br.setBarPainter(this.barPainter);
        br.setShadowVisible(this.shadowVisible);
        br.setShadowPaint(this.shadowPaint);
    }

    // BarRenderer3D
    if (renderer instanceof BarRenderer3D) {
        BarRenderer3D br3d = (BarRenderer3D) renderer;
        br3d.setWallPaint(this.wallPaint);
    }

    // LineRenderer3D
    if (renderer instanceof LineRenderer3D) {
        LineRenderer3D lr3d = (LineRenderer3D) renderer;
        lr3d.setWallPaint(this.wallPaint);
    }

    //  StatisticalBarRenderer
    if (renderer instanceof StatisticalBarRenderer) {
        StatisticalBarRenderer sbr = (StatisticalBarRenderer) renderer;
        sbr.setErrorIndicatorPaint(this.errorIndicatorPaint);
    }

    // MinMaxCategoryRenderer
    if (renderer instanceof MinMaxCategoryRenderer) {
        MinMaxCategoryRenderer mmcr = (MinMaxCategoryRenderer) renderer;
        mmcr.setGroupPaint(this.errorIndicatorPaint);
    }
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:52,代码来源:StandardChartTheme.java


注:本文中的org.jfree.chart.renderer.category.StatisticalBarRenderer.setErrorIndicatorPaint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。