Comment out a bunch of System.out.printlns.
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Thu, 12 Jul 2012 02:46:30 +0000 (02:46 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Thu, 12 Jul 2012 02:46:30 +0000 (02:46 +0000)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@888 180e2498-e6e9-4542-8430-84ac67f01cd8

core/src/net/sf/openrocket/gui/components/StyledLabel.java
core/src/net/sf/openrocket/gui/dialogs/ComponentAnalysisDialog.java
core/src/net/sf/openrocket/gui/dialogs/motor/thrustcurve/ThrustCurveMotorSelectionPanel.java
core/src/net/sf/openrocket/gui/main/SimulationEditDialog.java
core/src/net/sf/openrocket/gui/plot/PlotConfiguration.java
core/src/net/sf/openrocket/gui/plot/SimulationPlotDialog.java
core/src/net/sf/openrocket/gui/scalefigure/FinPointFigure.java
core/src/net/sf/openrocket/gui/util/GUIUtil.java
core/src/net/sf/openrocket/models/atmosphere/ExtendedISAModel.java
core/src/net/sf/openrocket/rocketcomponent/FreeformFinSet.java
core/src/net/sf/openrocket/rocketcomponent/SymmetricComponent.java

index cad8a25ab69fd55813fb8a0b177b8918783a4ab4..70328411b8221c8a8eb7c548e86b8cd1bd3c098e 100644 (file)
@@ -90,8 +90,8 @@ public class StyledLabel extends JLabel {
                if (str.startsWith("<html>") && str.indexOf("<br") < 0) {
                        StyledLabel label = new StyledLabel("plaintext", size, style);
                        label.validate();
-                       System.out.println("Plain-text label: " + label.getPreferredSize());
-                       System.out.println("HTML label: " + this.getPreferredSize());
+                       //System.out.println("Plain-text label: " + label.getPreferredSize());
+                       //System.out.println("HTML label: " + this.getPreferredSize());
                }
        }
        
index 635e6468ecfe5a8b5901ca186a1595ffa0f385a6..aaa01725cae4b530164fc6608231352d3b647d87 100644 (file)
@@ -407,13 +407,13 @@ public class ComponentAnalysisDialog extends JDialog implements ChangeListener {
                this.addWindowListener(new WindowAdapter() {
                        @Override
                        public void windowClosed(WindowEvent e) {
-                               System.out.println("Closing method called: " + this);
+                               //System.out.println("Closing method called: " + this);
                                theta.removeChangeListener(ComponentAnalysisDialog.this);
                                aoa.removeChangeListener(ComponentAnalysisDialog.this);
                                mach.removeChangeListener(ComponentAnalysisDialog.this);
                                roll.removeChangeListener(ComponentAnalysisDialog.this);
                                configuration.removeChangeListener(ComponentAnalysisDialog.this);
-                               System.out.println("SETTING NAN VALUES");
+                               //System.out.println("SETTING NAN VALUES");
                                rocketPanel.setCPAOA(Double.NaN);
                                rocketPanel.setCPTheta(Double.NaN);
                                rocketPanel.setCPMach(Double.NaN);
index 2600cff380ab809f33077da41f7e3bfc09080c7e..a78fec489f0106fd7594c1f3c26c5817da2178e8 100644 (file)
@@ -777,7 +777,7 @@ public class ThrustCurveMotorSelectionPanel extends JPanel implements MotorSelec
        private void scrollSelectionVisible() {
                if (selectedMotorSet != null) {
                        int index = table.convertRowIndexToView(model.getIndex(selectedMotorSet));
-                       System.out.println("index=" + index);
+                       //System.out.println("index=" + index);
                        table.getSelectionModel().setSelectionInterval(index, index);
                        Rectangle rect = table.getCellRect(index, 0, true);
                        rect = new Rectangle(rect.x, rect.y - 100, rect.width, rect.height + 200);
index daba47e716944c9405693f6891c65811d9d11320..0f9f6656cd1a8dda31e14675b4f6b7c751625205 100644 (file)
@@ -126,7 +126,7 @@ public class SimulationEditDialog extends JDialog {
                                String name = field.getText();
                                if (name == null || name.equals(""))
                                        return;
-                               System.out.println("Setting name:" + name);
+                               //System.out.println("Setting name:" + name);
                                simulation.setName(name);
                                
                        }
index bd58782f70b9de073c18412ea3bb42ec319ca65f..8a222562507c2dbcd1219ad63a418fd1ab5093bb 100644 (file)
@@ -358,7 +358,7 @@ public class PlotConfiguration implements Cloneable {
         */
        public PlotConfiguration fillAutoAxes(FlightDataBranch data) {
                PlotConfiguration config = recursiveFillAutoAxes(data).getU();
-               System.out.println("BEST FOUND, fitting");
+               //System.out.println("BEST FOUND, fitting");
                config.fitAxes(data);
                return config;
        }
@@ -483,13 +483,13 @@ public class PlotConfiguration implements Cloneable {
                double scale = Math.max(left.getRangeLength(), right.getRangeLength()) /
                                                Math.min(left.getRangeLength(), right.getRangeLength());
                
-               System.out.println("Scale: " + scale);
+               //System.out.println("Scale: " + scale);
                
                scale = roundScale(scale);
                if (right.getRangeLength() > left.getRangeLength()) {
                        scale = 1 / scale;
                }
-               System.out.println("Rounded scale: " + scale);
+               //System.out.println("Rounded scale: " + scale);
                
                // Scale right axis, enlarge axes if necessary and scale back
                min2 *= scale;
index d26ea7c2b5a74b9f360c5e5dcd26507a5a8d41f2..ada19bfcd8a98b7a7e94ea890e23e4ef24d2b4ac 100644 (file)
@@ -115,7 +115,7 @@ public class SimulationPlotDialog extends JDialog {
                
                is = ClassLoader.getSystemResourceAsStream(file);
                if (is == null) {
-                       System.out.println("ERROR: File " + file + " not found!");
+                       //System.out.println("ERROR: File " + file + " not found!");
                        return;
                }
                
index 0f08be213a67770443bf123493bbfb368af84114..cd5b9490ea6c31d49a3088f65085fc59f1578a99 100644 (file)
@@ -235,8 +235,8 @@ public class FinPointFigure extends AbstractScaleFigure {
                double y0 = p.y / EXTRA_SCALE;
                double delta = BOX_SIZE / scale;
                
-               System.out.println("Point: " + x0 + "," + y0);
-               System.out.println("delta: " + (BOX_SIZE / scale));
+               //System.out.println("Point: " + x0 + "," + y0);
+               //System.out.println("delta: " + (BOX_SIZE / scale));
                
                Coordinate[] points = finset.getFinPoints();
                for (int i = 1; i < points.length; i++) {
@@ -249,7 +249,7 @@ public class FinPointFigure extends AbstractScaleFigure {
                        
                        double u = Math.abs((x2 - x1) * (y1 - y0) - (x1 - x0) * (y2 - y1)) /
                                                MathUtil.hypot(x2 - x1, y2 - y1);
-                       System.out.println("Distance of segment " + i + " is " + u);
+                       //System.out.println("Distance of segment " + i + " is " + u);
                        if (u < delta)
                                return i;
                }
index 2e78d8da0fc146ed0f1946673421438367d218c8..1b19e13e6224453a9a654c3d23c513117a2ea24e 100644 (file)
@@ -356,7 +356,7 @@ public class GUIUtil {
                for (int row = 0; row < table.getRowCount(); row++) {
                        for (int col = 0; col < columns; col++) {
                                Object value = table.getValueAt(row, col);
-                               System.out.println("row=" + row + " col=" + col + " : " + value);
+                               //System.out.println("row=" + row + " col=" + col + " : " + value);
                                widths[col] = Math.max(widths[col], value == null ? 0 : value.toString().length());
                        }
                }
index 6b7eb2b7c3f258f45a97758bff78e6dd361e8c54..eef78b00586d2aacccba042b3f511a95458a7df5 100644 (file)
@@ -115,8 +115,7 @@ public class ExtendedISAModel extends InterpolatingAtmosphericModel {
                        AtmosphericConditions diff = new AtmosphericConditions();
                        diff.setPressure((cond2.getPressure() - cond1.getPressure()) / cond1.getPressure() * 100);
                        diff.setTemperature((cond2.getTemperature() - cond1.getTemperature()) / cond1.getTemperature() * 100);
-                       System.out.println("alt=" + alt +
-                                       ": std:" + cond1 + " mod:" + cond2 + " diff:" + diff);
+                       //System.out.println("alt=" + alt +     ": std:" + cond1 + " mod:" + cond2 + " diff:" + diff);
                }
        }
        
index b0bb0ad716e639cefd2fa048605e311a55d32361..ac52a0f880dd3dcb83089643264285a9422de60e 100644 (file)
@@ -258,7 +258,7 @@ public class FreeformFinSet extends FinSet {
                
                if (index == 0) {
                        
-                       System.out.println("Set point zero to x:" + x);
+                       //System.out.println("Set point zero to x:" + x);
                        for (int i = 1; i < points.size(); i++) {
                                Coordinate c = points.get(i);
                                points.set(i, c.setX(c.x - x));
index 3c80ba6cd2368efc3b3e3a740be2ae32ae9366be..7b455fa8593f306e9c88d019bbda1d9b4bd61c07 100644 (file)
@@ -467,7 +467,7 @@ public abstract class SymmetricComponent extends BodyComponent implements Radial
                final double l = length / DIVISIONS;
                
                r1 = getRadius(0);
-               System.out.println(r1);
+               //System.out.println(r1);
                x = 0;
                
                longitudinalInertia = 0;