Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java @ 2688:99350b06a780
Improved middle height calculations.
flys-artifacts/trunk@4389 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 11 May 2012 08:45:11 +0000 |
parents | 5652a851f1b4 |
children | 306b9d0f0fb3 |
comparison
equal
deleted
inserted
replaced
2687:dc67ddd4a34c | 2688:99350b06a780 |
---|---|
234 } | 234 } |
235 if (ThemeUtil.parseShowLevel(theme) && lines.points.length >0 | 235 if (ThemeUtil.parseShowLevel(theme) && lines.points.length >0 |
236 && lines.points[1].length > 0) { | 236 && lines.points[1].length > 0) { |
237 series.setLabel(series.getLabel() + ", W=" + lines.points[1][0] + "NN+m"); | 237 series.setLabel(series.getLabel() + ", W=" + lines.points[1][0] + "NN+m"); |
238 } | 238 } |
239 if (ThemeUtil.parseShowMiddleHeight(theme) && lines.points.length >0 | 239 if (ThemeUtil.parseShowMiddleHeight(theme) && lines.width != 0) { |
240 && lines.points[1].length > 0) { | 240 series.setLabel(series.getLabel() + ",H=" + lines.area / lines.width + "m : " + lines.area + "/" + lines.width); |
241 series.setLabel(series.getLabel() + ",H=" + lines.area / lines.points[1][0] + "m"); | |
242 } | 241 } |
243 // TODO Missing: "mittlere hoehe" (and area but this geos to | 242 // TODO Missing: "mittlere hoehe" (and area but this geos to |
244 // the area theme). | 243 // the area theme). |
245 | 244 |
246 StyledSeriesBuilder.addPoints(series, lines.points, false); | 245 StyledSeriesBuilder.addPoints(series, lines.points, false); |