diff flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 2056:76eeb3b4358e

Added an ExportSection to ChartSettings which provides attributes for chart 'width' and 'height'. flys-artifacts/trunk@3547 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 27 Dec 2011 10:12:14 +0000
parents 3cec0575d655
children 49b7c2b1a6a7
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java	Tue Dec 27 09:09:42 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java	Tue Dec 27 10:12:14 2011 +0000
@@ -1269,9 +1269,11 @@
 
         ChartSection  chartSection  = buildChartSection();
         LegendSection legendSection = buildLegendSection();
+        ExportSection exportSection = buildExportSection();
 
         settings.setChartSection(chartSection);
         settings.setLegendSection(legendSection);
+        settings.setExportSection(exportSection);
 
         List<AxisSection> axisSections = buildAxisSections();
         for (AxisSection axisSection: axisSections) {
@@ -1310,6 +1312,20 @@
 
 
     /**
+     * Creates a new <i>ExportSection</i> with default values <b>WIDTH=600</b>
+     * and <b>HEIGHT=400</b>.
+     *
+     * @return a new <i>ExportSection</i>.
+     */
+    protected ExportSection buildExportSection() {
+        ExportSection exportSection = new ExportSection();
+        exportSection.setWidth(600);
+        exportSection.setHeight(400);
+        return exportSection;
+    }
+
+
+    /**
      * Creates a list of Sections that contains all axes of the chart (including
      * X and Y axes).
      *

http://dive4elements.wald.intevation.org