From 7f18855a07c8953b628367d483c5cccf921346b0 Mon Sep 17 00:00:00 2001
From: timmolter <tim.molter@gmail.com>
Date: Sat, 4 Aug 2012 11:19:51 +0200
Subject: [PATCH] formatted

---
 sample/com/xeiam/examples/Example4.java | 52 ++++++++++++-------------
 sample/com/xeiam/examples/Example5.java | 24 ++++++------
 sample/com/xeiam/examples/Example6.java | 22 +++++------
 sample/com/xeiam/examples/Example7.java | 22 +++++------
 4 files changed, 60 insertions(+), 60 deletions(-)

diff --git a/sample/com/xeiam/examples/Example4.java b/sample/com/xeiam/examples/Example4.java
index 2d4cf67a..7e713a16 100644
--- a/sample/com/xeiam/examples/Example4.java
+++ b/sample/com/xeiam/examples/Example4.java
@@ -26,35 +26,35 @@ import com.xeiam.xcharts.QuickChart;
  */
 public class Example4 {
 
-    public static void main(String[] args) {
+  public static void main(String[] args) {
 
-        int numRows = 2;
-        int numCols = 2;
-        Chart[] charts = new Chart[numRows * numCols];
+    int numRows = 2;
+    int numCols = 2;
+    Chart[] charts = new Chart[numRows * numCols];
 
-        int chartCount = 0;
-        for (int i = 0; i < numRows; i++) {
-            for (int j = 0; j < numCols; j++) {
+    int chartCount = 0;
+    for (int i = 0; i < numRows; i++) {
+      for (int j = 0; j < numCols; j++) {
 
-                charts[chartCount++] = QuickChart.getChart(i + "," + j, "X", "Y", null, null, getRandomWalk(1000));
-            }
-        }
-        new SwingWrapper(charts, numRows, numCols).displayChartMatrix();
+        charts[chartCount++] = QuickChart.getChart(i + "," + j, "X", "Y", null, null, getRandomWalk(1000));
+      }
     }
-
-    /**
-     * Generates a set of random walk data
-     * 
-     * @param numPoints
-     * @return
-     */
-    private static double[] getRandomWalk(int numPoints) {
-
-        double[] y = new double[numPoints];
-        y[0] = 0;
-        for (int i = 1; i < y.length; i++) {
-            y[i] = y[i - 1] + Math.random() - .5;
-        }
-        return y;
+    new SwingWrapper(charts, numRows, numCols).displayChartMatrix();
+  }
+
+  /**
+   * Generates a set of random walk data
+   * 
+   * @param numPoints
+   * @return
+   */
+  private static double[] getRandomWalk(int numPoints) {
+
+    double[] y = new double[numPoints];
+    y[0] = 0;
+    for (int i = 1; i < y.length; i++) {
+      y[i] = y[i - 1] + Math.random() - .5;
     }
+    return y;
+  }
 }
diff --git a/sample/com/xeiam/examples/Example5.java b/sample/com/xeiam/examples/Example5.java
index f0a9934a..e1e6440a 100644
--- a/sample/com/xeiam/examples/Example5.java
+++ b/sample/com/xeiam/examples/Example5.java
@@ -25,21 +25,21 @@ import com.xeiam.xcharts.Chart;
  */
 public class Example5 {
 
-    public static void main(String[] args) {
+  public static void main(String[] args) {
 
-        // Create Chart
-        Chart chart = new Chart(700, 500);
+    // Create Chart
+    Chart chart = new Chart(700, 500);
 
-        // Customize Chart
-        chart.setChartTitle("Sample Chart");
-        chart.setXAxisTitle("X");
-        chart.setYAxisTitle("Y");
+    // Customize Chart
+    chart.setChartTitle("Sample Chart");
+    chart.setXAxisTitle("X");
+    chart.setYAxisTitle("Y");
 
-        chart.addSeries("vertical", new double[] { 1, 1 }, new double[] { -10, 10 });
-        chart.addSeries("horizontal", new double[] { -10, 10 }, new double[] { 0, 0 });
+    chart.addSeries("vertical", new double[] { 1, 1 }, new double[] { -10, 10 });
+    chart.addSeries("horizontal", new double[] { -10, 10 }, new double[] { 0, 0 });
 
-        SwingWrapper swingHelper = new SwingWrapper(chart);
-        swingHelper.displayChart();
-    }
+    SwingWrapper swingHelper = new SwingWrapper(chart);
+    swingHelper.displayChart();
+  }
 
 }
diff --git a/sample/com/xeiam/examples/Example6.java b/sample/com/xeiam/examples/Example6.java
index f0b6c77d..6936b7ac 100644
--- a/sample/com/xeiam/examples/Example6.java
+++ b/sample/com/xeiam/examples/Example6.java
@@ -25,20 +25,20 @@ import com.xeiam.xcharts.Chart;
  */
 public class Example6 {
 
-    public static void main(String[] args) {
+  public static void main(String[] args) {
 
-        // Create Chart
-        Chart chart = new Chart(700, 500);
+    // Create Chart
+    Chart chart = new Chart(700, 500);
 
-        // Customize Chart
-        chart.setChartTitle("Sample Chart");
-        chart.setXAxisTitle("X");
-        chart.setYAxisTitle("Y");
+    // Customize Chart
+    chart.setChartTitle("Sample Chart");
+    chart.setXAxisTitle("X");
+    chart.setYAxisTitle("Y");
 
-        chart.addSeries("single point (1,1)", new double[] { 1 }, new double[] { 1 });
+    chart.addSeries("single point (1,1)", new double[] { 1 }, new double[] { 1 });
 
-        SwingWrapper swingHelper = new SwingWrapper(chart);
-        swingHelper.displayChart();
-    }
+    SwingWrapper swingHelper = new SwingWrapper(chart);
+    swingHelper.displayChart();
+  }
 
 }
diff --git a/sample/com/xeiam/examples/Example7.java b/sample/com/xeiam/examples/Example7.java
index c294d43d..82917b70 100644
--- a/sample/com/xeiam/examples/Example7.java
+++ b/sample/com/xeiam/examples/Example7.java
@@ -25,20 +25,20 @@ import com.xeiam.xcharts.Chart;
  */
 public class Example7 {
 
-    public static void main(String[] args) {
+  public static void main(String[] args) {
 
-        // Create Chart
-        Chart chart = new Chart(700, 500);
+    // Create Chart
+    Chart chart = new Chart(700, 500);
 
-        // Customize Chart
-        chart.setChartTitle("Sample Chart");
-        chart.setXAxisTitle("X");
-        chart.setYAxisTitle("Y");
+    // Customize Chart
+    chart.setChartTitle("Sample Chart");
+    chart.setXAxisTitle("X");
+    chart.setYAxisTitle("Y");
 
-        chart.addSeries("NaN Value at (2,2)", null, new double[] { 0, 1, Double.NaN, 3, 4 });
+    chart.addSeries("NaN Value at (2,2)", null, new double[] { 0, 1, Double.NaN, 3, 4 });
 
-        SwingWrapper swingHelper = new SwingWrapper(chart);
-        swingHelper.displayChart();
-    }
+    SwingWrapper swingHelper = new SwingWrapper(chart);
+    swingHelper.displayChart();
+  }
 
 }
-- 
GitLab