Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/jfree/StyledXYDataset.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 | d8e753d0fdb9 |
children |
comparison
equal
deleted
inserted
replaced
9554:33ce8eba9806 | 9555:ef5754ba5573 |
---|---|
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the | 7 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
8 * documentation coming with Dive4Elements River for details. | 8 * documentation coming with Dive4Elements River for details. |
9 */ | 9 */ |
10 package org.dive4elements.river.jfree; | 10 package org.dive4elements.river.jfree; |
11 | 11 |
12 import java.awt.Font; | |
13 | |
14 import org.dive4elements.artifacts.CallMeta; | 12 import org.dive4elements.artifacts.CallMeta; |
13 import org.dive4elements.river.exports.LegendAggregator; | |
14 import org.dive4elements.river.themes.ThemeDocument; | |
15 import org.jfree.chart.LegendItem; | |
15 import org.jfree.chart.plot.XYPlot; | 16 import org.jfree.chart.plot.XYPlot; |
16 import org.jfree.data.xy.XYDataset; | 17 import org.jfree.data.xy.XYDataset; |
17 | 18 |
18 /** | 19 /** |
19 * @author Domenico Nardi Tironi | 20 * @author Domenico Nardi Tironi |
20 * | |
21 */ | 21 */ |
22 public interface StyledXYDataset extends XYDataset { | 22 public interface StyledXYDataset extends XYDataset { |
23 void applyTheme(CallMeta callMeta, XYPlot plot, int datasetIndex, Font legendFont); | 23 void applyTheme(CallMeta callMeta, XYPlot plot, LegendAggregator legendBuilder, int datasetIndex); |
24 | |
25 void applyAggregatedLegendTheme(LegendItem item, ThemeDocument theme); | |
24 } | 26 } |