diff flys-artifacts/src/main/java/de/intevation/flys/exports/ChartSettings.java @ 2046:2ae0627f956e

Improved ChartSettings and depending classes to avoid a lot of casting. flys-artifacts/trunk@3534 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 23 Dec 2011 08:51:28 +0000
parents 3e703d134bbe
children c4e0e433f825
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartSettings.java	Thu Dec 22 13:22:55 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartSettings.java	Fri Dec 23 08:51:28 2011 +0000
@@ -21,9 +21,9 @@
 
     private static final Logger logger = Logger.getLogger(ChartSettings.class);
 
-    protected Section chartSection;
-    protected Section legendSection;
-    protected Section axesSection;
+    protected ChartSection  chartSection;
+    protected LegendSection legendSection;
+    protected Section       axesSection;
 
 
     public ChartSettings() {
@@ -39,8 +39,8 @@
      *
      * @param chartSection A new Section that stores chart specific attributes.
      */
-    public void setChartSection(Section chartSection) {
-        Section oldChartSection = getChartSection();
+    public void setChartSection(ChartSection chartSection) {
+        ChartSection oldChartSection = getChartSection();
 
         if (oldChartSection != null) {
             removeSection(oldChartSection);
@@ -56,7 +56,7 @@
      *
      * @return the Section that stores chart specific attributes.
      */
-    public Section getChartSection() {
+    public ChartSection getChartSection() {
         return chartSection;
     }
 
@@ -67,8 +67,8 @@
      * @param legendSection A new Section that stores legend specific
      * attributes.
      */
-    public void setLegendSection(Section legendSection) {
-        Section oldLegendSection = getLegendSection();
+    public void setLegendSection(LegendSection legendSection) {
+        LegendSection oldLegendSection = getLegendSection();
 
         if (oldLegendSection != null) {
             removeSection(oldLegendSection);
@@ -84,7 +84,7 @@
      *
      * @return the Section that stores legend specific attributes.
      */
-    public Section getLegendSection() {
+    public LegendSection getLegendSection() {
         return legendSection;
     }
 

http://dive4elements.wald.intevation.org