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());
}
}
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);
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);
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);
}
*/
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;
}
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;
is = ClassLoader.getSystemResourceAsStream(file);
if (is == null) {
- System.out.println("ERROR: File " + file + " not found!");
+ //System.out.println("ERROR: File " + file + " not found!");
return;
}
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++) {
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;
}
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());
}
}
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);
}
}
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));
final double l = length / DIVISIONS;
r1 = getRadius(0);
- System.out.println(r1);
+ //System.out.println(r1);
x = 0;
longitudinalInertia = 0;