CellTypeSelector
floodsim.view.component.CellTypeSelector
class CellTypeSelector(using imageCache: ImageCache[CellType]) extends UIComponent[JPanel]
A UI component to select a CellType using clickable icons.
- Displays all available floodsim.model.cell.CellType values in a 2x2 grid with their icons.
- Uses a red border to highlight the currently selected cell type.
- Notifies registered listeners when the selection changes.
- Relies on an in-scope floodsim.view.util.resource.ImageCache to obtain icons.
Attributes
- Graph
-
- Supertypes
Members list
In this article