Fix inputting negative rotation angle values of various components
This commit is contained in:
parent
9c6b275e84
commit
ddc8f2e57c
@ -1,3 +1,7 @@
|
|||||||
|
2012-03-27 Sampo Niskanen
|
||||||
|
|
||||||
|
* [BUG] Inputting negative rotation angle values of components
|
||||||
|
|
||||||
2012-03-25 Sampo Niskanen
|
2012-03-25 Sampo Niskanen
|
||||||
|
|
||||||
* [BUG] Removed locale-specific toLowerCase/toUpperCase
|
* [BUG] Removed locale-specific toLowerCase/toUpperCase
|
||||||
|
@ -52,7 +52,7 @@ public class EllipticalFinSetConfig extends FinSetConfig {
|
|||||||
//// Base rotation
|
//// Base rotation
|
||||||
panel.add(new JLabel(trans.get("EllipticalFinSetCfg.Rotation")));
|
panel.add(new JLabel(trans.get("EllipticalFinSetCfg.Rotation")));
|
||||||
|
|
||||||
m = new DoubleModel(component, "BaseRotation", UnitGroup.UNITS_ANGLE, -Math.PI, Math.PI);
|
m = new DoubleModel(component, "BaseRotation", UnitGroup.UNITS_ANGLE);
|
||||||
|
|
||||||
spin = new JSpinner(m.getSpinnerModel());
|
spin = new JSpinner(m.getSpinnerModel());
|
||||||
spin.setEditor(new SpinnerEditor(spin));
|
spin.setEditor(new SpinnerEditor(spin));
|
||||||
@ -118,7 +118,7 @@ public class EllipticalFinSetConfig extends FinSetConfig {
|
|||||||
RocketComponent.Position.MIDDLE,
|
RocketComponent.Position.MIDDLE,
|
||||||
RocketComponent.Position.BOTTOM,
|
RocketComponent.Position.BOTTOM,
|
||||||
RocketComponent.Position.ABSOLUTE
|
RocketComponent.Position.ABSOLUTE
|
||||||
}));
|
}));
|
||||||
panel.add(combo, "spanx, growx, wrap");
|
panel.add(combo, "spanx, growx, wrap");
|
||||||
|
|
||||||
//// plus
|
//// plus
|
||||||
|
@ -104,7 +104,7 @@ public class FreeformFinSetConfig extends FinSetConfig {
|
|||||||
//// Base rotation
|
//// Base rotation
|
||||||
panel.add(new JLabel(trans.get("FreeformFinSetCfg.lbl.Finrotation")));
|
panel.add(new JLabel(trans.get("FreeformFinSetCfg.lbl.Finrotation")));
|
||||||
|
|
||||||
m = new DoubleModel(component, "BaseRotation", UnitGroup.UNITS_ANGLE, -Math.PI, Math.PI);
|
m = new DoubleModel(component, "BaseRotation", UnitGroup.UNITS_ANGLE);
|
||||||
|
|
||||||
spin = new JSpinner(m.getSpinnerModel());
|
spin = new JSpinner(m.getSpinnerModel());
|
||||||
spin.setEditor(new SpinnerEditor(spin));
|
spin.setEditor(new SpinnerEditor(spin));
|
||||||
|
@ -93,8 +93,7 @@ public class LaunchLugConfig extends RocketComponentConfig {
|
|||||||
//// Radial position:
|
//// Radial position:
|
||||||
panel.add(new JLabel(trans.get("LaunchLugCfg.lbl.Radialpos")));
|
panel.add(new JLabel(trans.get("LaunchLugCfg.lbl.Radialpos")));
|
||||||
|
|
||||||
m = new DoubleModel(component, "RadialDirection", UnitGroup.UNITS_ANGLE,
|
m = new DoubleModel(component, "RadialDirection", UnitGroup.UNITS_ANGLE);
|
||||||
-Math.PI, Math.PI);
|
|
||||||
|
|
||||||
spin = new JSpinner(m.getSpinnerModel());
|
spin = new JSpinner(m.getSpinnerModel());
|
||||||
spin.setEditor(new SpinnerEditor(spin));
|
spin.setEditor(new SpinnerEditor(spin));
|
||||||
@ -121,7 +120,7 @@ public class LaunchLugConfig extends RocketComponentConfig {
|
|||||||
RocketComponent.Position.MIDDLE,
|
RocketComponent.Position.MIDDLE,
|
||||||
RocketComponent.Position.BOTTOM,
|
RocketComponent.Position.BOTTOM,
|
||||||
RocketComponent.Position.ABSOLUTE
|
RocketComponent.Position.ABSOLUTE
|
||||||
}));
|
}));
|
||||||
panel.add(combo, "spanx, growx, wrap");
|
panel.add(combo, "spanx, growx, wrap");
|
||||||
|
|
||||||
//// plus
|
//// plus
|
||||||
|
@ -88,7 +88,7 @@ public class MassComponentConfig extends RocketComponentConfig {
|
|||||||
RocketComponent.Position.MIDDLE,
|
RocketComponent.Position.MIDDLE,
|
||||||
RocketComponent.Position.BOTTOM,
|
RocketComponent.Position.BOTTOM,
|
||||||
RocketComponent.Position.ABSOLUTE
|
RocketComponent.Position.ABSOLUTE
|
||||||
}));
|
}));
|
||||||
panel.add(combo, "spanx, growx, wrap");
|
panel.add(combo, "spanx, growx, wrap");
|
||||||
//// plus
|
//// plus
|
||||||
panel.add(new JLabel(trans.get("MassComponentCfg.lbl.plus")), "right");
|
panel.add(new JLabel(trans.get("MassComponentCfg.lbl.plus")), "right");
|
||||||
@ -134,7 +134,7 @@ public class MassComponentConfig extends RocketComponentConfig {
|
|||||||
//// Radial direction:
|
//// Radial direction:
|
||||||
panel.add(new JLabel(trans.get("MassComponentCfg.lbl.Radialdirection")));
|
panel.add(new JLabel(trans.get("MassComponentCfg.lbl.Radialdirection")));
|
||||||
|
|
||||||
m = new DoubleModel(component, "RadialDirection", UnitGroup.UNITS_ANGLE, 0);
|
m = new DoubleModel(component, "RadialDirection", UnitGroup.UNITS_ANGLE);
|
||||||
|
|
||||||
spin = new JSpinner(m.getSpinnerModel());
|
spin = new JSpinner(m.getSpinnerModel());
|
||||||
spin.setEditor(new SpinnerEditor(spin));
|
spin.setEditor(new SpinnerEditor(spin));
|
||||||
|
@ -262,7 +262,7 @@ public class ParachuteConfig extends RecoveryDeviceConfig {
|
|||||||
//// Radial direction:
|
//// Radial direction:
|
||||||
panel.add(new JLabel(trans.get("ParachuteCfg.lbl.Radialdirection")));
|
panel.add(new JLabel(trans.get("ParachuteCfg.lbl.Radialdirection")));
|
||||||
|
|
||||||
m = new DoubleModel(component, "RadialDirection", UnitGroup.UNITS_ANGLE, 0);
|
m = new DoubleModel(component, "RadialDirection", UnitGroup.UNITS_ANGLE);
|
||||||
|
|
||||||
spin = new JSpinner(m.getSpinnerModel());
|
spin = new JSpinner(m.getSpinnerModel());
|
||||||
spin.setEditor(new SpinnerEditor(spin));
|
spin.setEditor(new SpinnerEditor(spin));
|
||||||
|
@ -137,7 +137,7 @@ public class RingComponentConfig extends RocketComponentConfig {
|
|||||||
RocketComponent.Position.MIDDLE,
|
RocketComponent.Position.MIDDLE,
|
||||||
RocketComponent.Position.BOTTOM,
|
RocketComponent.Position.BOTTOM,
|
||||||
RocketComponent.Position.ABSOLUTE
|
RocketComponent.Position.ABSOLUTE
|
||||||
}));
|
}));
|
||||||
panel.add(combo, "spanx 3, growx, wrap");
|
panel.add(combo, "spanx 3, growx, wrap");
|
||||||
|
|
||||||
//// plus
|
//// plus
|
||||||
@ -202,7 +202,7 @@ public class RingComponentConfig extends RocketComponentConfig {
|
|||||||
l.setToolTipText(trans.get("ringcompcfg.radialdirectionfrom"));
|
l.setToolTipText(trans.get("ringcompcfg.radialdirectionfrom"));
|
||||||
panel.add(l);
|
panel.add(l);
|
||||||
|
|
||||||
m = new DoubleModel(component, "RadialDirection", UnitGroup.UNITS_ANGLE, 0);
|
m = new DoubleModel(component, "RadialDirection", UnitGroup.UNITS_ANGLE);
|
||||||
|
|
||||||
spin = new JSpinner(m.getSpinnerModel());
|
spin = new JSpinner(m.getSpinnerModel());
|
||||||
spin.setEditor(new SpinnerEditor(spin));
|
spin.setEditor(new SpinnerEditor(spin));
|
||||||
|
@ -143,7 +143,7 @@ public class StreamerConfig extends RecoveryDeviceConfig {
|
|||||||
RocketComponent.Position.MIDDLE,
|
RocketComponent.Position.MIDDLE,
|
||||||
RocketComponent.Position.BOTTOM,
|
RocketComponent.Position.BOTTOM,
|
||||||
RocketComponent.Position.ABSOLUTE
|
RocketComponent.Position.ABSOLUTE
|
||||||
}));
|
}));
|
||||||
panel.add(combo, "spanx, growx, wrap");
|
panel.add(combo, "spanx, growx, wrap");
|
||||||
|
|
||||||
//// plus
|
//// plus
|
||||||
@ -265,7 +265,7 @@ public class StreamerConfig extends RecoveryDeviceConfig {
|
|||||||
//// Radial direction:
|
//// Radial direction:
|
||||||
panel.add(new JLabel(trans.get("StreamerCfg.lbl.Radialdirection")));
|
panel.add(new JLabel(trans.get("StreamerCfg.lbl.Radialdirection")));
|
||||||
|
|
||||||
m = new DoubleModel(component, "RadialDirection", UnitGroup.UNITS_ANGLE, 0);
|
m = new DoubleModel(component, "RadialDirection", UnitGroup.UNITS_ANGLE);
|
||||||
|
|
||||||
spin = new JSpinner(m.getSpinnerModel());
|
spin = new JSpinner(m.getSpinnerModel());
|
||||||
spin.setEditor(new SpinnerEditor(spin));
|
spin.setEditor(new SpinnerEditor(spin));
|
||||||
|
@ -62,7 +62,7 @@ public class TrapezoidFinSetConfig extends FinSetConfig {
|
|||||||
label.setToolTipText(trans.get("TrapezoidFinSetCfg.lbl.ttip.Finrotation"));
|
label.setToolTipText(trans.get("TrapezoidFinSetCfg.lbl.ttip.Finrotation"));
|
||||||
panel.add(label);
|
panel.add(label);
|
||||||
|
|
||||||
m = new DoubleModel(component, "BaseRotation", UnitGroup.UNITS_ANGLE, -Math.PI, Math.PI);
|
m = new DoubleModel(component, "BaseRotation", UnitGroup.UNITS_ANGLE);
|
||||||
|
|
||||||
spin = new JSpinner(m.getSpinnerModel());
|
spin = new JSpinner(m.getSpinnerModel());
|
||||||
spin.setEditor(new SpinnerEditor(spin));
|
spin.setEditor(new SpinnerEditor(spin));
|
||||||
@ -207,7 +207,7 @@ public class TrapezoidFinSetConfig extends FinSetConfig {
|
|||||||
RocketComponent.Position.MIDDLE,
|
RocketComponent.Position.MIDDLE,
|
||||||
RocketComponent.Position.BOTTOM,
|
RocketComponent.Position.BOTTOM,
|
||||||
RocketComponent.Position.ABSOLUTE
|
RocketComponent.Position.ABSOLUTE
|
||||||
}));
|
}));
|
||||||
panel.add(combo, "spanx, growx, wrap");
|
panel.add(combo, "spanx, growx, wrap");
|
||||||
//// plus
|
//// plus
|
||||||
panel.add(new JLabel(trans.get("TrapezoidFinSetCfg.lbl.plus")), "right");
|
panel.add(new JLabel(trans.get("TrapezoidFinSetCfg.lbl.plus")), "right");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user