本文整理汇总了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;
}
示例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));
}
示例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));
}
示例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);
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
}
示例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);
}
}