added 200% simulation speed alternative

This commit is contained in:
Fredrik Osterlind 2013-08-14 12:33:44 +02:00
parent 492cd5f721
commit 1b556148d8

View file

@ -123,6 +123,10 @@ public class SimControl extends VisPlugin implements HasQuickHelp {
new ChangeMaxSpeedLimitAction("100%", 1.0));
speedlimitButtonGroup.add(limitMenuItem3);
speedMenu.add(limitMenuItem3);
JRadioButtonMenuItem limitMenuItem200 = new JRadioButtonMenuItem(
new ChangeMaxSpeedLimitAction("200%", 2.0));
speedlimitButtonGroup.add(limitMenuItem200);
speedMenu.add(limitMenuItem200);
JRadioButtonMenuItem limitMenuItem4 = new JRadioButtonMenuItem(
new ChangeMaxSpeedLimitAction("1000%", 10.0));
speedlimitButtonGroup.add(limitMenuItem4);
@ -136,6 +140,8 @@ public class SimControl extends VisPlugin implements HasQuickHelp {
limitMenuItem2.setSelected(true);
} else if (simulation.getSpeedLimit().doubleValue() == 1.0) {
limitMenuItem3.setSelected(true);
} else if (simulation.getSpeedLimit().doubleValue() == 2.0) {
limitMenuItem200.setSelected(true);
} else if (simulation.getSpeedLimit().doubleValue() == 10) {
limitMenuItem4.setSelected(true);
}