org.jfree.chart.renderer.category

Class StatisticalBarRenderer

public class StatisticalBarRenderer extends BarRenderer implements CategoryItemRenderer, Cloneable, PublicCloneable, Serializable

A renderer that handles the drawing a bar plot where each bar has a mean value and a standard deviation line.
Constructor Summary
StatisticalBarRenderer()
Default constructor.
Method Summary
protected voiddrawHorizontalItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, StatisticalCategoryDataset dataset, int row, int column)
Draws an item for a plot with a horizontal orientation.
voiddrawItem(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.
protected voiddrawVerticalItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, StatisticalCategoryDataset dataset, int row, int column)
Draws an item for a plot with a vertical orientation.
booleanequals(Object obj)
Tests this renderer for equality with an arbitrary object.
PaintgetErrorIndicatorPaint()
Returns the paint used for the error indicators.
voidsetErrorIndicatorPaint(Paint paint)
Sets the paint used for the error indicators (if null, the item outline paint is used instead)

Constructor Detail

StatisticalBarRenderer

public StatisticalBarRenderer()
Default constructor.

Method Detail

drawHorizontalItem

protected void drawHorizontalItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, StatisticalCategoryDataset dataset, 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. row the row index (zero-based). column the column index (zero-based).

drawItem

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.

drawVerticalItem

protected void drawVerticalItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, StatisticalCategoryDataset dataset, 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. row the row index (zero-based). column the column index (zero-based).

equals

public boolean equals(Object obj)
Tests this renderer for equality with an arbitrary object.

Parameters: obj the object (null permitted).

Returns: A boolean.

getErrorIndicatorPaint

public Paint getErrorIndicatorPaint()
Returns the paint used for the error indicators.

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

setErrorIndicatorPaint

public void setErrorIndicatorPaint(Paint paint)
Sets the paint used for the error indicators (if null, the item outline paint is used instead)

Parameters: paint the paint (null permitted).