org.jfree.chart.renderer.category

Class StatisticalLineAndShapeRenderer

public class StatisticalLineAndShapeRenderer extends LineAndShapeRenderer implements Cloneable, PublicCloneable, Serializable

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.
Constructor Summary
StatisticalLineAndShapeRenderer()
Constructs a default renderer (draws shapes and lines).
StatisticalLineAndShapeRenderer(boolean linesVisible, boolean shapesVisible)
Constructs a new renderer.
Method Summary
voiddrawItem(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.
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) and sends a RendererChangeEvent to all registered listeners.

Constructor Detail

StatisticalLineAndShapeRenderer

public StatisticalLineAndShapeRenderer()
Constructs a default renderer (draws shapes and lines).

StatisticalLineAndShapeRenderer

public StatisticalLineAndShapeRenderer(boolean linesVisible, boolean shapesVisible)
Constructs a new renderer.

Parameters: linesVisible draw lines? shapesVisible draw shapes?

Method Detail

drawItem

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.

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).

See Also: setErrorIndicatorPaint

setErrorIndicatorPaint

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).

See Also: getErrorIndicatorPaint