Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator.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 | 6dfc3a1fc70d |
children | a7f1d4c9add4 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator.java Thu Jan 18 20:10:59 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator.java Thu Jan 18 20:12:01 2018 +0100 @@ -118,7 +118,7 @@ protected D4EArtifactCollection collection; - /** The artifact that is used to decorate the chart with meta information.*/ + /** Artifact that is used to decorate the chart with meta information.*/ protected Artifact master; /** The settings that should be used during output creation.*/ @@ -128,7 +128,8 @@ protected SortedMap<Integer, AxisDataset> datasets; /** List of annotations to insert in plot. */ - protected List<RiverAnnotation> annotations = new ArrayList<RiverAnnotation>(); + protected List<RiverAnnotation> annotations = + new ArrayList<RiverAnnotation>(); protected String outName; @@ -370,7 +371,12 @@ @Override - public void init(String outName, Document request, OutputStream out, CallContext context) { + public void init( + String outName, + Document request, + OutputStream out, + CallContext context + ) { log.debug("ChartGenerator.init"); this.outName = outName; @@ -410,7 +416,7 @@ /** - * Returns an instance of <i>ChartSettings</i> with a chart specific section + * Returns instance of <i>ChartSettings</i> with a chart specific section * but with no axes settings. * * @return an instance of <i>ChartSettings</i>. @@ -486,7 +492,7 @@ /** - * Creates a list of Sections that contains all axes of the chart (including + * Create list of Sections that contains all axes of the chart (including * X and Y axes). * * @return a list of Sections for each axis in this chart. @@ -959,7 +965,8 @@ Long lowerTime = as.getLowerTimeRange(); Long upperTime = as.getUpperTimeRange(); if ( lowerTime != null && upperTime != null ) { - log.debug("Using time range: " + lowerTime + " - " + upperTime); + log.debug("Using time range: " + + lowerTime + " - " + upperTime); return lowerTime < upperTime ? new Range(lowerTime, upperTime) : new Range(upperTime, lowerTime); @@ -1218,7 +1225,8 @@ } - /** Returns null if the (x|y)range-element was not found in request document. + /** Returns null if the (x|y)range-element was not found in + * request document. * This usally means that the axis are not manually zoomed, i.e. showing * full data extent. */ protected String[] getValueAxisRangeFromRequest() { @@ -1280,7 +1288,8 @@ Range.expandToInclude(axisDataset.getRange(), 0d)); } - setYBounds(axisIndex, expandPointRange(axisDataset.getRange())); + setYBounds( + axisIndex, expandPointRange(axisDataset.getRange())); // Add contained datasets, mapping to axis. for (XYDataset dataset: axisDataset.getDatasets()) { @@ -1411,7 +1420,8 @@ area.applyTheme(dRenderer); // i18n - dRenderer.setAreaLabelNumberFormat(Formatter.getFormatter(context.getMeta(), 2, 4)); + dRenderer.setAreaLabelNumberFormat( + Formatter.getFormatter(context.getMeta(), 2, 4)); dRenderer.setAreaLabelTemplate(Resources.getMsg( context.getMeta(), "area.label.template", "Area=%sm2")); @@ -1447,7 +1457,8 @@ } else if (range.getLowerBound() == range.getUpperBound()) { Range expandedRange = ChartHelper.expandRange(range, 5d); - return new DoubleBounds(expandedRange.getLowerBound(), expandedRange.getUpperBound()); + return new DoubleBounds( + expandedRange.getLowerBound(), expandedRange.getUpperBound()); } return new DoubleBounds(range.getLowerBound(), range.getUpperBound());