public class ControlPanel extends Object implements ActionListener, PropertyChangeListener
Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights
reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
ControlPanel(SimpleSimulator simulator)
Decorate a SimpleSimulator with a different set of control buttons.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent actionEvent) |
void |
autoPauseSimulator()
Pause the simulator.
|
protected void |
fixButtons()
Update the enabled state of all the buttons.
|
nl.tudelft.simulation.dsol.simulators.DEVSSimulator<DoubleScalar.Abs<TimeUnit>,DoubleScalar.Rel<TimeUnit>,OTSSimTimeDouble> |
getSimulator() |
Font |
getTimeFont() |
void |
propertyChange(PropertyChangeEvent evt) |
public ControlPanel(SimpleSimulator simulator)
simulator
- SimpleSimulator; the simulator.public final void actionPerformed(ActionEvent actionEvent)
actionPerformed
in interface ActionListener
protected final void fixButtons()
public final void autoPauseSimulator()
public final void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public final nl.tudelft.simulation.dsol.simulators.DEVSSimulator<DoubleScalar.Abs<TimeUnit>,DoubleScalar.Rel<TimeUnit>,OTSSimTimeDouble> getSimulator()
public final Font getTimeFont()
Copyright © 2014–2015 Delft University of Technology. All rights reserved.