A renderer that handles the drawing a bar plot where
each bar has a mean value and a standard deviation line.
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.
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.
- drawItem in interface CategoryItemRenderer
- drawItem in interface BarRenderer
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.
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.
- equals in interface BarRenderer
obj
- the object (null
permitted).
getErrorIndicatorPaint
public Paint getErrorIndicatorPaint()
Returns the paint used for the error indicators.
- 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)
paint
- the paint (null
permitted).