org.jfree.chart.renderer
Interface CategoryItemRenderer

All Known Implementing Classes:
AbstractCategoryItemRenderer, IntervalBarRenderer, StatisticalBarRenderer

public interface CategoryItemRenderer

A plug-in object that is used by the CategoryPlot class to display individual data items from a CategoryDataset.

This interface defines the methods that must be provided by all renderers. If you are implementing a custom renderer, you should consider extending the AbstractCategoryItemRenderer class.

Author:
David Gilbert

Method Summary
 void addChangeListener(RendererChangeListener listener)
          Adds a change listener.
 void drawBackground(java.awt.Graphics2D g2, CategoryPlot plot, java.awt.geom.Rectangle2D dataArea)
          Draws a background for the data area.
 void drawDomainGridline(java.awt.Graphics2D g2, CategoryPlot plot, java.awt.geom.Rectangle2D dataArea, double value)
          Draws a grid line against the domain axis.
 void drawItem(java.awt.Graphics2D g2, CategoryItemRendererState state, java.awt.geom.Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset data, int row, int column)
          Draws a single data item.
 void drawOutline(java.awt.Graphics2D g2, CategoryPlot plot, java.awt.geom.Rectangle2D dataArea)
          Draws an outline for the data area.
 void drawRangeGridline(java.awt.Graphics2D g2, CategoryPlot plot, ValueAxis axis, java.awt.geom.Rectangle2D dataArea, double value)
          Draws a grid line against the range axis.
 void drawRangeMarker(java.awt.Graphics2D g2, CategoryPlot plot, ValueAxis axis, Marker marker, java.awt.geom.Rectangle2D dataArea)
          Draws a line (or some other marker) to indicate a particular value on the range axis.
 ItemLabelAnchor getBaseItemLabelAnchor()
          Deprecated. Use getBaseItemLabelPosition.
 java.awt.Font getBaseItemLabelFont()
          Returns the base item label font.
 CategoryItemLabelGenerator getBaseItemLabelGenerator()
          Returns the base item label generator.
 org.jfree.ui.TextAnchor getBaseItemLabelTextAnchor()
          Deprecated. Use setBaseItemLabelPosition.
 CategoryURLGenerator getBaseItemURLGenerator()
          Returns the base item URL generator.
 java.awt.Paint getBaseOutlinePaint()
          Returns the base outline paint.
 java.awt.Stroke getBaseOutlineStroke()
          Returns the base outline stroke.
 java.awt.Paint getBasePaint()
          Returns the base paint.
 java.awt.Shape getBaseShape()
          Returns the base shape.
 java.awt.Stroke getBaseStroke()
          Returns the base stroke.
 ItemLabelAnchor getItemLabelAnchor(int series, int item)
          Deprecated. Use getItemLabelPosition.
 java.awt.Font getItemLabelFont(int series, int item)
          Returns the item label font for an item.
 CategoryItemLabelGenerator getItemLabelGenerator(int series, int item)
          Returns the item label generator for an item.
 org.jfree.ui.TextAnchor getItemLabelTextAnchor(int series, int item)
          Deprecated. Use getItemLabelPosition.
 java.awt.Paint getItemOutlinePaint(int series, int item)
          Returns the outline paint for an item.
 java.awt.Stroke getItemOutlineStroke(int series, int item)
          Returns the outline stroke for an item.
 java.awt.Paint getItemPaint(int series, int category)
          Returns the paint used to fill an item.
 java.awt.Shape getItemShape(int series, int item)
          Returns the shape for an item.
 java.awt.Stroke getItemStroke(int series, int item)
          Returns the stroke for an item.
 CategoryURLGenerator getItemURLGenerator(int series, int item)
          Returns the URL generator for an item.
 LegendItem getLegendItem(int datasetIndex, int series)
          Returns a legend item for a series.
 ItemLabelPosition getNegativeItemLabelPosition(int row, int column)
          Returns the negative item label position.
 CategoryPlot getPlot()
          Returns the plot that the renderer has been assigned to.
 ItemLabelPosition getPositiveItemLabelPosition(int row, int column)
          Returns the positive item label position.
 RangeType getRangeType()
          Returns the range type for the renderer.
 ItemLabelAnchor getSeriesItemLabelAnchor(int series)
          Deprecated. Use getSeriesItemLabelPosition.
 java.awt.Font getSeriesItemLabelFont(int series)
          Deprecated. Use getSeriesItemLabelPosition.
 CategoryItemLabelGenerator getSeriesItemLabelGenerator(int series)
          Returns the item label generator for a series.
 org.jfree.ui.TextAnchor getSeriesItemLabelTextAnchor(int series)
          Deprecated. User getSeriesItemLabelPosition.
 CategoryURLGenerator getSeriesItemURLGenerator(int series)
          Returns the item URL generator for a series.
 java.awt.Paint getSeriesOutlinePaint(int series)
          Returns the outline paint for a series.
 java.awt.Stroke getSeriesOutlineStroke(int series)
          Returns the outline stroke for a series.
 java.awt.Paint getSeriesPaint(int series)
          Returns the paint used to fill shapes for this renderer.
 java.awt.Shape getSeriesShape(int series)
          Returns the shape for a series.
 java.awt.Stroke getSeriesStroke(int series)
          Returns the stroke for a series.
 CategoryItemRendererState initialise(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, CategoryPlot plot, java.lang.Integer index, PlotRenderingInfo info)
          Initialises the renderer.
 void removeChangeListener(RendererChangeListener listener)
          Removes a change listener.
 void setBaseItemLabelAnchor(ItemLabelAnchor anchor)
          Deprecated. Use setBaseItemLabelPosition.
 void setBaseItemLabelFont(java.awt.Font font)
          Sets the base item label font.
 void setBaseItemLabelGenerator(CategoryItemLabelGenerator generator)
          Sets the base item label generator.
 void setBaseItemLabelTextAnchor(org.jfree.ui.TextAnchor anchor)
          Deprecated. Use setBaseItemLabelPosition.
 void setBaseItemURLGenerator(CategoryURLGenerator generator)
          Sets the base item URL generator.
 void setBaseOutlinePaint(java.awt.Paint paint)
          Sets the base outline paint.
 void setBaseOutlineStroke(java.awt.Stroke stroke)
          Sets the base outline stroke.
 void setBasePaint(java.awt.Paint paint)
          Sets the base paint.
 void setBaseShape(java.awt.Shape shape)
          Sets the base shape.
 void setBaseStroke(java.awt.Stroke stroke)
          Sets the base stroke.
 void setItemLabelAnchor(ItemLabelAnchor anchor)
          Deprecated. Use setItemLabelPosition.
 void setItemLabelFont(java.awt.Font font)
          Sets the item label font for ALL series.
 void setItemLabelGenerator(CategoryItemLabelGenerator generator)
          Sets the item label generator for ALL series.
 void setItemLabelsVisible(boolean visible)
          Sets a flag that controls whether or not the item labels for ALL series are visible.
 void setItemLabelsVisible(java.lang.Boolean visible)
          Sets a flag that controls whether or not the item labels for ALL series are visible.
 void setItemLabelTextAnchor(org.jfree.ui.TextAnchor anchor)
          Deprecated. Use setItemLabelPosition.
 void setItemURLGenerator(CategoryURLGenerator generator)
          Sets the item URL generator for ALL series.
 void setNegativeItemLabelPosition(ItemLabelPosition position)
          Sets the negative item label position for ALL series.
 void setOutlinePaint(java.awt.Paint paint)
          Sets the outline paint for ALL series (optional).
 void setOutlineStroke(java.awt.Stroke stroke)
          Sets the outline stroke for ALL series.
 void setPlot(CategoryPlot plot)
          Sets the plot that the renderer has been assigned to.
 void setPositiveItemLabelPosition(ItemLabelPosition position)
          Sets the positive item label position for ALL series.
 void setSeriesItemLabelAnchor(int series, ItemLabelAnchor anchor)
          Deprecated. Use setSeriesItemLabelPosition.
 void setSeriesItemLabelFont(int series, java.awt.Font font)
          Sets the item label font for a series.
 void setSeriesItemLabelGenerator(int series, CategoryItemLabelGenerator generator)
          Sets the item label generator for a series.
 void setSeriesItemLabelTextAnchor(int series, org.jfree.ui.TextAnchor anchor)
          Deprecated. Use setSeriesItemLabelPosition.
 void setSeriesItemURLGenerator(int series, CategoryURLGenerator generator)
          Sets the item URL generator for a series.
 void setSeriesOutlinePaint(int series, java.awt.Paint paint)
          Sets the outline paint for a series in the primary dataset.
 void setSeriesOutlineStroke(int series, java.awt.Stroke stroke)
          Sets the outline stroke for a series in the primary dataset.
 void setSeriesPaint(int series, java.awt.Paint paint)
          Sets the paint for a series in the primary dataset.
 void setSeriesShape(int series, java.awt.Shape shape)
          Sets the shape for a series in the primary dataset.
 void setSeriesStroke(int series, java.awt.Stroke stroke)
          Sets the stroke for a series in the primary dataset.
 void setStroke(java.awt.Stroke stroke)
          Sets the stroke for ALL series (optional).
 

