com.jrefinery.chart
Class AreaCategoryItemRenderer
java.lang.Object
|
+--com.jrefinery.chart.AbstractRenderer
|
+--com.jrefinery.chart.AbstractCategoryItemRenderer
|
+--com.jrefinery.chart.AreaCategoryItemRenderer
- All Implemented Interfaces:
- CategoryItemRenderer
- Direct Known Subclasses:
- StackedAreaCategoryItemRenderer
- public class AreaCategoryItemRenderer
- extends AbstractCategoryItemRenderer
A category item renderer that draws area charts. You can use this renderer
with the VerticalCategoryPlot class.
- Author:
- JI
Method Summary |
void |
drawCategoryItem(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
CategoryPlot plot,
ValueAxis axis,
CategoryDataset data,
int series,
java.lang.Object category,
int categoryIndex,
java.lang.Object previousCategory)
Draw a single data item. |
void |
drawRangeMarker(java.awt.Graphics2D g2,
CategoryPlot plot,
ValueAxis axis,
Marker marker,
java.awt.geom.Rectangle2D axisDataArea,
java.awt.Shape dataClipRegion)
Draws a line (or some other marker) to indicate a certain value on the
range axis. |
Methods inherited from class com.jrefinery.chart.AbstractCategoryItemRenderer |
drawPlotBackground, getAxisArea, getCategoriesPaint, getCategoryPaint, getDataClipRegion, getLegendItem, getPlot, getToolTipGenerator, getURLGenerator, getUseCategoriesPaint, initialise, isStacked, setCategoriesPaint, setPlot, setToolTipGenerator, setURLGenerator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AreaCategoryItemRenderer
public AreaCategoryItemRenderer()
- Creates a new renderer.
AreaCategoryItemRenderer
public AreaCategoryItemRenderer(CategoryToolTipGenerator toolTipGenerator,
CategoryURLGenerator urlGenerator)
- Creates a new renderer.
- Parameters:
toolTipGenerator
- the tool tip generator (null permitted).urlGenerator
- the URL generator (null permitted).
drawRangeMarker
public void drawRangeMarker(java.awt.Graphics2D g2,
CategoryPlot plot,
ValueAxis axis,
Marker marker,
java.awt.geom.Rectangle2D axisDataArea,
java.awt.Shape dataClipRegion)
- Draws a line (or some other marker) to indicate a certain value on the
range axis.
- Parameters:
g2
- the graphics device.plot
- the plot.axis
- the value axis.marker
- the marker.axisDataArea
- the area defined by the axes.dataClipRegion
- the data clip region.
drawCategoryItem
public void drawCategoryItem(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
CategoryPlot plot,
ValueAxis axis,
CategoryDataset data,
int series,
java.lang.Object category,
int categoryIndex,
java.lang.Object previousCategory)
- Draw a single data item.
- Parameters:
g2
- the graphics device.dataArea
- the data plot area.plot
- the plot.axis
- the range axis.data
- the data.series
- the series number (zero-based index).category
- the category.categoryIndex
- the category number (zero-based index).previousCategory
- the previous category (will be null when
the first category is drawn).