public class

StatisticalBarRenderer

extends BarRenderer
implements Serializable Cloneable CategoryItemRenderer
java.lang.Object
   ↳ org.jfree.chart.renderer.AbstractRenderer
     ↳ org.jfree.chart.renderer.category.AbstractCategoryItemRenderer
       ↳ org.jfree.chart.renderer.category.BarRenderer
         ↳ org.jfree.chart.renderer.category.StatisticalBarRenderer

Class Overview

A renderer that handles the drawing a bar plot where each bar has a mean value and a standard deviation line. The example shown here is generated by the StatisticalBarChartDemo1.java program included in the JFreeChart Demo Collection:

StatisticalBarRendererSample.png

Summary

[Expand]
Inherited Constants
From class org.jfree.chart.renderer.category.BarRenderer
[Expand]
Inherited Fields
From class org.jfree.chart.renderer.AbstractRenderer
Public Constructors
StatisticalBarRenderer()
Default constructor.
Public Methods
void drawItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset data, int row, int column, int pass)
Draws the bar with its standard deviation line range for a single (series, category) data item.
boolean equals(Object obj)
Tests this renderer for equality with an arbitrary object.
Paint getErrorIndicatorPaint()
Returns the paint used for the error indicators.
Stroke getErrorIndicatorStroke()
Returns the stroke used to draw the error indicators.
void setErrorIndicatorPaint(Paint paint)
Sets the paint used for the error indicators (if null, the item outline paint is used instead) and sends a RendererChangeEvent to all registered listeners.
void setErrorIndicatorStroke(Stroke stroke)
Sets the stroke used to draw the error indicators, and sends a RendererChangeEvent to all registered listeners.
Protected Methods
void drawHorizontalItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, StatisticalCategoryDataset dataset, int visibleRow, int row, int column)
Draws an item for a plot with a horizontal orientation.
void drawVerticalItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, StatisticalCategoryDataset dataset, int visibleRow, int row, int column)
Draws an item for a plot with a vertical orientation.
[Expand]
Inherited Methods
From class org.jfree.chart.renderer.category.BarRenderer
From class org.jfree.chart.renderer.category.AbstractCategoryItemRenderer
From class org.jfree.chart.renderer.AbstractRenderer
From class java.lang.Object
From interface org.jfree.chart.LegendItemSource
From interface org.jfree.chart.renderer.category.CategoryItemRenderer

Public Constructors

public StatisticalBarRenderer ()

Default constructor.

Public Methods

public void drawItem (Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset data, int row, int column, int pass)

Draws the bar with its standard deviation line range for a single (series, category) data item.

Parameters
g2 the graphics device.
state the renderer state.
dataArea the data area.
plot the plot.
domainAxis the domain axis.
rangeAxis the range axis.
data the data.
row the row index (zero-based).
column the column index (zero-based).
pass the pass index.

public boolean equals (Object obj)

Tests this renderer for equality with an arbitrary object.

Parameters
obj the object (null permitted).
Returns
  • A boolean.

public Paint getErrorIndicatorPaint ()

Returns the paint used for the error indicators.

Returns
  • The paint used for the error indicators (possibly null).

public Stroke getErrorIndicatorStroke ()

Returns the stroke used to draw the error indicators. If this is null, the renderer will use the item outline stroke).

Returns
  • The stroke (possibly null).

public void setErrorIndicatorPaint (Paint paint)

Sets the paint used for the error indicators (if null, the item outline paint is used instead) and sends a RendererChangeEvent to all registered listeners.

Parameters
paint the paint (null permitted).

public void setErrorIndicatorStroke (Stroke stroke)

Sets the stroke used to draw the error indicators, and sends a RendererChangeEvent to all registered listeners. If you set this to null, the renderer will use the item outline stroke.

Parameters
stroke the stroke (null permitted).

Protected Methods

protected void drawHorizontalItem (Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, StatisticalCategoryDataset dataset, int visibleRow, int row, int column)

Draws an item for a plot with a horizontal orientation.

Parameters
g2 the graphics device.
state the renderer state.
dataArea the data area.
plot the plot.
domainAxis the domain axis.
rangeAxis the range axis.
dataset the data.
visibleRow the visible row index.
row the row index (zero-based).
column the column index (zero-based).

protected void drawVerticalItem (Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, StatisticalCategoryDataset dataset, int visibleRow, int row, int column)

Draws an item for a plot with a vertical orientation.

Parameters
g2 the graphics device.
state the renderer state.
dataArea the data area.
plot the plot.
domainAxis the domain axis.
rangeAxis the range axis.
dataset the data.
visibleRow the visible row index.
row the row index (zero-based).
column the column index (zero-based).