Method Detail

getPlot

public CategoryPlot getPlot()
Returns the plot that the renderer has been assigned to.

Returns:
the plot.

setPlot

public void setPlot(CategoryPlot plot)
Sets the plot that the renderer has been assigned to.

You shouldn't need to call this method yourself, the plot will do it for you when you assign the renderer to the plot.

Parameters:
plot - the plot.

addChangeListener

public void addChangeListener(RendererChangeListener listener)
Adds a change listener.

Parameters:
listener - the listener.

removeChangeListener

public void removeChangeListener(RendererChangeListener listener)
Removes a change listener.

Parameters:
listener - the listener.

getRangeType

public RangeType getRangeType()
Returns the range type for the renderer. The plot needs to know this information in order to determine an appropriate axis range (when the axis auto-range calculation is on).

Two types are recognised:

If the data values are stacked, this affects the axis range required to display all the data items.

Returns:
a flag indicating whether or not the data values are stacked.

initialise

public CategoryItemRendererState initialise(java.awt.Graphics2D g2,
                                            java.awt.geom.Rectangle2D dataArea,
                                            CategoryPlot plot,
                                            java.lang.Integer index,
                                            PlotRenderingInfo info)
Initialises the renderer. This method will be called before the first item is rendered, giving the renderer an opportunity to initialise any state information it wants to maintain. The renderer can do nothing if it chooses.

