diff flys-artifacts/src/main/java/de/intevation/flys/jfree/JFreeUtil.java @ 3772:5a8f8fd5310c

The usual wipe after for ill configured Eclipses. flys-artifacts/trunk@5477 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sat, 15 Sep 2012 18:11:51 +0000
parents d8f2ab5b61c3
children 080411ac948f
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/jfree/JFreeUtil.java	Sat Sep 15 13:42:44 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/jfree/JFreeUtil.java	Sat Sep 15 18:11:51 2012 +0000
@@ -13,7 +13,7 @@
 import de.intevation.flys.artifacts.math.Function;
 
 public class JFreeUtil {
-    
+
     private static final Logger logger = Logger.getLogger(JFreeUtil.class);
 
     /** Do not instantiate. */
@@ -51,13 +51,13 @@
 
         return false;
     }
-    
-    
+
+
     /**
      * This function samples a randomized line that contains of x and y values
      * between <i>startX</i>, <i>endX</i>, <i>startY</i> and <i>endY</i>. The
      * number of points in the line is specified by <i>num</i>.
-     * 
+     *
      * @param num The number of points in the line.
      * @param startX The min value of the x values.
      * @param endX The max value of the x values.
@@ -77,22 +77,22 @@
         if (num <= 0) {
             throw new IllegalArgumentException("Parameter 'num' has to be > 0");
         }
-        
+
         Random random = new Random();
-        
+
         double[] x = new double[num];
         double[] y = new double[num];
-        
+
         for (int i = 0; i < num; i++) {
             double xFac = random.nextDouble();
             double yFac = random.nextDouble();
-            
+
             x[i] = startX + xFac * (endX - startX);
             y[i] = startY + yFac * (endY - startY);
-            
+
             logger.debug("Created new point: " + x[i] + "|" + y[i]);
         }
-        
+
         return new double[][] { x, y };
     }
 

http://dive4elements.wald.intevation.org