Package org.jfree.chart.annotations
Interface CategoryAnnotation
- All Superinterfaces:
Annotation
- All Known Implementing Classes:
CategoryLineAnnotation
,CategoryPointerAnnotation
,CategoryTextAnnotation
The interface that must be supported by annotations that are to be added to
a
CategoryPlot
. Note that, in JFreeChart 1.0.14, a non-compatible
change has been made to this interface (it now extends the Annotation
interface to support change notifications).-
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea, CategoryAxis domainAxis, ValueAxis rangeAxis) Draws the annotation.Methods inherited from interface org.jfree.chart.annotations.Annotation
addChangeListener, removeChangeListener
-
Method Details
-
draw
void draw(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea, CategoryAxis domainAxis, ValueAxis rangeAxis) Draws the annotation.- Parameters:
g2
- the graphics device.plot
- the plot.dataArea
- the data area.domainAxis
- the domain axis.rangeAxis
- the range axis.
-