Parameters:
g2 - the graphics device.
dataArea - the area inside the axes.
plot - the plot.
index - the secondary index (null for primary renderer).
info - collects chart rendering information for return to caller.
Returns:
A state object (maintains state information relevant to one chart drawing).

getBasePaint

public java.awt.Paint getBasePaint()
Returns the base paint.

Returns:
The base paint.

setBasePaint

public void setBasePaint(java.awt.Paint paint)
Sets the base paint.

In most cases, the renderer's paint table will be active and so this default value will not be used.

Parameters:
paint - the paint.

getItemPaint

public java.awt.Paint getItemPaint(int series,
                                   int category)
Returns the paint used to fill an item.

Parameters:
series - the series index (zero-based).
category - the category index (zero-based).
Returns:
The paint.

getSeriesPaint

public java.awt.Paint getSeriesPaint(int series)
Returns the paint used to fill shapes for this renderer.

Parameters:
series - the series (zero-based index).
Returns:
the paint.

setSeriesPaint

public void setSeriesPaint(int series,
                           java.awt.Paint paint)
Sets the paint for a series in the primary dataset.

Parameters:
series - the series index (zero-based).
paint - the paint.

getBaseOutlinePaint

public java.awt.Paint getBaseOutlinePaint()
Returns the base outline paint.

Returns:
The base outline paint.

setBaseOutlinePaint

public void setBaseOutlinePaint(java.awt.Paint paint)
Sets the base outline paint.

Parameters:
paint - the paint.

getItemOutlinePaint

public java.awt.Paint getItemOutlinePaint(int series,
                                          int item)
Returns the outline paint for an item.

Parameters:
series - the series index (zero-based).
item - the item index (zero-based).
Returns:
The paint.

setOutlinePaint

public void setOutlinePaint(java.awt.Paint paint)
Sets the outline paint for ALL series (optional).

Parameters:
paint - the paint (null permitted).

getSeriesOutlinePaint

public java.awt.Paint getSeriesOutlinePaint(int series)
Returns the outline paint for a series.

Parameters:
series - the series index (zero-based).
Returns:
The paint.

setSeriesOutlinePaint

public void setSeriesOutlinePaint(int series,
                                  java.awt.Paint paint)
Sets the outline paint for a series in the primary dataset.

Parameters:
series - the series index (zero-based).
paint - the paint.

getItemStroke

public java.awt.Stroke getItemStroke(int series,
                                     int item)
Returns the stroke for an item.

Parameters:
series - the series index (zero-based).
item - the item index (zero-based).
Returns:
The stroke.

getSeriesStroke

public java.awt.Stroke getSeriesStroke(int series)
Returns the stroke for a series.

