Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java Wed May 09 19:03:54 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java Wed May 09 20:05:46 2012 +0000 @@ -232,9 +232,14 @@ // Do not modify. //series.setLabel(series.getLabel()); } - if (ThemeUtil.parseShowLevel(theme) && lines.points.length >0 && lines.points[1].length > 0) { + if (ThemeUtil.parseShowLevel(theme) && lines.points.length >0 + && lines.points[1].length > 0) { series.setLabel(series.getLabel() + ", W=" + lines.points[1][0] + "NN+m"); } + if (ThemeUtil.parseShowMiddleHeight(theme) && lines.points.length >0 + && lines.points[1].length > 0) { + series.setLabel(series.getLabel() + ",H=" + lines.area / lines.points[1][0] + "m"); + } // TODO Missing: "mittlere hoehe" (and area but this geos to // the area theme).