Package org.jfree.chart.annotations
Interface XYAnnotation
- All Known Implementing Classes:
XYDrawableAnnotation,XYImageAnnotation,XYLineAnnotation,XYPointerAnnotation,XYShapeAnnotation,XYTextAnnotation
public interface XYAnnotation
The interface that must be supported by annotations that are to be added to
an
XYPlot.-
Method Summary
Modifier and Type Method Description voiddraw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis)Draws the annotation.
-
Method Details
-
draw
void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea, ValueAxis 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.
-