Class SimulationControlPanel

All Implemented Interfaces:
SimulationListener, ISimulationControlPanel, ImageObserver, MenuContainer, Serializable, Accessible

public class SimulationControlPanel extends JPanel implements SimulationListener, ISimulationControlPanel
A reusable Swing control panel for driving a simulation hosted by an ISimulationHost.

This panel is MDI-agnostic and can be embedded anywhere (views, dialogs, side panels). It binds to a host and listens to the host engine via SimulationListener events, updating:

  • buttons enabled/disabled based on state
  • progress bar (indeterminate or determinate)
  • status and message labels

Binding

Call bind(ISimulationHost) once after creating the panel.

See Also: