diff flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java @ 2728:306b9d0f0fb3

Cosmetics. flys-artifacts/trunk@4461 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 22 May 2012 15:29:54 +0000
parents 99350b06a780
children 5e8e42a36a90
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java	Tue May 22 13:34:17 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java	Tue May 22 15:29:54 2012 +0000
@@ -221,17 +221,13 @@
         logger.debug("CrossSectionGenerator.doCrossSectionWaterLineOut");
 
         Lines.LineData lines = (Lines.LineData) o;
-        // DO NOT SORT DATA! This destroys the gaps indicated by NaNs
+        // DO NOT SORT DATA! This destroys the gaps indicated by NaNs.
         StyledXYSeries series = new StyledXYSeries(seriesName, false, theme);
 
         // TODO i18n for all the label text and number format.
         if (ThemeUtil.parseShowWidth(theme)) {
             series.setLabel(series.getLabel() + ", b=" + lines.width + "m");
         }
-        else {
-            // Do not modify.
-            //series.setLabel(series.getLabel());
-        }
         if (ThemeUtil.parseShowLevel(theme) && lines.points.length >0
             && lines.points[1].length > 0) {
             series.setLabel(series.getLabel() + ", W=" + lines.points[1][0] + "NN+m");
@@ -239,9 +235,7 @@
         if (ThemeUtil.parseShowMiddleHeight(theme) && lines.width != 0) {
             series.setLabel(series.getLabel() + ",H=" + lines.area / lines.width + "m : " + lines.area + "/" + lines.width);    
         }
-        // TODO Missing: "mittlere hoehe" (and area but this geos to
-        //                                 the area theme).
-        
+
         StyledSeriesBuilder.addPoints(series, lines.points, false);
 
         addAxisSeries(series, 0, visible);

http://dive4elements.wald.intevation.org