Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java @ 1673:68260e38029a
Modified code to determine the elevation model of Wsts in the LongitudinalSectionGenerator.
flys-artifacts/trunk@2886 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 04 Oct 2011 15:30:09 +0000 |
parents | f1af0c07a6ee |
children | dd9dfe1e48fa |
comparison
equal
deleted
inserted
replaced
1672:0b6dac664bbb | 1673:68260e38029a |
---|---|
24 import de.intevation.flys.artifacts.FLYSArtifact; | 24 import de.intevation.flys.artifacts.FLYSArtifact; |
25 | 25 |
26 import de.intevation.flys.artifacts.model.FacetTypes; | 26 import de.intevation.flys.artifacts.model.FacetTypes; |
27 import de.intevation.flys.artifacts.model.WQKms; | 27 import de.intevation.flys.artifacts.model.WQKms; |
28 | 28 |
29 import de.intevation.flys.artifacts.model.WstFactory; | |
30 import de.intevation.flys.jfree.StickyAxisAnnotation; | 29 import de.intevation.flys.jfree.StickyAxisAnnotation; |
31 import de.intevation.flys.model.Annotation; | 30 import de.intevation.flys.model.Annotation; |
32 import de.intevation.flys.model.Wst; | |
33 import de.intevation.flys.utils.FLYSUtils; | 31 import de.intevation.flys.utils.FLYSUtils; |
34 | 32 |
35 | 33 |
36 /** | 34 /** |
37 * An OutGenerator that generates discharge curves. | 35 * An OutGenerator that generates discharge curves. |
133 | 131 |
134 | 132 |
135 protected String getYAxisLabel() { | 133 protected String getYAxisLabel() { |
136 FLYSArtifact flys = (FLYSArtifact) master; | 134 FLYSArtifact flys = (FLYSArtifact) master; |
137 | 135 |
138 Wst wst = WstFactory.getWst(FLYSUtils.getRiver(flys)); | 136 String unit = FLYSUtils.getRiver(flys).getWstUnit().getName(); |
139 String unit = wst.getUnit().getName(); | |
140 | 137 |
141 return msg( | 138 return msg( |
142 I18N_YAXIS_LABEL, | 139 I18N_YAXIS_LABEL, |
143 I18N_YAXIS_LABEL_DEFAULT, | 140 I18N_YAXIS_LABEL_DEFAULT, |
144 new Object[] { unit }); | 141 new Object[] { unit }); |