This patch (committed) adds layered annotation support to the
CategoryItemRenderer interface, to mirror the existing facility for
XYItemRenderers:
2007-07-06 David Gilbert <david.gilbert@...>
* source/org/jfree/chart/annotations/CategoryAnnotation.java
(draw): Added 'rendererIndex' and 'info' parameters,
* source/org/jfree/chart/annotations/CategoryLineAnnotation.java
(draw): Likewise,
* source/org/jfree/chart/annotations/CategoryTextAnnotation.java
(draw): Likewise,
* source/org/jfree/chart/plot/CategoryPlot.java
(draw): Added code to draw background and foreground annotations in the
renderer(s),
(drawAnnotations): Updated for CategoryAnnotation interface API change,
*
source/org/jfree/chart/renderer/category/AbstractCategoryItemRenderer.java
(backgroundAnnotations): New field,
(foregroundAnnotations): Likewise,
(AbstractCategoryItemRenderer): Initialise new fields,
(addAnnotation(CategoryAnnotation)): New method,
(addAnnotation(CategoryAnnotation, Layer)): Likewise,
(removeAnnotation(CategoryAnnotation)): Likewise,
(removeAnnotations): Likewise,
(equals): Updated for new fields,
(drawAnnotations): New method,
* source/org/jfree/chart/renderer/category/CategoryItemRenderer.java
(addAnnotation(CategoryAnnotation)): New method,
(addAnnotation(CategoryAnnotation, Layer)): Likewise,
(removeAnnotation(CategoryAnnotation)): Likewise,
(removeAnnotations): Likewise,
(drawAnnotations): Likewise.
Regards,
Dave
|