diff gnv-artifacts/src/main/java/de/intevation/gnv/chart/ChartLabels.java @ 492:79e80c289018

Added labels and titles to 'Profilschnitt' charts. gnv-artifacts/trunk@569 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 19 Jan 2010 10:06:03 +0000
parents 1c427acb6c76
children 79401c871da4
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/chart/ChartLabels.java	Mon Jan 18 15:49:12 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/chart/ChartLabels.java	Tue Jan 19 10:06:03 2010 +0000
@@ -15,6 +15,7 @@
 /**
  * @author drewnak
  * @author Tim Englich <tim.englich@intevation.de> Changes and codecleanup
+ * @author Ingo Weinzierl <ingo.weinzierl@intevation.de>
  */
 public class ChartLabels {
     /**
@@ -33,15 +34,48 @@
     private String domainAxisLabel;
 
     /**
+     *
+     */
+    private String rangeAxisLabel;
+
+    /**
+     *
+     */
+    private String parameterName;
+
+
+    /**
      * Constructor
      * 
      * @param title
      * @param domainAxisLabel
      */
     public ChartLabels(String title, String subtitle, String domainAxisLabel) {
+        this(title, subtitle, domainAxisLabel, null);
+    }
+
+    public ChartLabels(
+        String title,
+        String subtitle,
+        String domainAxisLabel,
+        String rangeAxisLabel
+    ) {
+        this(title, subtitle, domainAxisLabel, rangeAxisLabel, null);
+    }
+
+
+    public ChartLabels(
+        String title,
+        String subtitle,
+        String domainAxisLabel,
+        String rangeAxisLabel,
+        String parameterName
+    ) {
         this.title           = title;
         this.subtitle        = subtitle;
         this.domainAxisLabel = domainAxisLabel;
+        this.rangeAxisLabel  = rangeAxisLabel;
+        this.parameterName   = parameterName;
     }
 
     /**
@@ -65,4 +99,15 @@
     public String getDomainAxisLabel() {
         return this.domainAxisLabel;
     }
+
+
+    public String getRangeAxisLabel() {
+        return this.rangeAxisLabel;
+    }
+
+
+    public String getParameterName() {
+        return this.parameterName;
+    }
 }
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org