comparison artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator2.java @ 9555:ef5754ba5573

Implemented legend aggregation based on type of themes. Added theme-editor style configuration for aggregated legend entries. Only configured themes get aggregated.
author gernotbelger
date Tue, 23 Oct 2018 16:26:48 +0200
parents 1cc7653ca84f
children
comparison
equal deleted inserted replaced
9554:33ce8eba9806 9555:ef5754ba5573
296 /** Returns the number of registered y-axes */ 296 /** Returns the number of registered y-axes */
297 public final int getNumYAxes() { 297 public final int getNumYAxes() {
298 return axisNameToAxis.size(); 298 return axisNameToAxis.size();
299 } 299 }
300 300
301 protected final void addYAnnotationsToRenderer(final XYPlot plot) { 301 protected final void addYAnnotationsToRenderer(final XYPlot plot, LegendAggregator legendBuilder) {
302 final AnnotationRenderer annotationRenderer = new AnnotationRenderer(getChartSettings(), getDatasets(), DEFAULT_FONT_NAME); 302 final AnnotationRenderer annotationRenderer = new AnnotationRenderer(getDatasets());
303 annotationRenderer.addYAnnotationsToRenderer(plot, this.yAnnotations); 303 annotationRenderer.addYAnnotationsToRenderer(plot, legendBuilder, this.yAnnotations);
304 } 304 }
305 } 305 }

http://dive4elements.wald.intevation.org