diff artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator2.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 c0c162d7cb0e
children e5f688820951 0a5239a1e46e
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator2.java	Thu Jan 18 20:10:59 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator2.java	Thu Jan 18 20:12:01 2018 +0100
@@ -119,7 +119,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.*/
@@ -132,7 +132,8 @@
     protected SortedMap<Integer, RiverAnnotation> yAnnotations;
 
     /** List of annotations to insert in plot. */
-    protected List<RiverAnnotation> annotations = new ArrayList<RiverAnnotation>();
+    protected List<RiverAnnotation> annotations =
+        new ArrayList<RiverAnnotation>();
 
     protected abstract List<AxisSection> buildYAxisSections();
 
@@ -379,7 +380,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("ChartGenerator2.init");
 
         this.outName = outName;
@@ -419,7 +425,7 @@
 
 
     /**
-     * Returns an instance of <i>ChartSettings</i> with a chart specific section
+     * Return instance of <i>ChartSettings</i> with a chart specific section
      * but with no axes settings.
      *
      * @return an instance of <i>ChartSettings</i>.
@@ -1183,7 +1189,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() {
@@ -1381,7 +1388,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"));
@@ -1417,7 +1425,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());

http://dive4elements.wald.intevation.org