| org.jfree.chart.renderer.xy.XYItemRenderer
All known Subclasses: org.jfree.chart.renderer.xy.XYBarRenderer, org.jfree.chart.renderer.xy.AbstractXYItemRenderer, org.jfree.chart.renderer.xy.XYStepRenderer, org.jfree.chart.renderer.xy.XYDotRenderer, org.jfree.chart.renderer.xy.XYBoxAndWhiskerRenderer, org.jfree.chart.renderer.xy.StandardXYItemRenderer, org.jfree.chart.renderer.xy.YIntervalRenderer, org.jfree.chart.renderer.xy.XYLineAndShapeRenderer, org.jfree.chart.renderer.xy.XYBubbleRenderer, org.jfree.chart.renderer.xy.XYBlockRenderer, org.jfree.chart.renderer.xy.HighLowRenderer, org.jfree.chart.renderer.xy.VectorRenderer, org.jfree.chart.renderer.xy.XYDifferenceRenderer, org.jfree.chart.renderer.xy.XYStepAreaRenderer, org.jfree.chart.renderer.xy.XYAreaRenderer, org.jfree.chart.renderer.xy.XYAreaRenderer2, org.jfree.chart.renderer.xy.CandlestickRenderer, org.jfree.chart.renderer.xy.WindItemRenderer,
XYItemRenderer | public interface XYItemRenderer extends LegendItemSource(Code) | | Interface for rendering the visual representation of a single (x, y) item on
an
XYPlot .
To support cloning charts, it is recommended that renderers implement both
the
Cloneable and PublicCloneable interfaces.
|
Method Summary | |
public void | addAnnotation(XYAnnotation annotation) Adds an annotation and sends a
RendererChangeEvent to all
registered listeners. | public void | addAnnotation(XYAnnotation annotation, Layer layer) Adds an annotation to the specified layer. | public void | addChangeListener(RendererChangeListener listener) Add a renderer change listener. | public void | drawAnnotations(Graphics2D g2, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info) Draws all the annotations for the specified layer. | public void | drawDomainGridLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value) Draws a grid line against the domain axis. | public void | drawDomainMarker(Graphics2D g2, XYPlot plot, ValueAxis axis, Marker marker, Rectangle2D dataArea) Draws the specified marker against the domain axis. | public void | drawItem(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass) Called for each item to be plotted. | public void | drawRangeLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke) Draws a grid line against the range axis. | public void | drawRangeMarker(Graphics2D g2, XYPlot plot, ValueAxis axis, Marker marker, Rectangle2D dataArea) Draws a horizontal line across the chart to represent a 'range marker'. | public void | fillDomainGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end) Fills a band between two values on the axis. | public void | fillRangeGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end) Fills a band between two values on the range axis. | public Range | findDomainBounds(XYDataset dataset) Returns the lower and upper bounds (range) of the x-values in the
specified dataset.
Parameters: dataset - the dataset (null permitted). | public Range | findRangeBounds(XYDataset dataset) Returns the lower and upper bounds (range) of the y-values in the
specified dataset. | public Font | getBaseItemLabelFont() Returns the base item label font (this is used when no other font
setting is available). | public XYItemLabelGenerator | getBaseItemLabelGenerator() Returns the base item label generator. | public Paint | getBaseItemLabelPaint() Returns the base item label paint. | public Boolean | getBaseItemLabelsVisible() Returns the base setting for item label visibility. | public ItemLabelPosition | getBaseNegativeItemLabelPosition() Returns the base item label position for negative values. | public Paint | getBaseOutlinePaint() Returns the base outline paint. | public Stroke | getBaseOutlineStroke() Returns the base outline stroke. | public Paint | getBasePaint() Returns the base paint. | public ItemLabelPosition | getBasePositiveItemLabelPosition() Returns the base positive item label position. | public boolean | getBaseSeriesVisible() Returns the base visibility for all series. | public boolean | getBaseSeriesVisibleInLegend() Returns the base visibility in the legend for all series. | public Shape | getBaseShape() Returns the base shape. | public Stroke | getBaseStroke() Returns the base stroke. | public XYToolTipGenerator | getBaseToolTipGenerator() Returns the base tool tip generator. | public Font | getItemLabelFont(int row, int column) Returns the font for an item label.
Parameters: row - the row index (zero-based). Parameters: column - the column index (zero-based). | public Font | getItemLabelFont() Returns the font used for all item labels. | public XYItemLabelGenerator | getItemLabelGenerator(int row, int column) Returns the item label generator for a data item.
Parameters: row - the row index (zero based). Parameters: column - the column index (zero based). | public Paint | getItemLabelPaint(int row, int column) Returns the paint used to draw an item label.
Parameters: row - the row index (zero based). Parameters: column - the column index (zero based). | public Paint | getItemLabelPaint() Returns the paint used for all item labels. | public Paint | getItemOutlinePaint(int row, int column) Returns the paint used to outline data items as they are drawn.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). | public Stroke | getItemOutlineStroke(int row, int column) Returns the stroke used to outline data items. | public Paint | getItemPaint(int row, int column) Returns the paint used to fill data items as they are drawn.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). | public Shape | getItemShape(int row, int column) Returns a shape used to represent a data item.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). | public Stroke | getItemStroke(int row, int column) Returns the stroke used to draw data items.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). | public boolean | getItemVisible(int series, int item) Returns a boolean that indicates whether or not the specified item
should be drawn (this is typically used to hide an entire series).
Parameters: series - the series index. Parameters: item - the item index. | public LegendItem | getLegendItem(int datasetIndex, int series) Returns a legend item for a series from a dataset.
Parameters: datasetIndex - the dataset index. Parameters: series - the series (zero-based index). | public XYSeriesLabelGenerator | getLegendItemLabelGenerator() Returns the legend item label generator. | public ItemLabelPosition | getNegativeItemLabelPosition(int row, int column) Returns the item label position for negative values. | public ItemLabelPosition | getNegativeItemLabelPosition() Returns the item label position for negative values in ALL series. | public int | getPassCount() Returns the number of passes through the data required by the renderer. | public XYPlot | getPlot() Returns the plot that this renderer has been assigned to. | public ItemLabelPosition | getPositiveItemLabelPosition(int row, int column) Returns the item label position for positive values.
Parameters: row - the row index (zero-based). Parameters: column - the column index (zero-based). | public ItemLabelPosition | getPositiveItemLabelPosition() Returns the item label position for positive values in ALL series. | public Font | getSeriesItemLabelFont(int series) Returns the font for all the item labels in a series.
Parameters: series - the series index (zero-based). | public XYItemLabelGenerator | getSeriesItemLabelGenerator(int series) Returns the item label generator for a series.
Parameters: series - the series index (zero based). | public Paint | getSeriesItemLabelPaint(int series) Returns the paint used to draw the item labels for a series.
Parameters: series - the series index (zero based). | public ItemLabelPosition | getSeriesNegativeItemLabelPosition(int series) Returns the item label position for all negative values in a series.
Parameters: series - the series index (zero-based). | public Paint | getSeriesOutlinePaint(int series) Returns the paint used to outline an item drawn by the renderer.
Parameters: series - the series (zero-based index). | public Stroke | getSeriesOutlineStroke(int series) Returns the stroke used to outline the items in a series.
Parameters: series - the series (zero-based index). | public Paint | getSeriesPaint(int series) Returns the paint used to fill an item drawn by the renderer.
Parameters: series - the series index (zero-based). | public ItemLabelPosition | getSeriesPositiveItemLabelPosition(int series) Returns the item label position for all positive values in a series.
Parameters: series - the series index (zero-based). | public Shape | getSeriesShape(int series) Returns a shape used to represent the items in a series.
Parameters: series - the series (zero-based index). | public Stroke | getSeriesStroke(int series) Returns the stroke used to draw the items in a series.
Parameters: series - the series (zero-based index). | public XYToolTipGenerator | getSeriesToolTipGenerator(int series) Returns the tool tip generator for a series.
Parameters: series - the series index (zero based). | public Boolean | getSeriesVisible() Returns the flag that controls the visibility of ALL series. | public Boolean | getSeriesVisible(int series) Returns the flag that controls whether a series is visible.
Parameters: series - the series index (zero-based). | public Boolean | getSeriesVisibleInLegend() Returns the flag that controls the visibility of ALL series in the
legend. | public Boolean | getSeriesVisibleInLegend(int series) Returns the flag that controls whether a series is visible in the
legend. | public XYToolTipGenerator | getToolTipGenerator(int row, int column) Returns the tool tip generator for a data item.
Parameters: row - the row index (zero based). Parameters: column - the column index (zero based). | public XYURLGenerator | getURLGenerator() Returns the URL generator for HTML image maps. | public XYItemRendererState | initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset dataset, PlotRenderingInfo info) Initialises the renderer then returns the number of 'passes' through the
data that the renderer will require (usually just one). | public boolean | isItemLabelVisible(int row, int column) Returns true if an item label is visible, and
false otherwise.
Parameters: row - the row index (zero-based). Parameters: column - the column index (zero-based). | public boolean | isSeriesItemLabelsVisible(int series) Returns true if the item labels for a series are visible,
and false otherwise.
Parameters: series - the series index (zero-based). | public boolean | isSeriesVisible(int series) Returns a boolean that indicates whether or not the specified series
should be drawn (this is typically used to hide an entire series).
Parameters: series - the series index. | public boolean | isSeriesVisibleInLegend(int series) Returns true if the series should be shown in the legend,
and false otherwise.
Parameters: series - the series index. | public boolean | removeAnnotation(XYAnnotation annotation) Removes the specified annotation and sends a
RendererChangeEvent to all registered listeners.
Parameters: annotation - the annotation to remove (null not permitted). | public void | removeAnnotations() Removes all annotations and sends a
RendererChangeEvent to all registered listeners. | public void | removeChangeListener(RendererChangeListener listener) Removes a change listener. | public void | setBaseItemLabelFont(Font font) Sets the base item label font and sends a
RendererChangeEvent
to all registered listeners. | public void | setBaseItemLabelGenerator(XYItemLabelGenerator generator) Sets the base item label generator and sends a
RendererChangeEvent to all registered listeners. | public void | setBaseItemLabelPaint(Paint paint) Sets the base item label paint and sends a
RendererChangeEvent
to all registered listeners. | public void | setBaseItemLabelsVisible(boolean visible) Sets the base flag that controls whether or not item labels are visible. | public void | setBaseItemLabelsVisible(Boolean visible) Sets the base setting for item label visibility. | public void | setBaseItemLabelsVisible(Boolean visible, boolean notify) Sets the base visibility for item labels and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setBaseNegativeItemLabelPosition(ItemLabelPosition position) Sets the base item label position for negative values and sends a
RendererChangeEvent to all registered listeners. | public void | setBaseNegativeItemLabelPosition(ItemLabelPosition position, boolean notify) Sets the base negative item label position and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setBaseOutlinePaint(Paint paint) Sets the base outline paint and sends a
RendererChangeEvent to
all registered listeners. | public void | setBaseOutlineStroke(Stroke stroke) Sets the base outline stroke and sends a
RendererChangeEvent to
all registered listeners. | public void | setBasePaint(Paint paint) Sets the base paint and sends a
RendererChangeEvent to all
registered listeners. | public void | setBasePositiveItemLabelPosition(ItemLabelPosition position) Sets the base positive item label position. | public void | setBasePositiveItemLabelPosition(ItemLabelPosition position, boolean notify) Sets the base positive item label position and, if requested, sends a
RendererChangeEvent to all registered listeners. | public void | setBaseSeriesVisible(boolean visible) Sets the base visibility and sends a
RendererChangeEvent to all
registered listeners. | public void | setBaseSeriesVisible(boolean visible, boolean notify) Sets the base visibility and, if requested, sends
a
RendererChangeEvent to all registered listeners. | public void | setBaseSeriesVisibleInLegend(boolean visible) Sets the base visibility in the legend and sends a
RendererChangeEvent to all registered listeners. | public void | setBaseSeriesVisibleInLegend(boolean visible, boolean notify) Sets the base visibility in the legend and, if requested, sends
a
RendererChangeEvent to all registered listeners. | public void | setBaseShape(Shape shape) Sets the base shape and sends a
RendererChangeEvent to all
registered listeners. | public void | setBaseStroke(Stroke stroke) Sets the base stroke. | public void | setBaseToolTipGenerator(XYToolTipGenerator generator) Sets the base tool tip generator and sends a
RendererChangeEvent to all registered listeners. | public void | setItemLabelFont(Font font) Sets the item label font for ALL series and sends a
RendererChangeEvent to all registered listeners. | public void | setItemLabelGenerator(XYItemLabelGenerator generator) Sets the item label generator for ALL series and sends a
RendererChangeEvent to all registered listeners. | public void | setItemLabelPaint(Paint paint) Sets the item label paint for ALL series and sends a
RendererChangeEvent to all registered listeners. | public void | setItemLabelsVisible(boolean visible) Sets a flag that controls whether or not the item labels for ALL series
are visible. | public void | setItemLabelsVisible(Boolean visible) Sets a flag that controls whether or not the item labels for ALL series
are visible. | public void | setItemLabelsVisible(Boolean visible, boolean notify) Sets the visibility of item labels for ALL series and, if requested,
sends a
RendererChangeEvent to all registered listeners. | public void | setLegendItemLabelGenerator(XYSeriesLabelGenerator generator) Sets the legend item label generator. | public void | setNegativeItemLabelPosition(ItemLabelPosition position) Sets the item label position for negative values in ALL series, and
sends a
RendererChangeEvent to all registered listeners. | public void | setNegativeItemLabelPosition(ItemLabelPosition position, boolean notify) Sets the item label position for negative values in ALL series and (if
requested) sends a
RendererChangeEvent to all registered
listeners. | public void | setOutlinePaint(Paint paint) Sets the outline paint for ALL series (optional). | public void | setOutlineStroke(Stroke stroke) Sets the outline stroke for ALL series and sends a
RendererChangeEvent to all registered listeners. | public void | setPaint(Paint paint) Sets the paint to be used for ALL series, and sends a
RendererChangeEvent to all registered listeners. | public void | setPlot(XYPlot plot) Sets the plot that this renderer is assigned to. | public void | setPositiveItemLabelPosition(ItemLabelPosition position) Sets the item label position for positive values in ALL series, and
sends a
RendererChangeEvent to all registered listeners. | public void | setPositiveItemLabelPosition(ItemLabelPosition position, boolean notify) Sets the positive item label position for ALL series and (if requested)
sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesItemLabelFont(int series, Font font) Sets the item label font for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesItemLabelGenerator(int series, XYItemLabelGenerator generator) Sets the item label generator for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesItemLabelPaint(int series, Paint paint) Sets the item label paint for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesItemLabelsVisible(int series, boolean visible) Sets a flag that controls the visibility of the item labels for a series. | public void | setSeriesItemLabelsVisible(int series, Boolean visible) Sets a flag that controls the visibility of the item labels for a series. | public void | setSeriesItemLabelsVisible(int series, Boolean visible, boolean notify) Sets the visibility of item labels for a series and, if requested,
sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesNegativeItemLabelPosition(int series, ItemLabelPosition position) Sets the item label position for negative values in a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesNegativeItemLabelPosition(int series, ItemLabelPosition position, boolean notify) Sets the item label position for negative values in a series and (if
requested) sends a
RendererChangeEvent to all registered
listeners. | public void | setSeriesOutlinePaint(int series, Paint paint) Sets the paint used for a series outline and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesOutlineStroke(int series, Stroke stroke) Sets the outline stroke used for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesPaint(int series, Paint paint) Sets the paint used for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesPositiveItemLabelPosition(int series, ItemLabelPosition position) Sets the item label position for all positive values in a series and
sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesPositiveItemLabelPosition(int series, ItemLabelPosition position, boolean notify) Sets the item label position for all positive values in a series and (if
requested) sends a
RendererChangeEvent to all registered
listeners. | public void | setSeriesShape(int series, Shape shape) Sets the shape used for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesStroke(int series, Stroke stroke) Sets the stroke used for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesToolTipGenerator(int series, XYToolTipGenerator generator) Sets the tool tip generator for a series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesVisible(Boolean visible) Sets the flag that controls the visibility of ALL series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesVisible(Boolean visible, boolean notify) Sets the flag that controls the visibility of ALL series and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesVisible(int series, Boolean visible) Sets the flag that controls whether a series is visible and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesVisible(int series, Boolean visible, boolean notify) Sets the flag that controls whether a series is visible and, if
requested, sends a
RendererChangeEvent to all registered
listeners. | public void | setSeriesVisibleInLegend(Boolean visible) Sets the flag that controls the visibility of ALL series in the legend
and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesVisibleInLegend(Boolean visible, boolean notify) Sets the flag that controls the visibility of ALL series in the legend
and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesVisibleInLegend(int series, Boolean visible) Sets the flag that controls whether a series is visible in the legend
and sends a
RendererChangeEvent to all registered listeners. | public void | setSeriesVisibleInLegend(int series, Boolean visible, boolean notify) Sets the flag that controls whether a series is visible in the legend
and, if requested, sends a
RendererChangeEvent to all registered
listeners. | public void | setShape(Shape shape) Sets the shape for ALL series (optional) and sends a
RendererChangeEvent to all registered listeners. | public void | setStroke(Stroke stroke) Sets the stroke for ALL series and sends a
RendererChangeEvent
to all registered listeners. | public void | setToolTipGenerator(XYToolTipGenerator generator) Sets the tool tip generator for ALL series and sends a
RendererChangeEvent to all registered listeners. | public void | setURLGenerator(XYURLGenerator urlGenerator) Sets the URL generator for HTML image maps. |
addAnnotation | public void addAnnotation(XYAnnotation annotation)(Code) | | Adds an annotation and sends a
RendererChangeEvent to all
registered listeners. The annotation is added to the foreground
layer.
Parameters: annotation - the annotation (null not permitted). |
addAnnotation | public void addAnnotation(XYAnnotation annotation, Layer layer)(Code) | | Adds an annotation to the specified layer.
Parameters: annotation - the annotation (null not permitted). Parameters: layer - the layer (null not permitted). |
addChangeListener | public void addChangeListener(RendererChangeListener listener)(Code) | | Add a renderer change listener.
Parameters: listener - the listener. |
drawAnnotations | public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info)(Code) | | Draws all the annotations for the specified layer.
Parameters: g2 - the graphics device. Parameters: dataArea - the data area. Parameters: domainAxis - the domain axis. Parameters: rangeAxis - the range axis. Parameters: layer - the layer. Parameters: info - the plot rendering info. |
drawDomainGridLine | public void drawDomainGridLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value)(Code) | | Draws a grid line against the domain axis.
Parameters: g2 - the graphics device. Parameters: plot - the plot. Parameters: axis - the value axis. Parameters: dataArea - the area for plotting data (not yet adjusted for any 3D effect). Parameters: value - the value. |
drawDomainMarker | public void drawDomainMarker(Graphics2D g2, XYPlot plot, ValueAxis axis, Marker marker, Rectangle2D dataArea)(Code) | | Draws the specified marker against the domain axis.
Parameters: g2 - the graphics device. Parameters: plot - the plot. Parameters: axis - the value axis. Parameters: marker - the marker. Parameters: dataArea - the axis data area. |
drawItem | public void drawItem(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass)(Code) | | Called for each item to be plotted.
The
XYPlot can make multiple passes through the dataset,
depending on the value returned by the renderer's initialise() method.
Parameters: g2 - the graphics device. Parameters: state - the renderer state. Parameters: dataArea - the area within which the data is being rendered. Parameters: info - collects drawing info. Parameters: plot - the plot (can be used to obtain standard color information etc). Parameters: domainAxis - the domain axis. Parameters: rangeAxis - the range axis. Parameters: dataset - the dataset. Parameters: series - the series index (zero-based). Parameters: item - the item index (zero-based). Parameters: crosshairState - crosshair information for the plot (null permitted). Parameters: pass - the pass index. |
drawRangeLine | public void drawRangeLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)(Code) | | Draws a grid line against the range axis.
Parameters: g2 - the graphics device. Parameters: plot - the plot. Parameters: axis - the value axis. Parameters: dataArea - the area for plotting data (not yet adjusted for any 3D effect). Parameters: value - the value. Parameters: paint - the paint (null not permitted). Parameters: stroke - the stroke (null not permitted). |
drawRangeMarker | public void drawRangeMarker(Graphics2D g2, XYPlot plot, ValueAxis axis, Marker marker, Rectangle2D dataArea)(Code) | | Draws a horizontal line across the chart to represent a 'range marker'.
Parameters: g2 - the graphics device. Parameters: plot - the plot. Parameters: axis - the value axis. Parameters: marker - the marker line. Parameters: dataArea - the axis data area. |
fillDomainGridBand | public void fillDomainGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)(Code) | | Fills a band between two values on the axis. This can be used to color
bands between the grid lines.
Parameters: g2 - the graphics device. Parameters: plot - the plot. Parameters: axis - the domain axis. Parameters: dataArea - the data area. Parameters: start - the start value. Parameters: end - the end value. |
fillRangeGridBand | public void fillRangeGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)(Code) | | Fills a band between two values on the range axis. This can be used to
color bands between the grid lines.
Parameters: g2 - the graphics device. Parameters: plot - the plot. Parameters: axis - the range axis. Parameters: dataArea - the data area. Parameters: start - the start value. Parameters: end - the end value. |
findDomainBounds | public Range findDomainBounds(XYDataset dataset)(Code) | | Returns the lower and upper bounds (range) of the x-values in the
specified dataset.
Parameters: dataset - the dataset (null permitted). The range. |
findRangeBounds | public Range findRangeBounds(XYDataset dataset)(Code) | | Returns the lower and upper bounds (range) of the y-values in the
specified dataset. The implementation of this method will take
into account the presentation used by the renderers (for example,
a renderer that "stacks" values will return a bigger range than
a renderer that doesn't.
Parameters: dataset - the dataset (null permitted). The range (or null if the dataset is null or empty). |
getBaseItemLabelFont | public Font getBaseItemLabelFont()(Code) | | Returns the base item label font (this is used when no other font
setting is available).
The font (never null). |
getBaseItemLabelGenerator | public XYItemLabelGenerator getBaseItemLabelGenerator()(Code) | | Returns the base item label generator.
The generator (possibly null ). |
getBaseItemLabelPaint | public Paint getBaseItemLabelPaint()(Code) | | Returns the base item label paint.
The paint (never null). |
getBaseItemLabelsVisible | public Boolean getBaseItemLabelsVisible()(Code) | | Returns the base setting for item label visibility.
A flag (possibly null ). |
getBaseNegativeItemLabelPosition | public ItemLabelPosition getBaseNegativeItemLabelPosition()(Code) | | Returns the base item label position for negative values.
The position (never null ). |
getBaseOutlinePaint | public Paint getBaseOutlinePaint()(Code) | | Returns the base outline paint.
The paint (never null ). |
getBaseOutlineStroke | public Stroke getBaseOutlineStroke()(Code) | | Returns the base outline stroke.
The stroke (never null ). |
getBasePaint | public Paint getBasePaint()(Code) | | Returns the base paint.
The base paint (never null ). |
getBasePositiveItemLabelPosition | public ItemLabelPosition getBasePositiveItemLabelPosition()(Code) | | Returns the base positive item label position.
The position (never null ). |
getBaseSeriesVisible | public boolean getBaseSeriesVisible()(Code) | | Returns the base visibility for all series.
The base visibility. |
getBaseSeriesVisibleInLegend | public boolean getBaseSeriesVisibleInLegend()(Code) | | Returns the base visibility in the legend for all series.
The base visibility. |
getBaseShape | public Shape getBaseShape()(Code) | | Returns the base shape.
The shape (never null ). |
getBaseStroke | public Stroke getBaseStroke()(Code) | | Returns the base stroke.
The base stroke (never null ). |
getBaseToolTipGenerator | public XYToolTipGenerator getBaseToolTipGenerator()(Code) | | Returns the base tool tip generator.
The generator (possibly null ). |
getItemLabelFont | public Font getItemLabelFont(int row, int column)(Code) | | Returns the font for an item label.
Parameters: row - the row index (zero-based). Parameters: column - the column index (zero-based). The font (never null ). |
getItemLabelGenerator | public XYItemLabelGenerator getItemLabelGenerator(int row, int column)(Code) | | Returns the item label generator for a data item.
Parameters: row - the row index (zero based). Parameters: column - the column index (zero based). The generator (possibly null ). |
getItemLabelPaint | public Paint getItemLabelPaint(int row, int column)(Code) | | Returns the paint used to draw an item label.
Parameters: row - the row index (zero based). Parameters: column - the column index (zero based). The paint (never null ). |
getItemOutlinePaint | public Paint getItemOutlinePaint(int row, int column)(Code) | | Returns the paint used to outline data items as they are drawn.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). The paint (never null ). |
getItemOutlineStroke | public Stroke getItemOutlineStroke(int row, int column)(Code) | | Returns the stroke used to outline data items. The default
implementation passes control to the lookupSeriesOutlineStroke method.
You can override this method if you require different behaviour.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). The stroke (never null ). |
getItemPaint | public Paint getItemPaint(int row, int column)(Code) | | Returns the paint used to fill data items as they are drawn.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). The paint (never null ). |
getItemShape | public Shape getItemShape(int row, int column)(Code) | | Returns a shape used to represent a data item.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). The shape (never null ). |
getItemStroke | public Stroke getItemStroke(int row, int column)(Code) | | Returns the stroke used to draw data items.
Parameters: row - the row (or series) index (zero-based). Parameters: column - the column (or category) index (zero-based). The stroke (never null ). |
getItemVisible | public boolean getItemVisible(int series, int item)(Code) | | Returns a boolean that indicates whether or not the specified item
should be drawn (this is typically used to hide an entire series).
Parameters: series - the series index. Parameters: item - the item index. A boolean. |
getLegendItem | public LegendItem getLegendItem(int datasetIndex, int series)(Code) | | Returns a legend item for a series from a dataset.
Parameters: datasetIndex - the dataset index. Parameters: series - the series (zero-based index). The legend item (possibly null ). |
getLegendItemLabelGenerator | public XYSeriesLabelGenerator getLegendItemLabelGenerator()(Code) | | Returns the legend item label generator.
The legend item label generator (never null ). |
getNegativeItemLabelPosition | public ItemLabelPosition getNegativeItemLabelPosition(int row, int column)(Code) | | Returns the item label position for negative values. This method can be
overridden to provide customisation of the item label position for
individual data items.
Parameters: row - the row index (zero-based). Parameters: column - the column (zero-based). The item label position (never null ). |
getPassCount | public int getPassCount()(Code) | | Returns the number of passes through the data required by the renderer.
The pass count. |
getPlot | public XYPlot getPlot()(Code) | | Returns the plot that this renderer has been assigned to.
The plot. |
getPositiveItemLabelPosition | public ItemLabelPosition getPositiveItemLabelPosition(int row, int column)(Code) | | Returns the item label position for positive values.
Parameters: row - the row index (zero-based). Parameters: column - the column index (zero-based). The item label position (never null ). |
getSeriesItemLabelFont | public Font getSeriesItemLabelFont(int series)(Code) | | Returns the font for all the item labels in a series.
Parameters: series - the series index (zero-based). The font (possibly null ). |
getSeriesItemLabelGenerator | public XYItemLabelGenerator getSeriesItemLabelGenerator(int series)(Code) | | Returns the item label generator for a series.
Parameters: series - the series index (zero based). The generator (possibly null ). |
getSeriesItemLabelPaint | public Paint getSeriesItemLabelPaint(int series)(Code) | | Returns the paint used to draw the item labels for a series.
Parameters: series - the series index (zero based). The paint (possibly null). |
getSeriesNegativeItemLabelPosition | public ItemLabelPosition getSeriesNegativeItemLabelPosition(int series)(Code) | | Returns the item label position for all negative values in a series.
Parameters: series - the series index (zero-based). The item label position (never null ). |
getSeriesOutlinePaint | public Paint getSeriesOutlinePaint(int series)(Code) | | Returns the paint used to outline an item drawn by the renderer.
Parameters: series - the series (zero-based index). The paint (possibly null ). |
getSeriesOutlineStroke | public Stroke getSeriesOutlineStroke(int series)(Code) | | Returns the stroke used to outline the items in a series.
Parameters: series - the series (zero-based index). The stroke (possibly null ). |
getSeriesPaint | public Paint getSeriesPaint(int series)(Code) | | Returns the paint used to fill an item drawn by the renderer.
Parameters: series - the series index (zero-based). The paint (possibly null ). |
getSeriesPositiveItemLabelPosition | public ItemLabelPosition getSeriesPositiveItemLabelPosition(int series)(Code) | | Returns the item label position for all positive values in a series.
Parameters: series - the series index (zero-based). The item label position (never null ). |
getSeriesShape | public Shape getSeriesShape(int series)(Code) | | Returns a shape used to represent the items in a series.
Parameters: series - the series (zero-based index). The shape (possibly null ). |
getSeriesStroke | public Stroke getSeriesStroke(int series)(Code) | | Returns the stroke used to draw the items in a series.
Parameters: series - the series (zero-based index). The stroke (possibly null ). |
getSeriesToolTipGenerator | public XYToolTipGenerator getSeriesToolTipGenerator(int series)(Code) | | Returns the tool tip generator for a series.
Parameters: series - the series index (zero based). The generator (possibly null ). |
getSeriesVisible | public Boolean getSeriesVisible(int series)(Code) | | Returns the flag that controls whether a series is visible.
Parameters: series - the series index (zero-based). The flag (possibly null ). |
getSeriesVisibleInLegend | public Boolean getSeriesVisibleInLegend(int series)(Code) | | Returns the flag that controls whether a series is visible in the
legend. This method returns only the "per series" settings - to
incorporate the override and base settings as well, you need to use the
XYItemRenderer.isSeriesVisibleInLegend(int) method.
Parameters: series - the series index (zero-based). The flag (possibly null ). |
getToolTipGenerator | public XYToolTipGenerator getToolTipGenerator(int row, int column)(Code) | | Returns the tool tip generator for a data item.
Parameters: row - the row index (zero based). Parameters: column - the column index (zero based). The generator (possibly null ). |
getURLGenerator | public XYURLGenerator getURLGenerator()(Code) | | Returns the URL generator for HTML image maps.
The URL generator (possibly null). |
initialise | public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset dataset, PlotRenderingInfo info)(Code) | | Initialises the renderer then returns the number of 'passes' through the
data that the renderer will require (usually just one). 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. Parameters: dataArea - the area inside the axes. Parameters: plot - the plot. Parameters: dataset - the dataset. Parameters: info - an optional info collection object to return data back to the caller. The number of passes the renderer requires. |
isItemLabelVisible | public boolean isItemLabelVisible(int row, int column)(Code) | | Returns true if an item label is visible, and
false otherwise.
Parameters: row - the row index (zero-based). Parameters: column - the column index (zero-based). A boolean. |
isSeriesItemLabelsVisible | public boolean isSeriesItemLabelsVisible(int series)(Code) | | Returns true if the item labels for a series are visible,
and false otherwise.
Parameters: series - the series index (zero-based). A boolean. |
isSeriesVisible | public boolean isSeriesVisible(int series)(Code) | | Returns a boolean that indicates whether or not the specified series
should be drawn (this is typically used to hide an entire series).
Parameters: series - the series index. A boolean. |
isSeriesVisibleInLegend | public boolean isSeriesVisibleInLegend(int series)(Code) | | Returns true if the series should be shown in the legend,
and false otherwise.
Parameters: series - the series index. A boolean. |
removeAnnotation | public boolean removeAnnotation(XYAnnotation annotation)(Code) | | Removes the specified annotation and sends a
RendererChangeEvent to all registered listeners.
Parameters: annotation - the annotation to remove (null not permitted). A boolean to indicate whether or not the annotation was successfully removed. |
removeAnnotations | public void removeAnnotations()(Code) | | Removes all annotations and sends a
RendererChangeEvent to all registered listeners.
|
removeChangeListener | public void removeChangeListener(RendererChangeListener listener)(Code) | | Removes a change listener.
Parameters: listener - the listener. |
setBaseItemLabelFont | public void setBaseItemLabelFont(Font font)(Code) | | Sets the base item label font and sends a
RendererChangeEvent
to all registered listeners.
Parameters: font - the font (null not permitted). |
setBaseItemLabelGenerator | public void setBaseItemLabelGenerator(XYItemLabelGenerator generator)(Code) | | Sets the base item label generator and sends a
RendererChangeEvent to all registered listeners.
Parameters: generator - the generator (null permitted). |
setBaseItemLabelPaint | public void setBaseItemLabelPaint(Paint paint)(Code) | | Sets the base item label paint and sends a
RendererChangeEvent
to all registered listeners.
Parameters: paint - the paint (null not permitted). |
setBaseItemLabelsVisible | public void setBaseItemLabelsVisible(boolean visible)(Code) | | Sets the base flag that controls whether or not item labels are visible.
Parameters: visible - the flag. |
setBaseItemLabelsVisible | public void setBaseItemLabelsVisible(Boolean visible)(Code) | | Sets the base setting for item label visibility.
Parameters: visible - the flag (null permitted). |
setBaseItemLabelsVisible | public void setBaseItemLabelsVisible(Boolean visible, boolean notify)(Code) | | Sets the base visibility for item labels and, if requested, sends a
RendererChangeEvent to all registered listeners.
Parameters: visible - the visibility flag. Parameters: notify - a flag that controls whether or not listeners arenotified. |
setBaseNegativeItemLabelPosition | public void setBaseNegativeItemLabelPosition(ItemLabelPosition position)(Code) | | Sets the base item label position for negative values and sends a
RendererChangeEvent to all registered listeners.
Parameters: position - the position (null not permitted). |
setBaseNegativeItemLabelPosition | public void setBaseNegativeItemLabelPosition(ItemLabelPosition position, boolean notify)(Code) | | Sets the base negative item label position and, if requested, sends a
RendererChangeEvent to all registered listeners.
Parameters: position - the position (null not permitted). Parameters: notify - notify registered listeners? |
setBaseOutlinePaint | public void setBaseOutlinePaint(Paint paint)(Code) | | Sets the base outline paint and sends a
RendererChangeEvent to
all registered listeners.
Parameters: paint - the paint (null not permitted). |
setBaseOutlineStroke | public void setBaseOutlineStroke(Stroke stroke)(Code) | | Sets the base outline stroke and sends a
RendererChangeEvent to
all registered listeners.
Parameters: stroke - the stroke (null not permitted). |
setBasePaint | public void setBasePaint(Paint paint)(Code) | | Sets the base paint and sends a
RendererChangeEvent to all
registered listeners.
Parameters: paint - the paint (null not permitted). |
setBasePositiveItemLabelPosition | public void setBasePositiveItemLabelPosition(ItemLabelPosition position)(Code) | | Sets the base positive item label position.
Parameters: position - the position (null not permitted). |
setBasePositiveItemLabelPosition | public void setBasePositiveItemLabelPosition(ItemLabelPosition position, boolean notify)(Code) | | Sets the base positive item label position and, if requested, sends a
RendererChangeEvent to all registered listeners.
Parameters: position - the position (null not permitted). Parameters: notify - notify registered listeners? |
setBaseSeriesVisible | public void setBaseSeriesVisible(boolean visible)(Code) | | Sets the base visibility and sends a
RendererChangeEvent to all
registered listeners.
Parameters: visible - the flag. |
setBaseSeriesVisible | public void setBaseSeriesVisible(boolean visible, boolean notify)(Code) | | Sets the base visibility and, if requested, sends
a
RendererChangeEvent to all registered listeners.
Parameters: visible - the visibility. Parameters: notify - notify listeners? |
setBaseSeriesVisibleInLegend | public void setBaseSeriesVisibleInLegend(boolean visible)(Code) | | Sets the base visibility in the legend and sends a
RendererChangeEvent to all registered listeners.
Parameters: visible - the flag. |
setBaseSeriesVisibleInLegend | public void setBaseSeriesVisibleInLegend(boolean visible, boolean notify)(Code) | | Sets the base visibility in the legend and, if requested, sends
a
RendererChangeEvent to all registered listeners.
Parameters: visible - the visibility. Parameters: notify - notify listeners? |
setBaseShape | public void setBaseShape(Shape shape)(Code) | | Sets the base shape and sends a
RendererChangeEvent to all
registered listeners.
Parameters: shape - the shape (null not permitted). |
setBaseStroke | public void setBaseStroke(Stroke stroke)(Code) | | Sets the base stroke.
Parameters: stroke - the stroke (null not permitted). |
setBaseToolTipGenerator | public void setBaseToolTipGenerator(XYToolTipGenerator generator)(Code) | | Sets the base tool tip generator and sends a
RendererChangeEvent to all registered listeners.
Parameters: generator - the generator (null permitted). |
setLegendItemLabelGenerator | public void setLegendItemLabelGenerator(XYSeriesLabelGenerator generator)(Code) | | Sets the legend item label generator.
Parameters: generator - the generator (null not permitted). |
setPlot | public void setPlot(XYPlot plot)(Code) | | Sets the plot that this renderer is assigned to. This method will be
called by the plot class...you do not need to call it yourself.
Parameters: plot - the plot. |
setSeriesItemLabelFont | public void setSeriesItemLabelFont(int series, Font font)(Code) | | Sets the item label font for a series and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: font - the font (null permitted). |
setSeriesItemLabelGenerator | public void setSeriesItemLabelGenerator(int series, XYItemLabelGenerator generator)(Code) | | Sets the item label generator for a series and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero based). Parameters: generator - the generator (null permitted). |
setSeriesItemLabelPaint | public void setSeriesItemLabelPaint(int series, Paint paint)(Code) | | Sets the item label paint for a series and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series (zero based index). Parameters: paint - the paint (null permitted). |
setSeriesItemLabelsVisible | public void setSeriesItemLabelsVisible(int series, boolean visible)(Code) | | Sets a flag that controls the visibility of the item labels for a series.
Parameters: series - the series index (zero-based). Parameters: visible - the flag. |
setSeriesItemLabelsVisible | public void setSeriesItemLabelsVisible(int series, Boolean visible)(Code) | | Sets a flag that controls the visibility of the item labels for a series.
Parameters: series - the series index (zero-based). Parameters: visible - the flag (null permitted). |
setSeriesItemLabelsVisible | public void setSeriesItemLabelsVisible(int series, Boolean visible, boolean notify)(Code) | | Sets the visibility of item labels for a series and, if requested,
sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: visible - the visible flag. Parameters: notify - a flag that controls whether or not listeners are notified. |
setSeriesNegativeItemLabelPosition | public void setSeriesNegativeItemLabelPosition(int series, ItemLabelPosition position)(Code) | | Sets the item label position for negative values in a series and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: position - the position (null permitted). |
setSeriesNegativeItemLabelPosition | public void setSeriesNegativeItemLabelPosition(int series, ItemLabelPosition position, boolean notify)(Code) | | Sets the item label position for negative values in a series and (if
requested) sends a
RendererChangeEvent to all registered
listeners.
Parameters: series - the series index (zero-based). Parameters: position - the position (null permitted). Parameters: notify - notify registered listeners? |
setSeriesOutlinePaint | public void setSeriesOutlinePaint(int series, Paint paint)(Code) | | Sets the paint used for a series outline and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: paint - the paint (null permitted). |
setSeriesOutlineStroke | public void setSeriesOutlineStroke(int series, Stroke stroke)(Code) | | Sets the outline stroke used for a series and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: stroke - the stroke (null permitted). |
setSeriesPaint | public void setSeriesPaint(int series, Paint paint)(Code) | | Sets the paint used for a series and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: paint - the paint (null permitted). |
setSeriesPositiveItemLabelPosition | public void setSeriesPositiveItemLabelPosition(int series, ItemLabelPosition position)(Code) | | Sets the item label position for all positive values in a series and
sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: position - the position (null permitted). |
setSeriesPositiveItemLabelPosition | public void setSeriesPositiveItemLabelPosition(int series, ItemLabelPosition position, boolean notify)(Code) | | Sets the item label position for all positive values in a series and (if
requested) sends a
RendererChangeEvent to all registered
listeners.
Parameters: series - the series index (zero-based). Parameters: position - the position (null permitted). Parameters: notify - notify registered listeners? |
setSeriesShape | public void setSeriesShape(int series, Shape shape)(Code) | | Sets the shape used for a series and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: shape - the shape (null permitted). |
setSeriesStroke | public void setSeriesStroke(int series, Stroke stroke)(Code) | | Sets the stroke used for a series and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: stroke - the stroke (null permitted). |
setSeriesToolTipGenerator | public void setSeriesToolTipGenerator(int series, XYToolTipGenerator generator)(Code) | | Sets the tool tip generator for a series and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero based). Parameters: generator - the generator (null permitted). |
setSeriesVisible | public void setSeriesVisible(int series, Boolean visible)(Code) | | Sets the flag that controls whether a series is visible and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: visible - the flag (null permitted). |
setSeriesVisible | public void setSeriesVisible(int series, Boolean visible, boolean notify)(Code) | | Sets the flag that controls whether a series is visible and, if
requested, sends a
RendererChangeEvent to all registered
listeners.
Parameters: series - the series index. Parameters: visible - the flag (null permitted). Parameters: notify - notify listeners? |
setSeriesVisibleInLegend | public void setSeriesVisibleInLegend(int series, Boolean visible)(Code) | | Sets the flag that controls whether a series is visible in the legend
and sends a
RendererChangeEvent to all registered listeners.
Parameters: series - the series index (zero-based). Parameters: visible - the flag (null permitted). |
setSeriesVisibleInLegend | public void setSeriesVisibleInLegend(int series, Boolean visible, boolean notify)(Code) | | Sets the flag that controls whether a series is visible in the legend
and, if requested, sends a
RendererChangeEvent to all registered
listeners.
Parameters: series - the series index. Parameters: visible - the flag (null permitted). Parameters: notify - notify listeners? |
setURLGenerator | public void setURLGenerator(XYURLGenerator urlGenerator)(Code) | | Sets the URL generator for HTML image maps.
Parameters: urlGenerator - the URL generator (null permitted). |
|
|