SimulationPanel
floodsim.view.panel.SimulationPanel
class SimulationPanel(params: SimulationParams, navigationController: NavigationController)(using imageCache: ImageCache[CellType], weatherImageCache: ImageCache[Weather]) extends UIComponent[JPanel], SimulationListener
Main simulation view: hosts the interactive grid, controls, and reacts to controller updates. Composition:
- floodsim.view.component.ViewGrid in the center shows cells with overlays and optional weather icons.
- Sidebar hosts floodsim.view.component.CellTypeSelector and floodsim.view.component.SimulationControls. Controller:
- Creates a floodsim.controller.SimulationController via floodsim.controller.ControllerFactory.
- Registers itself as a floodsim.controller.SimulationListener for state/timer updates. Image resources:
- Requires given floodsim.view.util.resource.ImageCache instances for floodsim.model.cell.CellType and floodsim.model.weather.Weather.
Attributes
- Graph
-
- Supertypes
Members list
In this article