Merge pull request #2075 from SiboVG/issue-2069
[#2069] Add motor type to motor details
This commit is contained in:
commit
022a986130
@ -1382,6 +1382,7 @@ TCMotorSelPan.lbl.Maxthrust = Max. thrust:
|
||||
TCMotorSelPan.lbl.Burntime = Burn time:
|
||||
TCMotorSelPan.lbl.Launchmass = Launch mass:
|
||||
TCMotorSelPan.lbl.Emptymass = Empty mass:
|
||||
TCMotorSelPan.lbl.Motortype = Motor type:
|
||||
TCMotorSelPan.lbl.Caseinfo = Case info:
|
||||
TCMotorSelPan.lbl.Propinfo = Propellant:
|
||||
TCMotorSelPan.lbl.CompatibleCases = Compatible Cases:
|
||||
|
@ -60,6 +60,7 @@ class MotorInformationPanel extends JPanel {
|
||||
private final JLabel burnTimeLabel;
|
||||
private final JLabel launchMassLabel;
|
||||
private final JLabel emptyMassLabel;
|
||||
private final JLabel motorTypeLabel;
|
||||
private final JLabel caseInfoLabel;
|
||||
private final JLabel propInfoLabel;
|
||||
private final JLabel dataPointsLabel;
|
||||
@ -123,6 +124,11 @@ class MotorInformationPanel extends JPanel {
|
||||
emptyMassLabel = new JLabel();
|
||||
this.add(emptyMassLabel, "wrap");
|
||||
|
||||
//// Motor type
|
||||
this.add(new JLabel(trans.get("TCMotorSelPan.lbl.Motortype")));
|
||||
motorTypeLabel = new JLabel();
|
||||
this.add(motorTypeLabel, "wrap");
|
||||
|
||||
//// case info:
|
||||
this.add(new JLabel(trans.get("TCMotorSelPan.lbl.Caseinfo")));
|
||||
caseInfoLabel = new JLabel();
|
||||
@ -246,6 +252,7 @@ class MotorInformationPanel extends JPanel {
|
||||
burnTimeLabel.setText("");
|
||||
launchMassLabel.setText("");
|
||||
emptyMassLabel.setText("");
|
||||
motorTypeLabel.setText("");
|
||||
caseInfoLabel.setText("");
|
||||
propInfoLabel.setText("");
|
||||
compatibleCasesLabel.setText("");
|
||||
@ -287,6 +294,7 @@ class MotorInformationPanel extends JPanel {
|
||||
selectedMotor.getLaunchMass()));
|
||||
emptyMassLabel.setText(UnitGroup.UNITS_MASS.getDefaultUnit().toStringUnit(
|
||||
selectedMotor.getBurnoutMass()));
|
||||
motorTypeLabel.setText(selectedMotor.getMotorType().getName());
|
||||
caseInfoLabel.setText(selectedMotor.getCaseInfo());
|
||||
propInfoLabel.setText(selectedMotor.getPropellantInfo());
|
||||
compatibleCasesLabel.setText("<html>" + StringUtils.join(", ",selectedMotor.getCompatibleCases()) + "<html>");
|
||||
|
Loading…
x
Reference in New Issue
Block a user