floodsim.view.panel

Members list

Type members

Classlikes

class ParametersPanel(navigationController: NavigationController) extends UIComponent[JPanel]

Panel for configuring simulation parameters before starting a run. Provides sliders for:

Panel for configuring simulation parameters before starting a run. Provides sliders for:

  • Grid size (cells per side)
  • Weather expansion (%)
  • Cell flooded threshold (%)
  • Map flooded threshold (%) Actions:
  • "Simulation": builds floodsim.model.state.SimulationParams from current values and navigates to the simulation view.
  • "Back": returns to the welcome view.

Attributes

Supertypes
trait UIComponent[JPanel]
class Object
trait Matchable
class Any
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:

Main simulation view: hosts the interactive grid, controls, and reacts to controller updates. Composition:

Attributes

Supertypes
trait UIComponent[JPanel]
class Object
trait Matchable
class Any
class WelcomePanel(navigationController: NavigationController) extends UIComponent[JPanel]

Initial welcome screen for the Flood Simulator. Provides:

Initial welcome screen for the Flood Simulator. Provides:

  • Title label
  • "Simulation" button to navigate to parameter configuration
  • "Exit" button to quit the application

Attributes

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