comparison flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java @ 2674:2be59d5b342c

Added and respect theme prop whether or not to display (not yet calculated) middle height. flys-artifacts/trunk@4368 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 09 May 2012 20:05:46 +0000
parents 33d61e2a49a2
children 5652a851f1b4
comparison
equal deleted inserted replaced
2673:0143b44631cc 2674:2be59d5b342c
230 } 230 }
231 else { 231 else {
232 // Do not modify. 232 // Do not modify.
233 //series.setLabel(series.getLabel()); 233 //series.setLabel(series.getLabel());
234 } 234 }
235 if (ThemeUtil.parseShowLevel(theme) && lines.points.length >0 && lines.points[1].length > 0) { 235 if (ThemeUtil.parseShowLevel(theme) && lines.points.length >0
236 && lines.points[1].length > 0) {
236 series.setLabel(series.getLabel() + ", W=" + lines.points[1][0] + "NN+m"); 237 series.setLabel(series.getLabel() + ", W=" + lines.points[1][0] + "NN+m");
238 }
239 if (ThemeUtil.parseShowMiddleHeight(theme) && lines.points.length >0
240 && lines.points[1].length > 0) {
241 series.setLabel(series.getLabel() + ",H=" + lines.area / lines.points[1][0] + "m");
237 } 242 }
238 // TODO Missing: "mittlere hoehe" (and area but this geos to 243 // TODO Missing: "mittlere hoehe" (and area but this geos to
239 // the area theme). 244 // the area theme).
240 245
241 StyledSeriesBuilder.addPoints(series, lines.points); 246 StyledSeriesBuilder.addPoints(series, lines.points);

http://dive4elements.wald.intevation.org