Parameters:
series - the series index (zero-based).
Returns:
The stroke.

setStroke

public void setStroke(java.awt.Stroke stroke)
Sets the stroke for ALL series (optional).

Parameters:
stroke - the stroke.

setSeriesStroke

public void setSeriesStroke(int series,
                            java.awt.Stroke stroke)
Sets the stroke for a series in the primary dataset.

Parameters:
series - the series index (zero-based).
stroke - the stroke.

getBaseStroke

public java.awt.Stroke getBaseStroke()
Returns the base stroke.

Returns:
The stroke.

setBaseStroke

public void setBaseStroke(java.awt.Stroke stroke)
Sets the base stroke.

Parameters:
stroke - the stroke.

getItemOutlineStroke

public java.awt.Stroke getItemOutlineStroke(int series,
                                            int item)
Returns the outline stroke for an item.

Parameters:
series - the series index (zero-based).
item - the item index (zero-based).
Returns:
The stroke.

getSeriesOutlineStroke

public java.awt.Stroke getSeriesOutlineStroke(int series)
Returns the outline stroke for a series.

Parameters:
series - the series index (zero-based).
Returns:
The stroke.

setOutlineStroke

public void setOutlineStroke(java.awt.Stroke stroke)
Sets the outline stroke for ALL series.

Parameters:
stroke - the stroke.

setSeriesOutlineStroke

public void setSeriesOutlineStroke(int series,
                                   java.awt.Stroke stroke)
Sets the outline stroke for a series in the primary dataset.

Parameters:
series - the series index (zero-based).
stroke - the stroke.

getBaseOutlineStroke

public java.awt.Stroke getBaseOutlineStroke()
Returns the base outline stroke.

Returns:
The outline stroke.

setBaseOutlineStroke

public void setBaseOutlineStroke(java.awt.Stroke stroke)
Sets the base outline stroke.

Parameters:
stroke - the outline stroke.

getItemShape

public java.awt.Shape getItemShape(int series,
                                   int item)
Returns the shape for an item.

Parameters:
series - the series index (zero-based).
item - the item index (zero-based).
Returns:
The shape.

getSeriesShape

public java.awt.Shape getSeriesShape(int series)
Returns the shape for a series.

Parameters:
series - the series index (zero-based).
Returns:
The shape.

setSeriesShape

public void setSeriesShape(int series,
                           java.awt.Shape shape)
Sets the shape for a series in the primary dataset.

Parameters:
series - the series index (zero-based).
shape - the shape.

getBaseShape

public java.awt.Shape getBaseShape()
Returns the base shape.

Returns:
The shape.

setBaseShape

public void setBaseShape(java.awt.Shape shape)
Sets the base shape.

Parameters:
shape - the shape.

setItemLabelsVisible

public void setItemLabelsVisible(java.lang.Boolean visible)
Sets a flag that controls whether or not the item labels for ALL series are visible.

Parameters:
visible - the flag (null permitted).

setItemLabelsVisible

public void setItemLabelsVisible(boolean visible)
Sets a flag that controls whether or not the item labels for ALL series are visible.

Parameters:
visible - the flag (null permitted).

getItemLabelGenerator

public CategoryItemLabelGenerator getItemLabelGenerator(int series,
                                                        int item)
Returns the item label generator for an item.

Parameters:
series - the series index (zero-based).
item - the item index (zero-based).
Returns:
The item label generator.

getSeriesItemLabelGenerator

public CategoryItemLabelGenerator getSeriesItemLabelGenerator(int series)
Returns the item label generator for a series.

Parameters:
series - the series index (zero-based).
Returns:
The label generator.

setItemLabelGenerator

public void setItemLabelGenerator(CategoryItemLabelGenerator generator)
Sets the item label generator for ALL series.

Parameters:
generator - the generator.

setSeriesItemLabelGenerator

public void setSeriesItemLabelGenerator(int series,
                                        CategoryItemLabelGenerator generator)
Sets the item label generator for a series.

Parameters:
series - the series index (zero-based).
generator - the generator.

getBaseItemLabelGenerator

public CategoryItemLabelGenerator getBaseItemLabelGenerator()
Returns the base item label generator.

Returns:
The base item label generator.

setBaseItemLabelGenerator

public void setBaseItemLabelGenerator(CategoryItemLabelGenerator generator)
Sets the base item label generator.

Parameters:
generator - the base item label generator.

getItemLabelAnchor

