public class

StatisticalLineAndShapeRenderer

extends LineAndShapeRenderer
implements Serializable Cloneable
java.lang.Object
   ↳ org.jfree.chart.renderer.AbstractRenderer
     ↳ org.jfree.chart.renderer.category.AbstractCategoryItemRenderer
       ↳ org.jfree.chart.renderer.category.LineAndShapeRenderer
         ↳ org.jfree.chart.renderer.category.StatisticalLineAndShapeRenderer

Class Overview

A renderer that draws shapes for each data item, and lines between data items. Each point has a mean value and a standard deviation line. For use with the CategoryPlot class. The example shown here is generated by the StatisticalLineChartDemo1.java program included in the JFreeChart Demo Collection:

StatisticalLineRendererSample.png

Summary

[Expand]
Inherited Fields
From class org.jfree.chart.renderer.AbstractRenderer
Public Constructors
StatisticalLineAndShapeRenderer()
Constructs a default renderer (draws shapes and lines).
StatisticalLineAndShapeRenderer(boolean linesVisible, boolean shapesVisible)
Constructs a new renderer.
Public Methods
void drawItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int row, int column, int pass)
Draw a single data item.
boolean equals(Object obj)
Tests this renderer for equality with an arbitrary object.
Range findRangeBounds(CategoryDataset dataset)
Returns the range of values the renderer requires to display all the items from the specified dataset.
Paint getErrorIndicatorPaint()
Returns the paint used for the error indicators.
Stroke getErrorIndicatorStroke()
Returns the stroke used for the error indicators.
int hashCode()
Returns a hash code for this instance.
void setErrorIndicatorPaint(Paint paint)
Sets the paint used for the error indicators (if null, the item paint is used instead) and sends a RendererChangeEvent to all registered listeners.
void setErrorIndicatorStroke(Stroke stroke)
Sets the stroke used for the error indicators (if null, the item outline stroke is used instead) and sends a RendererChangeEvent to all registered listeners.
[Expand]
Inherited Methods
From class org.jfree.chart.renderer.category.LineAndShapeRenderer
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 StatisticalLineAndShapeRenderer ()

Constructs a default renderer (draws shapes and lines).

public StatisticalLineAndShapeRenderer (boolean linesVisible, boolean shapesVisible)

Constructs a new renderer.

Parameters
linesVisible draw lines?
shapesVisible draw shapes?

Public Methods

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

Draw a single data item.

Parameters
g2 the graphics device.
state the renderer state.
dataArea the area in which the data is drawn.
plot the plot.
domainAxis the domain axis.
rangeAxis the range axis.
dataset the dataset (a StatisticalCategoryDataset is required).
row the row index (zero-based).
column the column index (zero-based).
pass the pass.

public boolean equals (Object obj)

Tests this renderer for equality with an arbitrary object.

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

public Range findRangeBounds (CategoryDataset dataset)

Returns the range of values the renderer requires to display all the items from the specified dataset.

Parameters
dataset the dataset (null permitted).
Returns
  • The range (or null if the dataset is null or empty).

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 for the error indicators.

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

public int hashCode ()

Returns a hash code for this instance.

Returns
  • A hash code.

public void setErrorIndicatorPaint (Paint paint)

Sets the paint used for the error indicators (if null, the item 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 for the error indicators (if null, the item outline stroke is used instead) and sends a RendererChangeEvent to all registered listeners.

Parameters
stroke the stroke (null permitted).