CellTypeSelector

floodsim.view.component.CellTypeSelector
class CellTypeSelector(using imageCache: ImageCache[CellType]) extends UIComponent[JPanel]

A UI component to select a CellType using clickable icons.

Attributes

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

Members list

Value members

Concrete methods

def addSelectionListener(f: CellType => Unit): Unit

Registers a listener to be notified when the selected cell type changes.

Registers a listener to be notified when the selected cell type changes.

Value parameters

f

function to be called with the newly selected CellType

Attributes

def component: JPanel

Returns the underlying Swing component.

Returns the underlying Swing component.

Attributes