|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jrefinery.chart.AbstractCategoryItemRenderer
public abstract class AbstractCategoryItemRenderer
Abstract base class for category item renderers.
| Field Summary | |
|---|---|
protected ChartRenderingInfo |
info
Local copy of the info reference. |
protected com.jrefinery.chart.tooltips.CategoryToolTipGenerator |
toolTipGenerator
The tooltip generator. |
| Constructor Summary | |
|---|---|
protected |
AbstractCategoryItemRenderer()
Default constructor, creates a renderer with a standard tool tip generator. |
protected |
AbstractCategoryItemRenderer(com.jrefinery.chart.tooltips.CategoryToolTipGenerator toolTipGenerator)
Constructs a new renderer with the specified tooltip generator. |
| Method Summary | |
|---|---|
void |
drawPlotBackground(java.awt.Graphics2D g2,
CategoryPlot plot,
java.awt.geom.Rectangle2D axisDataArea,
java.awt.Shape dataClipRegion)
Draws the background for the plot. |
java.awt.geom.Rectangle2D |
getAxisArea(java.awt.geom.Rectangle2D plotArea)
Returns the area that the axes (and date) must fit into. |
java.awt.Shape |
getDataClipRegion(java.awt.geom.Rectangle2D dataArea)
Returns the clip region...usually returns the dataArea, but some charts (e.g. |
com.jrefinery.chart.tooltips.CategoryToolTipGenerator |
getToolTipGenerator()
Returns the tool tip generator. |
void |
initialise(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
CategoryPlot plot,
CategoryDataset data,
ChartRenderingInfo info)
Initialises the renderer. |
boolean |
isStacked()
Returns a flag indicating whether the items within one category are stacked up when represented by the renderer. |
void |
setToolTipGenerator(com.jrefinery.chart.tooltips.CategoryToolTipGenerator toolTipGenerator)
Sets the tool tip generator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jrefinery.chart.CategoryItemRenderer |
|---|
drawCategoryItem, drawRangeMarker |
| Field Detail |
|---|
protected ChartRenderingInfo info
protected com.jrefinery.chart.tooltips.CategoryToolTipGenerator toolTipGenerator
| Constructor Detail |
|---|
protected AbstractCategoryItemRenderer()
protected AbstractCategoryItemRenderer(com.jrefinery.chart.tooltips.CategoryToolTipGenerator toolTipGenerator)
toolTipGenerator - The tool tip generator.| Method Detail |
|---|
public com.jrefinery.chart.tooltips.CategoryToolTipGenerator getToolTipGenerator()
public void setToolTipGenerator(com.jrefinery.chart.tooltips.CategoryToolTipGenerator toolTipGenerator)
toolTipGenerator - The tool tip generator.
public void initialise(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
CategoryPlot plot,
CategoryDataset data,
ChartRenderingInfo info)
This method gets called once each time the chart is drawn, and provides the renderer an opportunity to initialise itself. The default implementation just stores a reference to the ChartRenderingInfo object (which might be null).
initialise in interface CategoryItemRendererg2 - The graphics device.dataArea - The data area.plot - The plot.data - The data.info - An object for returning information about the structure of the chart.public boolean isStacked()
isStacked in interface CategoryItemRendererpublic java.awt.geom.Rectangle2D getAxisArea(java.awt.geom.Rectangle2D plotArea)
Often this is the same as the plotArea, but sometimes a smaller region should be used (for example, the 3D charts require the axes to use less space in order to leave room for the 'depth' part of the chart).
getAxisArea in interface CategoryItemRendererplotArea - The plot area.public java.awt.Shape getDataClipRegion(java.awt.geom.Rectangle2D dataArea)
getDataClipRegion in interface CategoryItemRendererdataArea - The data area.
public void drawPlotBackground(java.awt.Graphics2D g2,
CategoryPlot plot,
java.awt.geom.Rectangle2D axisDataArea,
java.awt.Shape dataClipRegion)
For most charts, the axisDataArea and the dataClipArea are the same.
drawPlotBackground in interface CategoryItemRendererg2 - The graphics device.plot - The plot.axisDataArea - The area inside the axes.dataClipArea - The data clip area.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||