public abstract class AbstractXYItemRenderer extends AbstractRenderer implements XYItemRenderer, AnnotationChangeListener, Cloneable, Serializable
XYItemRenderer
implementations.DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, DEFAULT_PAINT, DEFAULT_SHAPE, DEFAULT_STROKE, DEFAULT_VALUE_LABEL_FONT, DEFAULT_VALUE_LABEL_PAINT, ZERO
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(XYAnnotation annotation)
Adds an annotation and sends a
RendererChangeEvent to all
registered listeners. |
void |
addAnnotation(XYAnnotation annotation,
org.jfree.ui.Layer layer)
Adds an annotation to the specified layer and sends a
RendererChangeEvent to all registered listeners. |
void |
annotationChanged(AnnotationChangeEvent event)
Receives notification of a change to an
Annotation added to
this renderer. |
void |
drawAnnotations(Graphics2D g2,
Rectangle2D dataArea,
ValueAxis domainAxis,
ValueAxis rangeAxis,
org.jfree.ui.Layer layer,
PlotRenderingInfo info)
Draws all the annotations for the specified layer.
|
void |
drawDomainGridLine(Graphics2D g2,
XYPlot plot,
ValueAxis axis,
Rectangle2D dataArea,
double value)
Draws a grid line against the range axis.
|
void |
drawDomainLine(Graphics2D g2,
XYPlot plot,
ValueAxis axis,
Rectangle2D dataArea,
double value,
Paint paint,
Stroke stroke)
Draws a line perpendicular to the domain axis.
|
void |
drawDomainMarker(Graphics2D g2,
XYPlot plot,
ValueAxis domainAxis,
Marker marker,
Rectangle2D dataArea)
Draws a vertical line on the chart to represent a 'range marker'.
|
void |
drawRangeLine(Graphics2D g2,
XYPlot plot,
ValueAxis axis,
Rectangle2D dataArea,
double value,
Paint paint,
Stroke stroke)
Draws a line perpendicular to the range axis.
|
void |
drawRangeMarker(Graphics2D g2,
XYPlot plot,
ValueAxis rangeAxis,
Marker marker,
Rectangle2D dataArea)
Draws a horizontal line across the chart to represent a 'range marker'.
|
boolean |
equals(Object obj)
Tests this renderer for equality with another object.
|
void |
fillDomainGridBand(Graphics2D g2,
XYPlot plot,
ValueAxis axis,
Rectangle2D dataArea,
double start,
double end)
Fills a band between two values on the axis.
|
void |
fillRangeGridBand(Graphics2D g2,
XYPlot plot,
ValueAxis axis,
Rectangle2D dataArea,
double start,
double end)
Fills a band between two values on the range axis.
|
Range |
findDomainBounds(XYDataset dataset)
Returns the lower and upper bounds (range) of the x-values in the
specified dataset.
|
Range |
findRangeBounds(XYDataset dataset)
Returns the range of values the renderer requires to display all the
items from the specified dataset.
|
Collection |
getAnnotations()
Returns a collection of the annotations that are assigned to the
renderer.
|
XYItemLabelGenerator |
getBaseItemLabelGenerator()
Returns the base item label generator.
|
XYToolTipGenerator |
getBaseToolTipGenerator()
Returns the base tool tip generator.
|
DrawingSupplier |
getDrawingSupplier()
Returns the drawing supplier from the plot.
|
XYItemLabelGenerator |
getItemLabelGenerator()
Deprecated.
As of version 1.0.6, this override setting should not be
used. You can use the base setting instead
(
getBaseItemLabelGenerator() ). |
XYItemLabelGenerator |
getItemLabelGenerator(int series,
int item)
Returns the label generator for a data item.
|
LegendItem |
getLegendItem(int datasetIndex,
int series)
Returns a default legend item for the specified series.
|
XYSeriesLabelGenerator |
getLegendItemLabelGenerator()
Returns the legend item label generator.
|
LegendItemCollection |
getLegendItems()
Returns a (possibly empty) collection of legend items for the series
that this renderer is responsible for drawing.
|
XYSeriesLabelGenerator |
getLegendItemToolTipGenerator()
Returns the legend item tool tip generator.
|
XYSeriesLabelGenerator |
getLegendItemURLGenerator()
Returns the legend item URL generator.
|
int |
getPassCount()
Returns the number of passes through the data that the renderer requires
in order to draw the chart.
|
XYPlot |
getPlot()
Returns the plot that the renderer is assigned to.
|
XYItemLabelGenerator |
getSeriesItemLabelGenerator(int series)
Returns the item label generator for a series.
|
XYToolTipGenerator |
getSeriesToolTipGenerator(int series)
Returns the tool tip generator for a series.
|
XYToolTipGenerator |
getToolTipGenerator()
Deprecated.
As of version 1.0.6, this override setting should not be
used. You can use the base setting instead
(
getBaseToolTipGenerator() ). |
XYToolTipGenerator |
getToolTipGenerator(int series,
int item)
Returns the tool tip generator for a data item.
|
XYURLGenerator |
getURLGenerator()
Returns the URL generator for HTML image maps.
|
XYItemRendererState |
initialise(Graphics2D g2,
Rectangle2D dataArea,
XYPlot plot,
XYDataset data,
PlotRenderingInfo info)
Initialises the renderer and returns a state object that should be
passed to all subsequent calls to the drawItem() method.
|
static boolean |
isPointInRect(Rectangle2D rect,
double x,
double y)
Returns
true if the specified point (x, y) falls within or
on the boundary of the specified rectangle. |
boolean |
removeAnnotation(XYAnnotation annotation)
Removes the specified annotation and sends a
RendererChangeEvent
to all registered listeners. |
void |
removeAnnotations()
Removes all annotations and sends a
RendererChangeEvent
to all registered listeners. |
void |
setBaseItemLabelGenerator(XYItemLabelGenerator generator)
Sets the base item label generator and sends a
RendererChangeEvent to all registered listeners. |
void |
setBaseToolTipGenerator(XYToolTipGenerator generator)
Sets the base tool tip generator and sends a
RendererChangeEvent
to all registered listeners. |
void |
setItemLabelGenerator(XYItemLabelGenerator generator)
Deprecated.
As of version 1.0.6, this override setting should not be
used. You can use the base setting instead
(
setBaseItemLabelGenerator(XYItemLabelGenerator) ). |
void |
setLegendItemLabelGenerator(XYSeriesLabelGenerator generator)
Sets the legend item label generator and sends a
RendererChangeEvent to all registered listeners. |
void |
setLegendItemToolTipGenerator(XYSeriesLabelGenerator generator)
Sets the legend item tool tip generator and sends a
RendererChangeEvent to all registered listeners. |
void |
setLegendItemURLGenerator(XYSeriesLabelGenerator generator)
Sets the legend item URL generator and sends a
RendererChangeEvent to all registered listeners. |
void |
setPlot(XYPlot plot)
Sets the plot that the renderer is assigned to.
|
void |
setSeriesItemLabelGenerator(int series,
XYItemLabelGenerator generator)
Sets the item label generator for a series and sends a
RendererChangeEvent to all registered listeners. |
void |
setSeriesToolTipGenerator(int series,
XYToolTipGenerator generator)
Sets the tool tip generator for a series and sends a
RendererChangeEvent to all registered listeners. |
void |
setToolTipGenerator(XYToolTipGenerator generator)
Deprecated.
As of version 1.0.6, this override setting should not be
used. You can use the base setting instead
(
setBaseToolTipGenerator(XYToolTipGenerator) ). |
void |
setURLGenerator(XYURLGenerator urlGenerator)
Sets the URL generator for HTML image maps and sends a
RendererChangeEvent to all registered listeners. |
addChangeListener, clearSeriesPaints, clearSeriesStrokes, getAutoPopulateSeriesFillPaint, getAutoPopulateSeriesOutlinePaint, getAutoPopulateSeriesOutlineStroke, getAutoPopulateSeriesPaint, getAutoPopulateSeriesShape, getAutoPopulateSeriesStroke, getBaseCreateEntities, getBaseFillPaint, getBaseItemLabelFont, getBaseItemLabelPaint, getBaseItemLabelsVisible, getBaseLegendShape, getBaseLegendTextFont, getBaseLegendTextPaint, getBaseNegativeItemLabelPosition, getBaseOutlinePaint, getBaseOutlineStroke, getBasePaint, getBasePositiveItemLabelPosition, getBaseSeriesVisible, getBaseSeriesVisibleInLegend, getBaseShape, getBaseStroke, getCreateEntities, getDataBoundsIncludesVisibleSeriesOnly, getDefaultEntityRadius, getItemCreateEntity, getItemFillPaint, getItemLabelAnchorOffset, getItemLabelFont, getItemLabelFont, getItemLabelPaint, getItemLabelPaint, getItemOutlinePaint, getItemOutlineStroke, getItemPaint, getItemShape, getItemStroke, getItemVisible, getLegendShape, getLegendTextFont, getLegendTextPaint, getNegativeItemLabelPosition, getNegativeItemLabelPosition, getPositiveItemLabelPosition, getPositiveItemLabelPosition, getSeriesCreateEntities, getSeriesFillPaint, getSeriesItemLabelFont, getSeriesItemLabelPaint, getSeriesNegativeItemLabelPosition, getSeriesOutlinePaint, getSeriesOutlineStroke, getSeriesPaint, getSeriesPositiveItemLabelPosition, getSeriesShape, getSeriesStroke, getSeriesVisible, getSeriesVisible, getSeriesVisibleInLegend, getSeriesVisibleInLegend, hashCode, hasListener, isItemLabelVisible, isSeriesItemLabelsVisible, isSeriesVisible, isSeriesVisibleInLegend, lookupLegendShape, lookupLegendTextFont, lookupLegendTextPaint, lookupSeriesFillPaint, lookupSeriesOutlinePaint, lookupSeriesOutlineStroke, lookupSeriesPaint, lookupSeriesShape, lookupSeriesStroke, notifyListeners, removeChangeListener, setAutoPopulateSeriesFillPaint, setAutoPopulateSeriesOutlinePaint, setAutoPopulateSeriesOutlineStroke, setAutoPopulateSeriesPaint, setAutoPopulateSeriesShape, setAutoPopulateSeriesStroke, setBaseCreateEntities, setBaseCreateEntities, setBaseFillPaint, setBaseFillPaint, setBaseItemLabelFont, setBaseItemLabelFont, setBaseItemLabelPaint, setBaseItemLabelPaint, setBaseItemLabelsVisible, setBaseItemLabelsVisible, setBaseItemLabelsVisible, setBaseLegendShape, setBaseLegendTextFont, setBaseLegendTextPaint, setBaseNegativeItemLabelPosition, setBaseNegativeItemLabelPosition, setBaseOutlinePaint, setBaseOutlinePaint, setBaseOutlineStroke, setBaseOutlineStroke, setBasePaint, setBasePaint, setBasePositiveItemLabelPosition, setBasePositiveItemLabelPosition, setBaseSeriesVisible, setBaseSeriesVisible, setBaseSeriesVisibleInLegend, setBaseSeriesVisibleInLegend, setBaseShape, setBaseShape, setBaseStroke, setBaseStroke, setCreateEntities, setCreateEntities, setDataBoundsIncludesVisibleSeriesOnly, setDefaultEntityRadius, setFillPaint, setFillPaint, setItemLabelAnchorOffset, setItemLabelFont, setItemLabelFont, setItemLabelPaint, setItemLabelPaint, setItemLabelsVisible, setItemLabelsVisible, setItemLabelsVisible, setLegendShape, setLegendTextFont, setLegendTextPaint, setNegativeItemLabelPosition, setNegativeItemLabelPosition, setOutlinePaint, setOutlinePaint, setOutlineStroke, setOutlineStroke, setPaint, setPaint, setPositiveItemLabelPosition, setPositiveItemLabelPosition, setSeriesCreateEntities, setSeriesCreateEntities, setSeriesFillPaint, setSeriesFillPaint, setSeriesItemLabelFont, setSeriesItemLabelFont, setSeriesItemLabelPaint, setSeriesItemLabelPaint, setSeriesItemLabelsVisible, setSeriesItemLabelsVisible, setSeriesItemLabelsVisible, setSeriesNegativeItemLabelPosition, setSeriesNegativeItemLabelPosition, setSeriesOutlinePaint, setSeriesOutlinePaint, setSeriesOutlineStroke, setSeriesOutlineStroke, setSeriesPaint, setSeriesPaint, setSeriesPositiveItemLabelPosition, setSeriesPositiveItemLabelPosition, setSeriesShape, setSeriesShape, setSeriesStroke, setSeriesStroke, setSeriesVisible, setSeriesVisible, setSeriesVisible, setSeriesVisible, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setShape, setShape, setStroke, setStroke
getClass, notify, notifyAll, toString, wait, wait, wait
addChangeListener, drawItem, getBaseItemLabelFont, getBaseItemLabelPaint, getBaseItemLabelsVisible, getBaseNegativeItemLabelPosition, getBaseOutlinePaint, getBaseOutlineStroke, getBasePaint, getBasePositiveItemLabelPosition, getBaseSeriesVisible, getBaseSeriesVisibleInLegend, getBaseShape, getBaseStroke, getItemLabelFont, getItemLabelFont, getItemLabelPaint, getItemLabelPaint, getItemOutlinePaint, getItemOutlineStroke, getItemPaint, getItemShape, getItemStroke, getItemVisible, getNegativeItemLabelPosition, getNegativeItemLabelPosition, getPositiveItemLabelPosition, getPositiveItemLabelPosition, getSeriesItemLabelFont, getSeriesItemLabelPaint, getSeriesNegativeItemLabelPosition, getSeriesOutlinePaint, getSeriesOutlineStroke, getSeriesPaint, getSeriesPositiveItemLabelPosition, getSeriesShape, getSeriesStroke, getSeriesVisible, getSeriesVisible, getSeriesVisibleInLegend, getSeriesVisibleInLegend, isItemLabelVisible, isSeriesItemLabelsVisible, isSeriesVisible, isSeriesVisibleInLegend, removeChangeListener, setBaseItemLabelFont, setBaseItemLabelPaint, setBaseItemLabelsVisible, setBaseItemLabelsVisible, setBaseItemLabelsVisible, setBaseNegativeItemLabelPosition, setBaseNegativeItemLabelPosition, setBaseOutlinePaint, setBaseOutlineStroke, setBasePaint, setBasePositiveItemLabelPosition, setBasePositiveItemLabelPosition, setBaseSeriesVisible, setBaseSeriesVisible, setBaseSeriesVisibleInLegend, setBaseSeriesVisibleInLegend, setBaseShape, setBaseStroke, setItemLabelFont, setItemLabelPaint, setItemLabelsVisible, setItemLabelsVisible, setItemLabelsVisible, setNegativeItemLabelPosition, setNegativeItemLabelPosition, setOutlinePaint, setOutlineStroke, setPaint, setPositiveItemLabelPosition, setPositiveItemLabelPosition, setSeriesItemLabelFont, setSeriesItemLabelPaint, setSeriesItemLabelsVisible, setSeriesItemLabelsVisible, setSeriesItemLabelsVisible, setSeriesNegativeItemLabelPosition, setSeriesNegativeItemLabelPosition, setSeriesOutlinePaint, setSeriesOutlineStroke, setSeriesPaint, setSeriesPositiveItemLabelPosition, setSeriesPositiveItemLabelPosition, setSeriesShape, setSeriesStroke, setSeriesVisible, setSeriesVisible, setSeriesVisible, setSeriesVisible, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setSeriesVisibleInLegend, setShape, setStroke
public int getPassCount()
getPassCount
in interface XYItemRenderer
public XYPlot getPlot()
getPlot
in interface XYItemRenderer
null
).public void setPlot(XYPlot plot)
setPlot
in interface XYItemRenderer
plot
- the plot (null
permitted).public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info)
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.
initialise
in interface XYItemRenderer
g2
- the graphics device.dataArea
- the area inside the axes.plot
- the plot.data
- the data.info
- an optional info collection object to return data back to
the caller.null
).public XYItemLabelGenerator getItemLabelGenerator(int series, int item)
getSeriesItemLabelGenerator(int)
method.
If, for some reason, you want a different generator for individual
items, you can override this method.getItemLabelGenerator
in interface XYItemRenderer
series
- the series index (zero based).item
- the item index (zero based).null
).public XYItemLabelGenerator getSeriesItemLabelGenerator(int series)
getSeriesItemLabelGenerator
in interface XYItemRenderer
series
- the series index (zero based).null
).XYItemRenderer.setSeriesItemLabelGenerator(int, XYItemLabelGenerator)
public void setSeriesItemLabelGenerator(int series, XYItemLabelGenerator generator)
RendererChangeEvent
to all registered listeners.setSeriesItemLabelGenerator
in interface XYItemRenderer
series
- the series index (zero based).generator
- the generator (null
permitted).XYItemRenderer.getSeriesItemLabelGenerator(int)
public XYItemLabelGenerator getBaseItemLabelGenerator()
getBaseItemLabelGenerator
in interface XYItemRenderer
null
).XYItemRenderer.setBaseItemLabelGenerator(XYItemLabelGenerator)
public void setBaseItemLabelGenerator(XYItemLabelGenerator generator)
RendererChangeEvent
to all registered listeners.setBaseItemLabelGenerator
in interface XYItemRenderer
generator
- the generator (null
permitted).XYItemRenderer.getBaseItemLabelGenerator()
public XYToolTipGenerator getToolTipGenerator(int series, int item)
getToolTipGenerator
in interface XYItemRenderer
series
- the series index (zero based).item
- the item index (zero based).null
).public XYToolTipGenerator getSeriesToolTipGenerator(int series)
getSeriesToolTipGenerator
in interface XYItemRenderer
series
- the series index (zero based).null
).XYItemRenderer.setSeriesToolTipGenerator(int, XYToolTipGenerator)
public void setSeriesToolTipGenerator(int series, XYToolTipGenerator generator)
RendererChangeEvent
to all registered listeners.setSeriesToolTipGenerator
in interface XYItemRenderer
series
- the series index (zero based).generator
- the generator (null
permitted).XYItemRenderer.getSeriesToolTipGenerator(int)
public XYToolTipGenerator getBaseToolTipGenerator()
getBaseToolTipGenerator
in interface XYItemRenderer
null
).setBaseToolTipGenerator(XYToolTipGenerator)
public void setBaseToolTipGenerator(XYToolTipGenerator generator)
RendererChangeEvent
to all registered listeners.setBaseToolTipGenerator
in interface XYItemRenderer
generator
- the generator (null
permitted).getBaseToolTipGenerator()
public XYURLGenerator getURLGenerator()
getURLGenerator
in interface XYItemRenderer
null
).public void setURLGenerator(XYURLGenerator urlGenerator)
RendererChangeEvent
to all registered listeners.setURLGenerator
in interface XYItemRenderer
urlGenerator
- the URL generator (null
permitted).public void addAnnotation(XYAnnotation annotation)
RendererChangeEvent
to all
registered listeners. The annotation is added to the foreground
layer.addAnnotation
in interface XYItemRenderer
annotation
- the annotation (null
not permitted).public void addAnnotation(XYAnnotation annotation, org.jfree.ui.Layer layer)
RendererChangeEvent
to all registered listeners.addAnnotation
in interface XYItemRenderer
annotation
- the annotation (null
not permitted).layer
- the layer (null
not permitted).public boolean removeAnnotation(XYAnnotation annotation)
RendererChangeEvent
to all registered listeners.removeAnnotation
in interface XYItemRenderer
annotation
- the annotation to remove (null
not
permitted).public void removeAnnotations()
RendererChangeEvent
to all registered listeners.removeAnnotations
in interface XYItemRenderer
public void annotationChanged(AnnotationChangeEvent event)
Annotation
added to
this renderer.annotationChanged
in interface AnnotationChangeListener
event
- information about the event (not used here).public Collection getAnnotations()
null
).public XYSeriesLabelGenerator getLegendItemLabelGenerator()
getLegendItemLabelGenerator
in interface XYItemRenderer
null
).setLegendItemLabelGenerator(XYSeriesLabelGenerator)
public void setLegendItemLabelGenerator(XYSeriesLabelGenerator generator)
RendererChangeEvent
to all registered listeners.setLegendItemLabelGenerator
in interface XYItemRenderer
generator
- the generator (null
not permitted).getLegendItemLabelGenerator()
public XYSeriesLabelGenerator getLegendItemToolTipGenerator()
null
).setLegendItemToolTipGenerator(XYSeriesLabelGenerator)
public void setLegendItemToolTipGenerator(XYSeriesLabelGenerator generator)
RendererChangeEvent
to all registered listeners.generator
- the generator (null
permitted).getLegendItemToolTipGenerator()
public XYSeriesLabelGenerator getLegendItemURLGenerator()
null
).setLegendItemURLGenerator(XYSeriesLabelGenerator)
public void setLegendItemURLGenerator(XYSeriesLabelGenerator generator)
RendererChangeEvent
to all registered listeners.generator
- the generator (null
permitted).getLegendItemURLGenerator()
public Range findDomainBounds(XYDataset dataset)
findDomainBounds
in interface XYItemRenderer
dataset
- the dataset (null
permitted).null
if the dataset is null
or empty).findRangeBounds(XYDataset)
public Range findRangeBounds(XYDataset dataset)
findRangeBounds
in interface XYItemRenderer
dataset
- the dataset (null
permitted).null
if the dataset is null
or empty).findDomainBounds(XYDataset)
public LegendItemCollection getLegendItems()
getLegendItems
in interface LegendItemSource
null
).public LegendItem getLegendItem(int datasetIndex, int series)
getLegendItem
in interface XYItemRenderer
datasetIndex
- the dataset index (zero-based).series
- the series index (zero-based).public void fillDomainGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)
fillDomainGridBand
in interface XYItemRenderer
g2
- the graphics device.plot
- the plot.axis
- the domain axis.dataArea
- the data area.start
- the start value.end
- the end value.public void fillRangeGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)
fillRangeGridBand
in interface XYItemRenderer
g2
- the graphics device.plot
- the plot.axis
- the range axis.dataArea
- the data area.start
- the start value.end
- the end value.public void drawDomainGridLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value)
drawDomainGridLine
in interface XYItemRenderer
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 at which the grid line should be drawn.public void drawDomainLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)
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 at which the grid line should be drawn.paint
- the paint (null
not permitted).stroke
- the stroke (null
not permitted).public void drawRangeLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)
drawRangeLine
in interface XYItemRenderer
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 at which the grid line should be drawn.paint
- the paint.stroke
- the stroke.public void drawDomainMarker(Graphics2D g2, XYPlot plot, ValueAxis domainAxis, Marker marker, Rectangle2D dataArea)
drawDomainMarker
in interface XYItemRenderer
g2
- the graphics device.plot
- the plot.domainAxis
- the domain axis.marker
- the marker line.dataArea
- the axis data area.public void drawRangeMarker(Graphics2D g2, XYPlot plot, ValueAxis rangeAxis, Marker marker, Rectangle2D dataArea)
drawRangeMarker
in interface XYItemRenderer
g2
- the graphics device.plot
- the plot.rangeAxis
- the range axis.marker
- the marker line.dataArea
- the axis data area.public boolean equals(Object obj)
equals
in class AbstractRenderer
obj
- the object (null
permitted).true
or false
.public DrawingSupplier getDrawingSupplier()
getDrawingSupplier
in class AbstractRenderer
null
).public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, org.jfree.ui.Layer layer, PlotRenderingInfo info)
drawAnnotations
in interface XYItemRenderer
g2
- the graphics device.dataArea
- the data area.domainAxis
- the domain axis.rangeAxis
- the range axis.layer
- the layer.info
- the plot rendering info.public static boolean isPointInRect(Rectangle2D rect, double x, double y)
true
if the specified point (x, y) falls within or
on the boundary of the specified rectangle.rect
- the rectangle (null
not permitted).x
- the x-coordinate.y
- the y-coordinate.public XYItemLabelGenerator getItemLabelGenerator()
getBaseItemLabelGenerator()
).null
).setItemLabelGenerator(XYItemLabelGenerator)
public void setItemLabelGenerator(XYItemLabelGenerator generator)
setBaseItemLabelGenerator(XYItemLabelGenerator)
).RendererChangeEvent
to all registered listeners.setItemLabelGenerator
in interface XYItemRenderer
generator
- the generator (null
permitted).getItemLabelGenerator()
public XYToolTipGenerator getToolTipGenerator()
getBaseToolTipGenerator()
).null
).setToolTipGenerator(XYToolTipGenerator)
public void setToolTipGenerator(XYToolTipGenerator generator)
setBaseToolTipGenerator(XYToolTipGenerator)
).RendererChangeEvent
to all registered listeners.setToolTipGenerator
in interface XYItemRenderer
generator
- the generator (null
permitted).getToolTipGenerator()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics