|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.renderer.AbstractRenderer
org.jfree.chart.renderer.category.AbstractCategoryItemRenderer
org.jfree.chart.renderer.category.LineAndShapeRenderer
org.jfree.chart.renderer.category.StatisticalLineAndShapeRenderer
public class StatisticalLineAndShapeRenderer
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.
Field Summary |
---|
Fields inherited from class org.jfree.chart.renderer.AbstractRenderer |
---|
DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, DEFAULT_PAINT, DEFAULT_SHAPE, DEFAULT_STROKE, DEFAULT_VALUE_LABEL_FONT, DEFAULT_VALUE_LABEL_PAINT, ZERO |
Constructor Summary | |
---|---|
StatisticalLineAndShapeRenderer()
Constructs a default renderer (draws shapes and lines). |
|
StatisticalLineAndShapeRenderer(boolean linesVisible,
boolean shapesVisible)
Constructs a new renderer. |
Method Summary | |
---|---|
void |
drawItem(java.awt.Graphics2D g2,
CategoryItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
CategoryPlot plot,
CategoryAxis domainAxis,
ValueAxis rangeAxis,
CategoryDataset dataset,
int row,
int column,
int pass)
Draw a single data item. |
boolean |
equals(java.lang.Object obj)
Tests this renderer for equality with an arbitrary object. |
java.awt.Paint |
getErrorIndicatorPaint()
Returns the paint used for the error indicators. |
void |
setErrorIndicatorPaint(java.awt.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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.util.PublicCloneable |
---|
clone |
Constructor Detail |
---|
public StatisticalLineAndShapeRenderer()
public StatisticalLineAndShapeRenderer(boolean linesVisible, boolean shapesVisible)
linesVisible
- draw lines?shapesVisible
- draw shapes?Method Detail |
---|
public java.awt.Paint getErrorIndicatorPaint()
null
).setErrorIndicatorPaint(Paint)
public void setErrorIndicatorPaint(java.awt.Paint paint)
null
,
the item outline paint is used instead) and sends a
RendererChangeEvent
to all registered listeners.
paint
- the paint (null
permitted).getErrorIndicatorPaint()
public void drawItem(java.awt.Graphics2D g2, CategoryItemRendererState state, java.awt.geom.Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int row, int column, int pass)
drawItem
in interface CategoryItemRenderer
drawItem
in class LineAndShapeRenderer
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(java.lang.Object obj)
equals
in class LineAndShapeRenderer
obj
- the object (null
permitted).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |