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:

Attributes

Graph
Supertypes
trait UIComponent[JPanel]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def component: JPanel

Returns the underlying Swing component.

Returns the underlying Swing component.

Attributes

def onCellTypeChanged(coordinate: Coordinate, cellType: CellType): Unit

Notifies that a specific cell type has changed at the given coordinate.

Notifies that a specific cell type has changed at the given coordinate.

Attributes

def onSimulationCompleted(finalState: SimulationState): Unit

Notifies that the simulation has completed according to the engine's termination criteria.

Notifies that the simulation has completed according to the engine's termination criteria.

Attributes

Notifies that a new simulation state has been produced.

Notifies that a new simulation state has been produced.

Attributes

def onTimerUpdated(timer: Timer): Unit

Notifies that the timer has advanced.

Notifies that the timer has advanced.

Attributes