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
|
||||
|
||||
* [BUG] Removed locale-specific toLowerCase/toUpperCase
|
||||
|
@ -52,7 +52,7 @@ public class EllipticalFinSetConfig extends FinSetConfig {
|
||||
//// Base 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.setEditor(new SpinnerEditor(spin));
|
||||
|
@ -104,7 +104,7 @@ public class FreeformFinSetConfig extends FinSetConfig {
|
||||
//// Base rotation
|
||||
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.setEditor(new SpinnerEditor(spin));
|
||||
|
@ -93,8 +93,7 @@ public class LaunchLugConfig extends RocketComponentConfig {
|
||||
//// Radial position:
|
||||
panel.add(new JLabel(trans.get("LaunchLugCfg.lbl.Radialpos")));
|
||||
|
||||
m = new DoubleModel(component, "RadialDirection", UnitGroup.UNITS_ANGLE,
|
||||
-Math.PI, Math.PI);
|
||||
m = new DoubleModel(component, "RadialDirection", UnitGroup.UNITS_ANGLE);
|
||||
|
||||
spin = new JSpinner(m.getSpinnerModel());
|
||||
spin.setEditor(new SpinnerEditor(spin));
|
||||
|
@ -134,7 +134,7 @@ public class MassComponentConfig extends RocketComponentConfig {
|
||||
//// Radial direction:
|
||||
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.setEditor(new SpinnerEditor(spin));
|
||||
|
@ -262,7 +262,7 @@ public class ParachuteConfig extends RecoveryDeviceConfig {
|
||||
//// Radial direction:
|
||||
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.setEditor(new SpinnerEditor(spin));
|
||||
|
@ -202,7 +202,7 @@ public class RingComponentConfig extends RocketComponentConfig {
|
||||
l.setToolTipText(trans.get("ringcompcfg.radialdirectionfrom"));
|
||||
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.setEditor(new SpinnerEditor(spin));
|
||||
|
@ -265,7 +265,7 @@ public class StreamerConfig extends RecoveryDeviceConfig {
|
||||
//// Radial direction:
|
||||
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.setEditor(new SpinnerEditor(spin));
|
||||
|
@ -62,7 +62,7 @@ public class TrapezoidFinSetConfig extends FinSetConfig {
|
||||
label.setToolTipText(trans.get("TrapezoidFinSetCfg.lbl.ttip.Finrotation"));
|
||||
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.setEditor(new SpinnerEditor(spin));
|
||||
|
Loading…
x
Reference in New Issue
Block a user