Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/exports/HistoricalDischargeCurveGenerator.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/HistoricalDischargeCurveGenerator.java Thu Jan 18 20:10:59 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/HistoricalDischargeCurveGenerator.java Thu Jan 18 20:12:01 2018 +0100 @@ -47,15 +47,20 @@ private static Logger log = Logger .getLogger(HistoricalDischargeCurveGenerator.class); - public static final String I18N_CHART_TITLE = "chart.historical.discharge.title"; - - public static final String I18N_CHART_SUBTITLE = "chart.historical.discharge.subtitle"; + public static final String I18N_CHART_TITLE = + "chart.historical.discharge.title"; - public static final String I18N_XAXIS_LABEL = "chart.historical.discharge.xaxis.label"; + public static final String I18N_CHART_SUBTITLE = + "chart.historical.discharge.subtitle"; - public static final String I18N_YAXIS_LABEL = "chart.historical.discharge.yaxis.label"; + public static final String I18N_XAXIS_LABEL = + "chart.historical.discharge.xaxis.label"; - public static final String I18N_YAXIS_SECOND_LABEL = "chart.historical.discharge.yaxis.second.label"; + public static final String I18N_YAXIS_LABEL = + "chart.historical.discharge.yaxis.label"; + + public static final String I18N_YAXIS_SECOND_LABEL = + "chart.historical.discharge.yaxis.second.label"; public static enum YAXIS { W(0), Q(1); @@ -159,7 +164,8 @@ } else if (FacetTypes.IS.MANUALPOINTS(name)) { HistoricalDischargeAccess.EvaluationMode mode = - new HistoricalDischargeAccess((D4EArtifact)getMaster()).getEvaluationMode(); + new HistoricalDischargeAccess( + (D4EArtifact)getMaster()).getEvaluationMode(); int axis = mode == HistoricalDischargeAccess.EvaluationMode.W ? YAXIS.Q.idx : YAXIS.W.idx; @@ -228,7 +234,11 @@ * looks like a "step chart". */ protected TimeSeriesCollection newTimeSeriesCollection( - Timerange[] timeranges, double[] values, ThemeDocument theme, String desc) { + Timerange[] timeranges, + double[] values, + ThemeDocument theme, + String desc + ) { log.debug("Create new TimeSeriesCollection for: " + desc); TimeSeriesCollection tsc = new TimeSeriesCollection(); @@ -263,7 +273,8 @@ } /** - * Creates an array that consists of two <i>FixedMillisecond</i> periods [start, end]. + * Create array that consists of two + * <i>FixedMillisecond</i> periods [start, end]. * * @param timerange * Supports start and end time. @@ -274,7 +285,9 @@ Date start = new Date(timerange.getStart()); Date end = new Date(timerange.getEnd() - 1000 * 60 * 60 * 24); - return new RegularTimePeriod[] { new FixedMillisecond(start), new FixedMillisecond(end) }; + return new RegularTimePeriod[] { + new FixedMillisecond(start), + new FixedMillisecond(end) }; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :