org.jfree.chart.renderer.category
public class StatisticalLineAndShapeRenderer extends LineAndShapeRenderer implements Cloneable, PublicCloneable, Serializable
StatisticalLineChartDemo1.java
program
included in the JFreeChart Demo Collection:
Constructor Summary | |
---|---|
StatisticalLineAndShapeRenderer()
Constructs a default renderer (draws shapes and lines). | |
StatisticalLineAndShapeRenderer(boolean linesVisible, boolean shapesVisible)
Constructs a new renderer.
|
Method Summary | |
---|---|
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.
|
Parameters: linesVisible draw lines? shapesVisible draw shapes?
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.
Parameters: obj the object (null
permitted).
Returns: A boolean.
Parameters: dataset the dataset (null
permitted).
Returns: The range (or null
if the dataset is
null
or empty).
Returns: The paint used for the error indicators (possibly
null
).
See Also: setErrorIndicatorPaint
Returns: The stroke used for the error indicators (possibly
null
).
Since: 1.0.13
Returns: A hash code.
null
,
the item paint is used instead) and sends a
RendererChangeEvent to all registered listeners.
Parameters: paint the paint (null
permitted).
See Also: getErrorIndicatorPaint
null
,
the item outline stroke is used instead) and sends a
RendererChangeEvent to all registered listeners.
Parameters: stroke the stroke (null
permitted).
Since: 1.0.13