removed gui code for stage instance rotation. Meaning is ambiguous.

This commit is contained in:
Daniel_M_Williams 2015-06-27 16:57:49 -04:00
parent 2729c426b2
commit 8b4c1c386b

View File

@ -95,19 +95,20 @@ public class StageConfig extends RocketComponentConfig {
motherPanel.add( angleUnitSelector, "growx 1, wrap"); motherPanel.add( angleUnitSelector, "growx 1, wrap");
parallelEnabledModel.addEnableComponent( angleUnitSelector , true); parallelEnabledModel.addEnableComponent( angleUnitSelector , true);
// set rotation angle of the stage. Does not affect the location // Not convinced this is a useful option, or that the user will need to modify this.
JLabel rotationLabel = new JLabel(trans.get("RocketCompCfg.outside.rotation")); // // set rotation angle of the stage. Does not affect the location
motherPanel.add( rotationLabel, "align left"); // JLabel rotationLabel = new JLabel(trans.get("RocketCompCfg.outside.rotation"));
parallelEnabledModel.addEnableComponent( rotationLabel, true); // motherPanel.add( rotationLabel, "align left");
DoubleModel rotationModel = new DoubleModel( stage, "Rotation", 1.0, UnitGroup.UNITS_ANGLE, 0.0, Math.PI*2); // parallelEnabledModel.addEnableComponent( rotationLabel, true);
rotationModel.setCurrentUnit( UnitGroup.UNITS_ANGLE.getUnit("rad") ); // DoubleModel rotationModel = new DoubleModel( stage, "Rotation", 1.0, UnitGroup.UNITS_ANGLE, 0.0, Math.PI*2);
JSpinner rotationSpinner = new JSpinner(rotationModel.getSpinnerModel()); // rotationModel.setCurrentUnit( UnitGroup.UNITS_ANGLE.getUnit("rad") );
rotationSpinner.setEditor(new SpinnerEditor(rotationSpinner)); // JSpinner rotationSpinner = new JSpinner(rotationModel.getSpinnerModel());
motherPanel.add(rotationSpinner, "growx 1"); // rotationSpinner.setEditor(new SpinnerEditor(rotationSpinner));
parallelEnabledModel.addEnableComponent( rotationSpinner, true); // motherPanel.add(rotationSpinner, "growx 1");
UnitSelector rotationUnitSelector = new UnitSelector( rotationModel); // parallelEnabledModel.addEnableComponent( rotationSpinner, true);
motherPanel.add( rotationUnitSelector, "growx 1, wrap"); // UnitSelector rotationUnitSelector = new UnitSelector( rotationModel);
parallelEnabledModel.addEnableComponent( rotationUnitSelector , true); // motherPanel.add( rotationUnitSelector, "growx 1, wrap");
// parallelEnabledModel.addEnableComponent( rotationUnitSelector , true);
// set multiplicity // set multiplicity
JLabel countLabel = new JLabel(trans.get("RocketCompCfg.outside.count")); JLabel countLabel = new JLabel(trans.get("RocketCompCfg.outside.count"));