From: felix Date: Thu, 17 May 2007 14:41:59 +0000 (+0000) Subject: - Code Formatierung durch eclipse X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=28bf96c92c22e09dd3fbe378bdb40cc4a1b2b96a;p=bytewurf.git - Code Formatierung durch eclipse git-svn-id: https://www.internetallee.de/svn/bytewurf@41 a944a559-bf0e-0410-8ddc-85264b264b6c --- diff --git a/projekte/netzschalter/src/de/bytewurf/projekte/netzschalter/Oszilloskop.java b/projekte/netzschalter/src/de/bytewurf/projekte/netzschalter/Oszilloskop.java index 0a20c74..a6b86a3 100644 --- a/projekte/netzschalter/src/de/bytewurf/projekte/netzschalter/Oszilloskop.java +++ b/projekte/netzschalter/src/de/bytewurf/projekte/netzschalter/Oszilloskop.java @@ -56,18 +56,21 @@ public class Oszilloskop extends JPanel { (int) size.getHeight() - 2 * border_y); if (data != null) { - double factor_x = (size.getWidth() - border_x * 2.0) / (data.size() -1); + double factor_x = (size.getWidth() - border_x * 2.0) + / (data.size() - 1); double factor_y = (size.getHeight() - border_y * 2.0) / (max - min); g2d.setPaint(Color.green); int old_y = size.height - - ((int) ((((Integer) data.get(0)).intValue() - min) * factor_y + border_y)); + - ((int) ((((Integer) data.get(0)).intValue() - min) + * factor_y + border_y)); int old_x = border_x; for (int i = 0; i < data.size(); i++) { int x = (int) (border_x + i * factor_x); int y = size.height - - ((int) ((((Integer) data.get(i)).intValue() - min) * factor_y + border_y)); + - ((int) ((((Integer) data.get(i)).intValue() - min) + * factor_y + border_y)); g2d.draw(new Line2D.Double(old_x, old_y, x, y)); old_x = x; old_y = y; @@ -99,20 +102,24 @@ public class Oszilloskop extends JPanel { public void setData(int[] newData) { this.data.clear(); - for (int i=0; i