public ItemLabelAnchor getItemLabelAnchor(int series,
                                          int item)
Deprecated. Use getItemLabelPosition.

Returns the item label anchor for an item.

Parameters:
series - the series index (zero-based).
item - the item index (zero-based).
Returns:
The item label anchor.

getSeriesItemLabelAnchor

public ItemLabelAnchor getSeriesItemLabelAnchor(int series)
Deprecated. Use getSeriesItemLabelPosition.

Returns the item label anchor for a series.

Parameters:
series - the series index (zero-based).
Returns:
The anchor.

setItemLabelAnchor

public void setItemLabelAnchor(ItemLabelAnchor anchor)
Deprecated. Use setItemLabelPosition.

Sets the item label anchor for ALL series.

Parameters:
anchor - the anchor.

setSeriesItemLabelAnchor

public void setSeriesItemLabelAnchor(int series,
                                     ItemLabelAnchor anchor)
Deprecated. Use setSeriesItemLabelPosition.

Sets the item label anchor for a series.

Parameters:
series - the series index (zero-based).
anchor - the anchor.

getBaseItemLabelAnchor

public ItemLabelAnchor getBaseItemLabelAnchor()
Deprecated. Use getBaseItemLabelPosition.

Returns the base item label anchor.

Returns:
The item label anchor.

setBaseItemLabelAnchor

public void setBaseItemLabelAnchor(ItemLabelAnchor anchor)
Deprecated. Use setBaseItemLabelPosition.

Sets the base item label anchor.

Parameters:
anchor - the base item label anchor.

getItemLabelTextAnchor

public org.jfree.ui.TextAnchor getItemLabelTextAnchor(int series,
                                                      int item)
Deprecated. Use getItemLabelPosition.

Returns the item label text anchor for an item.

Parameters:
series - the series index (zero-based).
item - the item index (zero-based).
Returns:
The item label text anchor.

getSeriesItemLabelTextAnchor

public org.jfree.ui.TextAnchor getSeriesItemLabelTextAnchor(int series)
Deprecated. User getSeriesItemLabelPosition.

Returns the item label text anchor for a series.

Parameters:
series - the series index (zero-based).
Returns:
The anchor.

setItemLabelTextAnchor

public void setItemLabelTextAnchor(org.jfree.ui.TextAnchor anchor)
Deprecated. Use setItemLabelPosition.

Sets the item label text anchor for ALL series.

Parameters:
anchor - the anchor.

setSeriesItemLabelTextAnchor

public void setSeriesItemLabelTextAnchor(int series,
                                         org.jfree.ui.TextAnchor anchor)
Deprecated. Use setSeriesItemLabelPosition.

Sets the item label text anchor for a series.

Parameters:
series - the series index (zero-based).
anchor - the anchor.

getBaseItemLabelTextAnchor

public org.jfree.ui.TextAnchor getBaseItemLabelTextAnchor()
Deprecated. Use setBaseItemLabelPosition.

Returns the base item label text anchor.

Returns:
The item label text anchor.

setBaseItemLabelTextAnchor

public void setBaseItemLabelTextAnchor(org.jfree.ui.TextAnchor anchor)
Deprecated. Use setBaseItemLabelPosition.

Sets the base item label text anchor.

Parameters:
anchor - the item label text anchor.

getItemLabelFont

public java.awt.Font getItemLabelFont(int series,
                                      int item)
Returns the item label font for an item.

Parameters:
series - the series index (zero-based).
item - the item index (zero-based).
Returns:
The item label font.

getSeriesItemLabelFont

public java.awt.Font getSeriesItemLabelFont(int series)
Deprecated. Use getSeriesItemLabelPosition.

Returns the item label font for a series.

Parameters:
series - the series index (zero-based).
Returns:
The font.

setItemLabelFont

public void setItemLabelFont(java.awt.Font font)
Sets the item label font for ALL series.

Parameters:
font - the font.

setSeriesItemLabelFont

public void setSeriesItemLabelFont(int series,
                                   java.awt.Font font)
Sets the item label font for a series.

Parameters:
series - the series index (zero-based).
font - the font.

getBaseItemLabelFont

public java.awt.Font getBaseItemLabelFont()
Returns the base item label font.

Returns:
The item label font.

setBaseItemLabelFont

public void setBaseItemLabelFont(java.awt.Font font)
Sets the base item label font.

Parameters:
font - the item label font.

getPositiveItemLabelPosition

public ItemLabelPosition getPositiveItemLabelPosition(int row,
                                                      int column)
