diff flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java @ 3618:b7867c03760a

Split logo placement property in two (vertical/horizontal). flys-artifacts/trunk@5286 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 29 Aug 2012 07:58:08 +0000
parents 05deafdcbf39
children 695e8005e199
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java	Tue Aug 28 15:53:05 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java	Wed Aug 29 07:58:08 2012 +0000
@@ -753,7 +753,8 @@
         chartSection.setSubtitle(getChartSubtitle());
         chartSection.setDisplayGrid(isGridVisible());
         chartSection.setDisplayLogo(showLogo());
-        chartSection.setLogoPlacement(logoPlace());
+        chartSection.setLogoVPlacement(logoVPlace());
+        chartSection.setLogoHPlacement(logoHPlace());
         return chartSection;
     }
 
@@ -1030,11 +1031,25 @@
     }
 
 
-    protected String logoPlace() {
+    /** Where to place the logo. */
+    protected String logoHPlace() {
         ChartSettings chartSettings = getChartSettings();
         if (chartSettings != null) {
             ChartSection cs    = chartSettings.getChartSection();
-            String       place = cs.getLogoPlacement();
+            String       place = cs.getLogoHPlacement();
+
+            return place;
+        }
+        return "none";
+    }
+
+
+    /** Where to place the logo. */
+    protected String logoVPlace() {
+        ChartSettings chartSettings = getChartSettings();
+        if (chartSettings != null) {
+            ChartSection cs    = chartSettings.getChartSection();
+            String       place = cs.getLogoVPlacement();
 
             return place;
         }

http://dive4elements.wald.intevation.org