X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fnet%2Fsf%2Fopenrocket%2Fgui%2Fplot%2FSimulationPlotPanel.java;h=664d32da21383bb65cd63951b1ef6de9c4d71937;hb=8320c04afa30e2aa0150adc870d02abeedb01066;hp=eb646dc5150d3e43ef092bfb7c27681748a20d40;hpb=6460090e9ec07b12234369583032d02d7c5ed3b1;p=debian%2Fopenrocket diff --git a/src/net/sf/openrocket/gui/plot/SimulationPlotPanel.java b/src/net/sf/openrocket/gui/plot/SimulationPlotPanel.java index eb646dc5..664d32da 100644 --- a/src/net/sf/openrocket/gui/plot/SimulationPlotPanel.java +++ b/src/net/sf/openrocket/gui/plot/SimulationPlotPanel.java @@ -33,9 +33,14 @@ import net.sf.openrocket.unit.Unit; import net.sf.openrocket.util.GUIUtil; import net.sf.openrocket.util.Icons; +/** + * Panel that displays the simulation plot options to the user. + * + * @author Sampo Niskanen + */ public class SimulationPlotPanel extends JPanel { private static final Translator trans = Application.getTranslator(); - + // TODO: LOW: Should these be somewhere else? public static final int AUTO = -1; public static final int LEFT = 0; @@ -238,7 +243,7 @@ public class SimulationPlotPanel extends JPanel { JOptionPane.showMessageDialog(SimulationPlotPanel.this, //// A maximum of 15 plots is allowed. //// Cannot add plot - trans.get("simplotpanel.OptionPane.lbl1"), + trans.get("simplotpanel.OptionPane.lbl1"), trans.get("simplotpanel.OptionPane.lbl2"), JOptionPane.ERROR_MESSAGE); return; @@ -287,7 +292,7 @@ public class SimulationPlotPanel extends JPanel { @Override public void actionPerformed(ActionEvent e) { defaultConfiguration = configuration.clone(); - PlotDialog.showPlot(SwingUtilities.getWindowAncestor(SimulationPlotPanel.this), + SimulationPlotDialog.showPlot(SwingUtilities.getWindowAncestor(SimulationPlotPanel.this), simulation, configuration); } }); @@ -375,7 +380,7 @@ public class SimulationPlotPanel extends JPanel { public void itemStateChanged(ItemEvent e) { if (modifying > 0) return; - Unit unit = (Unit) unitSelector.getSelectedUnit(); + Unit unit = unitSelector.getSelectedUnit(); configuration.setPlotDataUnit(index, unit); } });