Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/exports/LongitudinalSectionGenerator.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | e4606eae8ea5 |
children | 1cc7653ca84f 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/LongitudinalSectionGenerator.java Thu Jan 18 20:10:59 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/LongitudinalSectionGenerator.java Thu Jan 18 20:12:01 2018 +0100 @@ -92,7 +92,8 @@ public static final String I18N_2YAXIS_LABEL = "chart.longitudinal.section.yaxis.second.label"; - public static final String I18N_CHART_TITLE_DEFAULT = "W-L\u00e4ngsschnitt"; + public static final String I18N_CHART_TITLE_DEFAULT = + "W-L\u00e4ngsschnitt"; public static final String I18N_XAXIS_LABEL_DEFAULT = "km"; public static final String I18N_YAXIS_LABEL_DEFAULT = "W [NN + m]"; public static final String I18N_2YAXIS_LABEL_DEFAULT = "Q [m\u00b3/s]"; @@ -228,7 +229,8 @@ label = msg(getQAxisLabelKey(), getQAxisDefaultLabel()); } else if (index == YAXIS.D.idx) { - label = msg(I18N_WDIFF_YAXIS_LABEL, I18N_WDIFF_YAXIS_LABEL_DEFAULT); + label = msg( + I18N_WDIFF_YAXIS_LABEL, I18N_WDIFF_YAXIS_LABEL_DEFAULT); } return label; @@ -345,19 +347,24 @@ Processor annotationProcessor = new AnnotationProcessor(); if (wProcessor.canHandle(name)) { - wProcessor.doOut(this, artifactAndFacet, attr, visible, YAXIS.W.idx); + wProcessor.doOut( + this, artifactAndFacet, attr, visible, YAXIS.W.idx); } if (qProcessor.canHandle(name)) { - qProcessor.doOut(this, artifactAndFacet, attr, visible, YAXIS.Q.idx); + qProcessor.doOut( + this, artifactAndFacet, attr, visible, YAXIS.Q.idx); } else if (bdyProcessor.canHandle(name)) { - bdyProcessor.doOut(this, artifactAndFacet, attr, visible, YAXIS.W.idx); + bdyProcessor.doOut( + this, artifactAndFacet, attr, visible, YAXIS.W.idx); } else if (bdhyProcessor.canHandle(name)) { - bdhyProcessor.doOut(this, artifactAndFacet, attr, visible, YAXIS.W.idx); + bdhyProcessor.doOut( + this, artifactAndFacet, attr, visible, YAXIS.W.idx); } else if (annotationProcessor.canHandle(name)) { - annotationProcessor.doOut(this, artifactAndFacet, attr, visible, 0); + annotationProcessor.doOut( + this, artifactAndFacet, attr, visible, 0); } else if (name.equals(W_DIFFERENCES)) { doWDifferencesOut( @@ -402,7 +409,8 @@ return; } - XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme); + XYSeries series = + new StyledXYSeries(aandf.getFacetDescription(), theme); if (log.isDebugEnabled()) { if (wkms.size() > 0) { @@ -473,20 +481,24 @@ up = new StyledXYSeries(seriesName, false, theme); if (data.getUpperData() instanceof WQKms) { if (FacetTypes.IS.Q(data.getUpperFacetName())) { - StyledSeriesBuilder.addPointsKmQ(up, (WQKms) data.getUpperData()); + StyledSeriesBuilder.addPointsKmQ( + up, (WQKms)data.getUpperData()); } else { - StyledSeriesBuilder.addPoints(up, (WKms) data.getUpperData()); + StyledSeriesBuilder.addPoints( + up, (WKms) data.getUpperData()); } } else if (data.getUpperData() instanceof double[][]) { - StyledSeriesBuilder.addPoints(up, (double [][]) data.getUpperData(), false); + StyledSeriesBuilder.addPoints( + up, (double [][]) data.getUpperData(), false); } else if (data.getUpperData() instanceof WKms) { StyledSeriesBuilder.addPoints(up, (WKms) data.getUpperData()); } else if (data.getUpperData() instanceof Lines.LineData) { - StyledSeriesBuilder.addPoints(up, ((Lines.LineData) data.getUpperData()).points, false); + StyledSeriesBuilder.addPoints( + up, ((Lines.LineData) data.getUpperData()).points, false); } else { log.error("Do not know how to deal with (up) area info from: " @@ -494,7 +506,8 @@ } } - // TODO Depending on style, the area (e.g. 20m^2) should be added as annotation. + // TODO Depending on style, the area (e.g. 20m^2) + // should be added as annotation. if (data.getLowerData() != null) { // TODO: Sort this out: when the two series have the same name, @@ -502,23 +515,31 @@ down = new StyledXYSeries(seriesName + " ", false, theme); if (data.getLowerData() instanceof WQKms) { if (FacetTypes.IS.Q(data.getLowerFacetName())) { - StyledSeriesBuilder.addPointsKmQ(down, (WQKms) data.getLowerData()); + StyledSeriesBuilder.addPointsKmQ( + down, (WQKms) data.getLowerData()); } else { - StyledSeriesBuilder.addPoints(down, (WQKms) data.getLowerData()); + StyledSeriesBuilder.addPoints( + down, (WQKms) data.getLowerData()); } } else if (data.getLowerData() instanceof double[][]) { - StyledSeriesBuilder.addPoints(down, (double[][]) data.getLowerData(), false); + StyledSeriesBuilder.addPoints( + down, (double[][]) data.getLowerData(), false); } else if (data.getLowerData() instanceof WKms) { - StyledSeriesBuilder.addPoints(down, (WKms) data.getLowerData()); + StyledSeriesBuilder.addPoints( + down, (WKms) data.getLowerData()); } else if (data.getLowerData() instanceof Lines.LineData) { - StyledSeriesBuilder.addPoints(down, ((Lines.LineData) data.getLowerData()).points, false); + StyledSeriesBuilder.addPoints( + down, + ((Lines.LineData) data.getLowerData()).points, + false); } else { - log.error("Do not know how to deal with (down) area info from: " + log.error( + "Do not know how to deal with (down) area info from: " + data.getLowerData()); } }