diff artifacts/src/main/java/org/dive4elements/river/jfree/AxisDataset.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
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/jfree/AxisDataset.java	Mon Oct 22 18:26:05 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/jfree/AxisDataset.java	Tue Oct 23 16:26:48 2018 +0200
@@ -21,25 +21,13 @@
  */
 public class AxisDataset {
 
-    /** Symbolic integer, but also coding the priority (0 goes first). */
-    protected int axisSymbol;
-
     /** List of assigned datasets (in order). */
-    protected List<XYDataset> datasets;
+    private final List<XYDataset> datasets = new ArrayList<>();
 
     /** Range to use to include all given datasets. */
-    protected Range range;
-
-    /** Index of axis in plot. */
-    protected int plotAxisIndex;
+    private Range range;
 
-    protected boolean rangeDirty;
-
-    /** Create AxisDataset. */
-    public AxisDataset(final int symb) {
-        this.axisSymbol = symb;
-        this.datasets = new ArrayList<>();
-    }
+    private boolean rangeDirty;
 
     /** Add a dataset to internal list for this axis. */
     public void addDataset(final XYDataset dataset) {
@@ -99,14 +87,4 @@
     public boolean isEmpty() {
         return this.datasets.isEmpty();
     }
-
-    /** Set the 'real' axis index that this axis is mapped to. */
-    public void setPlotAxisIndex(final int axisIndex) {
-        this.plotAxisIndex = axisIndex;
-    }
-
-    /** Get the 'real' axis index that this axis is mapped to. */
-    public int getPlotAxisIndex() {
-        return this.plotAxisIndex;
-    }
 }
\ No newline at end of file

http://dive4elements.wald.intevation.org