FloodPercentageDisplay

floodsim.view.component.FloodPercentageDisplay
class FloodPercentageDisplay extends UIComponent[JPanel]

Displays the current flooded area percentage as a centered label.

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 updatePercentage(p: Double): Unit

Updates the displayed flooded percentage.

Updates the displayed flooded percentage.

Value parameters

p

the new flooded percentage (0.0 to 100.0)

Attributes