Returns the positive item label position.

Parameters:
row - the row.
column - the column.
Returns:
The position.

setPositiveItemLabelPosition

public void setPositiveItemLabelPosition(ItemLabelPosition position)
Sets the positive item label position for ALL series.

Parameters:
position - the position (null permitted).

getNegativeItemLabelPosition

public ItemLabelPosition getNegativeItemLabelPosition(int row,
                                                      int column)
Returns the negative item label position.

Parameters:
row - the row index.
column - the column index.
Returns:
The position.

setNegativeItemLabelPosition

public void setNegativeItemLabelPosition(ItemLabelPosition position)
Sets the negative item label position for ALL series.

Parameters:
position - the position.

getItemURLGenerator

public CategoryURLGenerator getItemURLGenerator(int series,
                                                int item)
Returns the URL generator for an item.

Parameters:
series - the series index (zero-based).
item - the item index (zero-based).
Returns:
The item URL generator.

getSeriesItemURLGenerator

public CategoryURLGenerator getSeriesItemURLGenerator(int series)
Returns the item URL generator for a series.

Parameters:
series - the series index (zero-based).
Returns:
The URL generator.

setItemURLGenerator

public void setItemURLGenerator(CategoryURLGenerator generator)
Sets the item URL generator for ALL series.

Parameters:
generator - the generator.

setSeriesItemURLGenerator

public void setSeriesItemURLGenerator(int series,
                                      CategoryURLGenerator generator)
Sets the item URL generator for a series.

Parameters:
series - the series index (zero-based).
generator - the generator.

getBaseItemURLGenerator

public CategoryURLGenerator getBaseItemURLGenerator()
Returns the base item URL generator.

Returns:
The item URL generator.

setBaseItemURLGenerator

public void setBaseItemURLGenerator(CategoryURLGenerator generator)
Sets the base item URL generator.

Parameters:
generator - the item URL generator.

getLegendItem

public LegendItem getLegendItem(int datasetIndex,
                                int series)
Returns a legend item for a series.

Parameters:
datasetIndex - the dataset index (zero-based).
series - the series (zero-based index).
Returns:
the legend item.

drawBackground

public void drawBackground(java.awt.Graphics2D g2,
                           CategoryPlot plot,
                           java.awt.geom.Rectangle2D dataArea)
Draws a background for the data area.

Parameters:
g2 - the graphics device.
plot - the plot.
dataArea - the data area.

drawOutline

public void drawOutline(java.awt.Graphics2D g2,
                        CategoryPlot plot,
                        java.awt.geom.Rectangle2D dataArea)
Draws an outline for the data area.

Parameters:
g2 - the graphics device.
plot - the plot.
dataArea - the data area.

drawItem

public void drawItem(java.awt.Graphics2D g2,
                     CategoryItemRendererState state,
                     java.awt.geom.Rectangle2D dataArea,
                     CategoryPlot plot,
                     CategoryAxis domainAxis,
                     ValueAxis rangeAxis,
                     CategoryDataset data,
                     int row,
                     int column)
Draws a single data item.

Parameters:
g2 - the graphics device.
state - state information for one chart.
dataArea - the data plot 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).

drawDomainGridline

public void drawDomainGridline(java.awt.Graphics2D g2,
                               CategoryPlot plot,
                               java.awt.geom.Rectangle2D dataArea,
                               double value)
Draws a grid line against the domain axis.

Parameters:
g2 - the graphics device.
plot - the plot.
dataArea - the area for plotting data (not yet adjusted for any 3D effect).
value - the value.

drawRangeGridline

public void drawRangeGridline(java.awt.Graphics2D g2,
                              CategoryPlot plot,
                              ValueAxis axis,
                              java.awt.geom.Rectangle2D dataArea,
                              double value)
Draws a grid line against the range axis.

Parameters:
g2 - the graphics device.
plot - the plot.
axis - the value axis.
dataArea - the area for plotting data (not yet adjusted for any 3D effect).
value - the value.

drawRangeMarker

public void drawRangeMarker(java.awt.Graphics2D g2,
                            CategoryPlot plot,
                            ValueAxis axis,
                            Marker marker,
                            java.awt.geom.Rectangle2D dataArea)
Draws a line (or some other marker) to indicate a particular value on the range axis.

Parameters:
g2 - the graphics device.
plot - the plot.
axis - the value axis.
marker - the marker.
dataArea - the area for plotting data (not including 3D effect).