changeset 343:2e43542e6a11

Added axis labels for charts and use them while generating charts. gnv-artifacts/trunk@410 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 11 Dec 2009 09:05:17 +0000
parents bb1afbbd93e4
children 44adf8918155
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileOutputState.java gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/vertical/VerticalProfileOutputState.java gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java gnv-artifacts/src/main/resources/lang/artifactMessages.properties gnv-artifacts/src/main/resources/lang/artifactMessages_de.properties gnv-artifacts/src/main/resources/lang/artifactMessages_de_DE.properties gnv-artifacts/src/main/resources/lang/artifactMessages_en.properties
diffstat 9 files changed, 35 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Fri Dec 11 08:44:46 2009 +0000
+++ b/gnv-artifacts/ChangeLog	Fri Dec 11 09:05:17 2009 +0000
@@ -1,3 +1,18 @@
+2009-12-11  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	* src/main/resources/lang/artifactMessages.properties,
+	  src/main/resources/lang/artifactMessages_de_DE.properties,
+	  src/main/resources/lang/artifactMessages_en.properties,
+	  src/main/resources/lang/artifactMessages_de.properties: Added axis labels
+	  for horizontalprofile, verticalprofile, horizontalcrosssection and
+	  verticalcrosssection charts.
+
+	* src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java,
+	  src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java,
+	  src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileOutputState.java,
+	  src/main/java/de/intevation/gnv/state/profile/vertical/VerticalProfileOutputState.java:
+	  Read axis labels from ressources instead of hard coded strings in code.
+
 2009-12-11  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	  Cleared Issue104.
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileOutputState.java	Fri Dec 11 08:44:46 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileOutputState.java	Fri Dec 11 09:05:17 2009 +0000
@@ -84,7 +84,7 @@
      */
     public HorizontalProfileOutputState() {
         super();
-        super.domainLable = "Distance [km]";
+        super.domainLable = "chart.horizontalprofile.title.xaxis";
     }
 
 
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java	Fri Dec 11 08:44:46 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java	Fri Dec 11 09:05:17 2009 +0000
@@ -41,7 +41,7 @@
      */
     public HorizontalCrossSectionMeshOutputState() {
         super();
-        super.domainLable = "Latitude [m]";
+        super.domainLable = "chart.horizontalcrosssection.title.xaxis";
     }
 
     @Override
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/vertical/VerticalProfileOutputState.java	Fri Dec 11 08:44:46 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/vertical/VerticalProfileOutputState.java	Fri Dec 11 09:05:17 2009 +0000
@@ -33,7 +33,7 @@
      */
     public VerticalProfileOutputState() {
         super();
-        super.domainLable = "Depth [m]";
+        super.domainLable = "chart.verticalprofile.title.xaxis";
     }
 
     
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java	Fri Dec 11 08:44:46 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java	Fri Dec 11 09:05:17 2009 +0000
@@ -50,7 +50,7 @@
      */
     public VerticalCrossSectionOutputState() {
         super();
-        super.domainLable = "Depth [m]";
+        super.domainLable = "chart.verticalcrosssection.title.xaxis";
     }
 
     @Override
--- a/gnv-artifacts/src/main/resources/lang/artifactMessages.properties	Fri Dec 11 08:44:46 2009 +0000
+++ b/gnv-artifacts/src/main/resources/lang/artifactMessages.properties	Fri Dec 11 09:05:17 2009 +0000
@@ -50,3 +50,7 @@
 coordinate=coordinate
 
 chart.timeseries.title.xaxis=Time [UTC]
+chart.verticalprofile.title.xaxis=Depth [m]
+chart.verticalcrosssection.title.xaxis=Depth [m]
+chart.horizontalprofile.title.xaxis=Distance [km]
+chart.horizontalcrosssection.title.xaxis=Latitude [m]
--- a/gnv-artifacts/src/main/resources/lang/artifactMessages_de.properties	Fri Dec 11 08:44:46 2009 +0000
+++ b/gnv-artifacts/src/main/resources/lang/artifactMessages_de.properties	Fri Dec 11 09:05:17 2009 +0000
@@ -50,3 +50,7 @@
 coordinate=Koordinate
 
 chart.timeseries.title.xaxis=Zeit [UTC]
+chart.verticalprofile.title.xaxis=Tiefe [m]
+chart.verticalcrosssection.title.xaxis=Tiefe [m]
+chart.horizontalprofile.title.xaxis=Distanz [km]
+chart.horizontalcrosssection.title.xaxis=Ausdehnung [m]
--- a/gnv-artifacts/src/main/resources/lang/artifactMessages_de_DE.properties	Fri Dec 11 08:44:46 2009 +0000
+++ b/gnv-artifacts/src/main/resources/lang/artifactMessages_de_DE.properties	Fri Dec 11 09:05:17 2009 +0000
@@ -50,3 +50,7 @@
 coordinate=Koordinate
 
 chart.timeseries.title.xaxis=Zeit [UTC]
+chart.verticalprofile.title.xaxis=Tiefe [m]
+chart.verticalcrosssection.title.xaxis=Tiefe [m]
+chart.horizontalprofile.title.xaxis=Distanz [km]
+chart.horizontalcrosssection.title.xaxis=Ausdehnung [m]
--- a/gnv-artifacts/src/main/resources/lang/artifactMessages_en.properties	Fri Dec 11 08:44:46 2009 +0000
+++ b/gnv-artifacts/src/main/resources/lang/artifactMessages_en.properties	Fri Dec 11 09:05:17 2009 +0000
@@ -50,3 +50,7 @@
 coordinate=coordinate
 
 chart.timeseries.title.xaxis=Time [UTC]
+chart.verticalprofile.title.xaxis=Depth [m]
+chart.verticalcrosssection.title.xaxis=Depth [m]
+chart.horizontalprofile.title.xaxis=Distance [km]
+chart.horizontalcrosssection.title.xaxis=Latitude [m]

http://dive4elements.wald.intevation.org