changeset 8887:a7f1d4c9add4

Missed some places were axes were created
author gernotbelger
date Wed, 14 Feb 2018 18:15:32 +0100
parents cc86b0f9b3c3
children caa52aec08c0
files artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator.java artifacts/src/main/java/org/dive4elements/river/exports/XYChartGenerator.java
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator.java	Wed Feb 14 18:10:53 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator.java	Wed Feb 14 18:15:32 2018 +0100
@@ -1520,6 +1520,10 @@
         axis.setLabelFont(labelFont);
         axis.setTickLabelFont(labelFont);
 
+        // REMARK: we overwrite the default values to 0.0, because in earlier version margins were never applied.
+        axis.setLowerMargin(0);
+        axis.setUpperMargin(0);
+        
         return axis;
     }
 
--- a/artifacts/src/main/java/org/dive4elements/river/exports/XYChartGenerator.java	Wed Feb 14 18:10:53 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/XYChartGenerator.java	Wed Feb 14 18:15:32 2018 +0100
@@ -301,7 +301,8 @@
 
 
     protected NumberAxis createXAxis(String label) {
-        return new NumberAxis(label);
+        NumberAxis axis = new NumberAxis(label);
+        return axis;
     }
 
 

http://dive4elements.wald.intevation.org