# HG changeset patch # User Ingo Weinzierl # Date 1260522317 0 # Node ID 2e43542e6a11d28a0efdd4234b758dae92882533 # Parent bb1afbbd93e4a625616da4170b8452503ef05e19 Added axis labels for charts and use them while generating charts. gnv-artifacts/trunk@410 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r bb1afbbd93e4 -r 2e43542e6a11 gnv-artifacts/ChangeLog --- 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 + + * 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 Cleared Issue104. diff -r bb1afbbd93e4 -r 2e43542e6a11 gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileOutputState.java --- 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"; } diff -r bb1afbbd93e4 -r 2e43542e6a11 gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java --- 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 diff -r bb1afbbd93e4 -r 2e43542e6a11 gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/vertical/VerticalProfileOutputState.java --- 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"; } diff -r bb1afbbd93e4 -r 2e43542e6a11 gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java --- 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 diff -r bb1afbbd93e4 -r 2e43542e6a11 gnv-artifacts/src/main/resources/lang/artifactMessages.properties --- 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] diff -r bb1afbbd93e4 -r 2e43542e6a11 gnv-artifacts/src/main/resources/lang/artifactMessages_de.properties --- 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] diff -r bb1afbbd93e4 -r 2e43542e6a11 gnv-artifacts/src/main/resources/lang/artifactMessages_de_DE.properties --- 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] diff -r bb1afbbd93e4 -r 2e43542e6a11 gnv-artifacts/src/main/resources/lang/artifactMessages_en.properties --- 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]