diff artifacts/src/main/java/org/dive4elements/river/jfree/StableXYDifferenceRenderer.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 c4654863108d
children d9c89651bd67 0a5239a1e46e
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/jfree/StableXYDifferenceRenderer.java	Thu Jan 18 20:10:59 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/jfree/StableXYDifferenceRenderer.java	Thu Jan 18 20:12:01 2018 +0100
@@ -147,7 +147,8 @@
 public class StableXYDifferenceRenderer extends AbstractXYItemRenderer
         implements XYItemRenderer, PublicCloneable {
 
-    private static Logger log = Logger.getLogger(StableXYDifferenceRenderer.class);
+    private static Logger log = Logger.getLogger(
+        StableXYDifferenceRenderer.class);
 
     public static final int CALCULATE_POSITIVE_AREA = 1;
     public static final int CALCULATE_NEGATIVE_AREA = 2;
@@ -969,8 +970,13 @@
                     dataset, series, item, crosshairState);
         }
 
-        // Find geometric middle, calculate area and paint a string with it here.
-        if (pass == 1 && this.labelArea && areaLabelNumberFormat != null && areaLabelTamplate != null) {
+        // Find geometric middle, calculate area and paint
+        // a string with it here.
+        if (pass == 1
+            && this.labelArea
+            && areaLabelNumberFormat != null
+            && areaLabelTamplate != null
+        ) {
             double center_x = centroid.getX();
             double center_y = centroid.getY();
             center_x = domainAxis.valueToJava2D(center_x, dataArea,
@@ -1821,7 +1827,8 @@
                     //        toolTipText, urlText, line, stroke, paint);
 
                     if (drawOutline) {
-                        // TODO Include outline style in legenditem (there is a constructor for that)
+                        // TODO Include outline style in legenditem
+                        // (there is a constructor for that)
                     }
 
                     // Filled Shape ("Area-Style").
@@ -1888,7 +1895,8 @@
      * @throws CloneNotSupportedException  if the renderer cannot be cloned.
      */
     public Object clone() throws CloneNotSupportedException {
-        StableXYDifferenceRenderer clone = (StableXYDifferenceRenderer) super.clone();
+        StableXYDifferenceRenderer clone =
+            (StableXYDifferenceRenderer) super.clone();
         clone.legendShape = ShapeUtilities.clone(this.legendShape);
         return clone;
     }

http://dive4elements.wald.intevation.org