Mercurial > dive4elements > gnv-client
changeset 848:47280aff0eb7
Added an y-axis label in histograms (issue243).
gnv-artifacts/trunk@964 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 21 Apr 2010 09:43:46 +0000 (2010-04-21) |
parents | 42c4cfc0d133 |
children | 38c8cc586a85 |
files | gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.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 | 6 files changed, 30 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog Wed Apr 21 09:19:07 2010 +0000 +++ b/gnv-artifacts/ChangeLog Wed Apr 21 09:43:46 2010 +0000 @@ -1,3 +1,16 @@ +2010-04-21 Ingo Weinzierl <ingo.weinzierl@intevation.de> + + Issue243 + + * src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java: + Added an y-axis label for histogram creation. + + * 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 the string + used as y-axis label in histograms. + 2010-04-21 Ingo Weinzierl <ingo.weinzierl@intevation.de> Issue231
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java Wed Apr 21 09:19:07 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java Wed Apr 21 09:43:46 2010 +0000 @@ -419,7 +419,7 @@ for (int i = 0; i < size; i++) { ChartLabels labels = createHistogramLabels( - uuid, callContext, data[i]); + uuid, callContext, locale, data[i]); ChartTheme theme = createStyle(callContext); @@ -1111,9 +1111,15 @@ * @return A ChartLabels object with the 1st string in <i>data</i> as title. */ protected ChartLabels createHistogramLabels( - String uuid, CallContext context, Object[] data) + String uuid, CallContext context, Locale locale, Object[] data) { - return new ChartLabels((String) data[0], "", ""); + RessourceFactory fac = RessourceFactory.getInstance(); + + return new ChartLabels( + (String) data[0], + "", + "", + fac.getRessource(locale, "histogram.axis.range.title", "")); }
--- a/gnv-artifacts/src/main/resources/lang/artifactMessages.properties Wed Apr 21 09:19:07 2010 +0000 +++ b/gnv-artifacts/src/main/resources/lang/artifactMessages.properties Wed Apr 21 09:43:46 2010 +0000 @@ -71,6 +71,8 @@ chart.horizontalprofile.title.xaxis=Distance [km] chart.horizontalcrosssection.title.xaxis=Latitude [m] +histogram.axis.range.title=Absolute Frequency + # error messages no.input.data= No Entry was chosen. Please select at least one entry. input.is.not.valid=Invalid input. Please try again.
--- a/gnv-artifacts/src/main/resources/lang/artifactMessages_de.properties Wed Apr 21 09:19:07 2010 +0000 +++ b/gnv-artifacts/src/main/resources/lang/artifactMessages_de.properties Wed Apr 21 09:43:46 2010 +0000 @@ -71,6 +71,8 @@ chart.horizontalprofile.title.xaxis=Distanz [km] chart.horizontalcrosssection.title.xaxis=Ausdehnung [m] +histogram.axis.range.title=Absolute H\u00e4ufigkeit + # error messages no.input.data=Es wurde kein Eintrag ausgew\u00e4hlt. Bitte w\u00e4hlen sie mindestens einen Eintrag aus. input.is.not.valid=Ung\u00fcltige Eingabe. Bitte versuchen Sie es erneut.
--- a/gnv-artifacts/src/main/resources/lang/artifactMessages_de_DE.properties Wed Apr 21 09:19:07 2010 +0000 +++ b/gnv-artifacts/src/main/resources/lang/artifactMessages_de_DE.properties Wed Apr 21 09:43:46 2010 +0000 @@ -71,6 +71,8 @@ chart.horizontalprofile.title.xaxis=Distanz [km] chart.horizontalcrosssection.title.xaxis=Ausdehnung [m] +histogram.axis.range.title=Absolute H\u00e4ufigkeit + # error messages no.input.data=Es wurde kein Eintrag ausgew\u00e4hlt. Bitte w\u00e4hlen sie mindestens einen Eintrag aus. input.is.not.valid=Ung\u00fcltige Eingabe. Bitte versuchen Sie es erneut.
--- a/gnv-artifacts/src/main/resources/lang/artifactMessages_en.properties Wed Apr 21 09:19:07 2010 +0000 +++ b/gnv-artifacts/src/main/resources/lang/artifactMessages_en.properties Wed Apr 21 09:43:46 2010 +0000 @@ -72,6 +72,8 @@ chart.horizontalprofile.title.xaxis=Distance [km] chart.horizontalcrosssection.title.xaxis=Latitude [m] +histogram.axis.range.title=Absolute Frequency + # error messages no.input.data= No Entry was chosen. Please select at least one entry. input.is.not.valid=Invalid input. Please try again.