comparison 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
comparison
equal deleted inserted replaced
2727:7fdfb1770d21 2728:306b9d0f0fb3
219 boolean visible 219 boolean visible
220 ) { 220 ) {
221 logger.debug("CrossSectionGenerator.doCrossSectionWaterLineOut"); 221 logger.debug("CrossSectionGenerator.doCrossSectionWaterLineOut");
222 222
223 Lines.LineData lines = (Lines.LineData) o; 223 Lines.LineData lines = (Lines.LineData) o;
224 // DO NOT SORT DATA! This destroys the gaps indicated by NaNs 224 // DO NOT SORT DATA! This destroys the gaps indicated by NaNs.
225 StyledXYSeries series = new StyledXYSeries(seriesName, false, theme); 225 StyledXYSeries series = new StyledXYSeries(seriesName, false, theme);
226 226
227 // TODO i18n for all the label text and number format. 227 // TODO i18n for all the label text and number format.
228 if (ThemeUtil.parseShowWidth(theme)) { 228 if (ThemeUtil.parseShowWidth(theme)) {
229 series.setLabel(series.getLabel() + ", b=" + lines.width + "m"); 229 series.setLabel(series.getLabel() + ", b=" + lines.width + "m");
230 } 230 }
231 else {
232 // Do not modify.
233 //series.setLabel(series.getLabel());
234 }
235 if (ThemeUtil.parseShowLevel(theme) && lines.points.length >0 231 if (ThemeUtil.parseShowLevel(theme) && lines.points.length >0
236 && lines.points[1].length > 0) { 232 && lines.points[1].length > 0) {
237 series.setLabel(series.getLabel() + ", W=" + lines.points[1][0] + "NN+m"); 233 series.setLabel(series.getLabel() + ", W=" + lines.points[1][0] + "NN+m");
238 } 234 }
239 if (ThemeUtil.parseShowMiddleHeight(theme) && lines.width != 0) { 235 if (ThemeUtil.parseShowMiddleHeight(theme) && lines.width != 0) {
240 series.setLabel(series.getLabel() + ",H=" + lines.area / lines.width + "m : " + lines.area + "/" + lines.width); 236 series.setLabel(series.getLabel() + ",H=" + lines.area / lines.width + "m : " + lines.area + "/" + lines.width);
241 } 237 }
242 // TODO Missing: "mittlere hoehe" (and area but this geos to 238
243 // the area theme).
244
245 StyledSeriesBuilder.addPoints(series, lines.points, false); 239 StyledSeriesBuilder.addPoints(series, lines.points, false);
246 240
247 addAxisSeries(series, 0, visible); 241 addAxisSeries(series, 0, visible);
248 } 242 }
249 243

http://dive4elements.wald.intevation.org